Skip to content

Commit

Permalink
Merge pull request #433 from GordonSmith/VECTOR_RAG
Browse files Browse the repository at this point in the history
feat: Switch to proper RAG for @ECL chat agent
  • Loading branch information
GordonSmith authored Sep 6, 2024
2 parents 70e60ab + 37cb8d7 commit ecef651
Show file tree
Hide file tree
Showing 14 changed files with 2,490 additions and 354 deletions.
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,29 @@
"--mode=development"
],
},
{
"name": "index-docs",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/dist-util/index-docs.mjs",
"args": [
"--dry-run",
"../HPCC-Platform/docs"
],
"outFiles": [
"${workspaceFolder}/dist-util/**/*.js"
]
},
{
"name": "retrieve-docs",
"type": "node",
"request": "launch",
"program": "${workspaceFolder}/dist-util/retrieve-docs.mjs",
"args": [],
"outFiles": [
"${workspaceFolder}/dist-util/**/*.js"
]
},
{
"name": "Launch Server Adapter",
"type": "node",
Expand Down
10 changes: 7 additions & 3 deletions esbuild.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import * as esbuild from "esbuild";
import copyStaticFiles from "esbuild-copy-static-files";
import process from "node:process";
import path from "node:path";
import { problemMatcher, removeStrict } from "@hpcc-js/esbuild-plugins";
import { problemMatcher, removeStrict, nodeTpl } from "@hpcc-js/esbuild-plugins";
import tsconfigNode from "./tsconfig.json" with {"type": "json"};
import tsconfigBrowser from "./tsconfig.webview.json" with {"type": "json"};

const outputDirectory = "dist";
const production = process.argv.includes("--production");
const watch = process.argv.includes("--watch");
const production = !watch && process.argv.includes("--production");

async function main(tsconfigRaw, entryPoint, platform, format, plugins = []) {
const ctx = await esbuild.context({
Expand Down Expand Up @@ -41,12 +41,16 @@ Promise.all([
copyStaticFiles({
src: "./node_modules/@hpcc-js/ddl-shim/schema/v2.json",
dest: path.join(outputDirectory, "v2.json"),
}), copyStaticFiles({
src: "./util/docs.vecdb",
dest: path.join(outputDirectory, "docs.vecdb"),
})
]),
main(tsconfigBrowser, "./src/notebook/renderers/wuRenderer.tsx", "browser", "esm"),
main(tsconfigBrowser, "./src/notebook/renderers/ojsRenderer.ts", "browser", "esm"),
main(tsconfigBrowser, "./src/eclwatch.tsx", "browser", "iife", [removeStrict()]),
main(tsconfigBrowser, "./src/web-extension.ts", "browser", "iife")
main(tsconfigBrowser, "./src/web-extension.ts", "browser", "iife"),
nodeTpl("./util/index-docs.ts", "./dist-util/index-docs", "esm")
]).catch((e) => {
console.error(e);
process.exit(1);
Expand Down
Loading

0 comments on commit ecef651

Please sign in to comment.