VectorStore
, what is the difference between a doc_id
and a ref_doc_id
(all mine are the same value)?doc_id
or ref_doc_id
, how can i get all the nodes from a VectorStore
with that id?vector_store.query(VectorStoreQuery(doc_ids=[my_doc_id]))
ValueError: Query embedding is required for querying.
index.docstore.get_document("some node id")
index.docstore.get_ref_doc_info("some doc id/ref_doc_id")
to get an object with all the node ids linked to that documentvector_store.get()
-- you can pass in node_ids=[id1, ...]
or filters=<some filters>
for metadata filtering (here you might want to filter for where ref_doc_id equals the id you are looking for)