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}`);