Closed shaun0024 closed 1 year ago
Hey Shaun - thanks for the question!
Yes, this is using the index from Pinecone. When you call docsearch.similarity_search you are
Thanks for your reply. I think I need to reframe my question.
Based on this notebook, it is used to analyse documents and upload it as a vector into the Pinecone index.
So in the future, let's say I have a chat application that I want to build, I would just need to load the index from Pinecone:
docsearch = Pinecone.from_existing_index(pinecone_index_name, embeddings)
I've tried this and it appears to be working.
Hey! Thank you for your job! It looks amazing! Would you mind helping me with the dependencies of the Ask A Book Questions.ipynb ?
I mean "!pip install [modules]" Thank you a lot
Hey Gregory,
Thank you for the great series on YouTube. I have a question regarding the notebook 'Ask A Book Questions.ipynb' that you used to demonstrate querying some custom knowledge from PDF files.
In the 11th cell, you used a code to load the vectors into Pinecone:
Subsequently, you used
docsearch
again in your query:My question is would this be using the index from Pinecone? In your example here, you've loaded the vector into Pinecone earlier so the data is already in
docsearch
but for a use case where you would want to read the index directly without loading any documents from Pinecone, would you usefrom_existing_index
instead? E.g.: