From a6c2daadc52815b60ce9aab68f250df5007d041c Mon Sep 17 00:00:00 2001 From: alicia <112369864+aliiyuu@users.noreply.github.com> Date: Fri, 16 Aug 2024 12:46:15 -0700 Subject: [PATCH] Generate embeddings directly from user query text --- server/database/processFile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/database/processFile.js b/server/database/processFile.js index 7fcf6a4..de8a6f5 100644 --- a/server/database/processFile.js +++ b/server/database/processFile.js @@ -25,7 +25,7 @@ async function processFile(filePath) { // Output the tokens console.log('Extracted tokens:',tokens); - const embeddingResponse = await generateEmbeddings(tokens); + const embeddingResponse = await generateEmbeddings(tokens, "JSON"); await pinecone.upsertEmbeddings(embeddingResponse[0].embedding, "codebase", `${filePath}`);