Find answers from the community

Updated 11 months ago

i have a csv and pdf file which has some

i have a csv and pdf file which has some text data and i read that using llama-ndex simple directory readers and stored them in pineconeas vectors. i didnt have to mention which embeddings but the llm for service context was openai. Now i want to be able to query those vectors that i upserted. basically i pass a sentence i need to get the vectors that are most similar to it
is there any way i can do it
i thought of directly querying pinecone but when i convert the text to embeddings using open ai it throws an error when i pass it as a the vector for query filter
is there any way i can pass a string and get just the top k results of the vectors in the pinecone db(not the gen answer but just the vectors along with their metadata)
T
P
2 comments
You can do something like
Plain Text
retriever = index.as_retriever()
nodes = retriever.retrieve("What does the document say?")
print(nodes)


This will retrieve just the nodes + metadata without doing a LLM call
thank you very much
Add a reply
Sign up and join the conversation on Discord