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 7dbf235 commit 6ef23d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/controllers/pineconeQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const getPineconeResponse = async (req, res) => {

const input = [userInput];

const embeddingResponse = await generateEmbeddings(input);
const embeddingResponse = await generateEmbeddings(input, "string");
const embed = embeddingResponse[0].embedding;


Expand Down

0 comments on commit 6ef23d2

Please sign in to comment.