Skip to content

Commit

Permalink
Update qnaController.js
Browse files Browse the repository at this point in the history
  • Loading branch information
arian0zen committed Apr 22, 2023
1 parent d1fd0a0 commit a082012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/controller/qnaController.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ try{
environment: PINECONE_API_ENV,
apiKey: PINECONE_API_KEY,
});
const index_name = "transcript-yt";
const index_name = process.env.PINECONE_INDEX_NAME;
const pineconeIndex = client.Index(index_name);
const docSearch = await PineconeStore.fromExistingIndex(embeddings, {
pineconeIndex,
Expand Down

1 comment on commit a082012

@vercel
Copy link

@vercel vercel bot commented on a082012 Apr 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.