Find answers from the community

Updated 3 months ago

If I have the doc id is there a way to

If I have the doc_id, is there a way to access the doc text using the doc_id?
L
M
4 comments
kinda?

Do you have the doc_id of a node or ingested document?

If you have the node doc_id, you can do index.docstore.docs[node_doc_id]

Otherwise, you can do index.ref_doc_info[document_doc_id] to get the id's of all nodes belonging to that document
Big caveat here is that this doesn't work right now if you are using a vector store integration
Add a reply
Sign up and join the conversation on Discord