Skip to content

Commit

Permalink
Generate embeddings directly from user query text
Browse files Browse the repository at this point in the history
  • Loading branch information
aliiyuu authored Aug 16, 2024
1 parent 6ef23d2 commit a6c2daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/database/processFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);

Expand Down

0 comments on commit a6c2daa

Please sign in to comment.