Find answers from the community

Updated 2 months ago

Vector store

The documentation says that vector stores don't use a docstore. Is there any way of listing source files from a vector store? Similar to getting file_path from: index.docstore.docs.values()
L
d
2 comments
Use the vector store client directly?
Sorry for the delay, @Logan M. The 2 ways I've seen to get source file paths were index.ref_doc_info and inside index.docstore.docs. Both of these seem to be available for a "basic" VectorStoreIndex, but not available when I use Chroma vector store. Is there another way of accessing either specifically file_path metadata, or the doc_id (which was loaded as file_path)? I inspected available attributes and methods for the client, collecton, storage and didn't see anything.

Thanks
Add a reply
Sign up and join the conversation on Discord