Find answers from the community

Updated last year

Pinecone

At a glance

The community member is interested in building multi-document agents from a vector database like Pinecone. They are unsure if they need a separate index for every document or if Pinecone's support for namespaces can be used to store vectors under different namespaces in a single index. Another community member responds that namespaces are supported in the Pinecone class in the llama-index, and that metadata filtering can also be used for each query engine.

Useful resources
Let's say I want to build muti-document agents from a vector database like Pinecone. Do I need to have a separate index for every document? I am aware that Pinecone allows the storage of vectors under different namespaces in a single index which can then be retrieved . However, I do not see that implementation in the Pinecone class in the llama-index. Or is there a different way to do it? Any suggestions?
L
C
2 comments
Namespaces are supported
https://github.com/run-llama/llama_index/blob/936c42f318a95eb55a40749f7946c641344baad4/llama_index/vector_stores/pinecone.py#L204

But you can also use metadata filtering for each query engine as well if you wanted
got it, thanks @Logan M
Add a reply
Sign up and join the conversation on Discord