Find answers from the community

Updated 6 months ago

**Can anyone confirm:**

Can anyone confirm:

Index nodes can be accessed using index.docstore.docs.values().

Does this method work for all types of vector stores, or is it specific to the in-memory VectorStoreIndex? For example, does it also work with AzureAISearchVectorStore?

Additionally, since this approach retrieves all nodes, is there a more efficient way to retrieve a subset of nodes? For instance, can we create a retriever and filter over all nodes based solely on metadata without performing a similarity search?
L
F
4 comments
It works, assuming you've populated the docstore

Most vector db integrations will disable to the docstore, but you can override that or manually populate the docstore

You can probably perform that kind of search using the azure client directly. We need introduce a get_nodes() function, but its not implemented for azure vector store yet
So there's no way to do retrieval without similarity search, unless you're getting the nodes directly from the doc store?
with azure, no. Unless you use the docstore or the azure client directly
(Or someone makes a PR to add that method πŸ™ )
Add a reply
Sign up and join the conversation on Discord