Skip to content

Commit

Permalink
Generate embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
mhemrg committed Sep 14, 2023
1 parent 73d7aaa commit 8f2775b
Show file tree
Hide file tree
Showing 6 changed files with 1,107 additions and 1 deletion.
5 changes: 5 additions & 0 deletions indexer/configs/envConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ dotenv.config({ path: ".env" });
export const envConfig = {
MEILI_ROOT_URL: process.env.MEILI_ROOT_URL,
MEILI_PRIVATE_KEY: process.env.MEILI_PRIVATE_KEY,

POSTGRES_URL: process.env.POSTGRES_URL,

OPENAI_API_KEY: process.env.OPENAI_API_KEY,
OPENAI_ORGANIZATION: process.env.OPENAI_ORGANIZATION,
};
2 changes: 2 additions & 0 deletions indexer/doc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { crawlingDocData } from "./util/crawlingDoc.js";
import { importDataToMeiliSearch } from "./util/importDataToMailisearch.js";
import { generateEmbeddings } from "./util/generateEmbeddings.js";

await crawlingDocData();
await importDataToMeiliSearch("docs", "docData");
// await generateEmbeddings();
Loading

0 comments on commit 8f2775b

Please sign in to comment.