Find answers from the community

Updated 3 months ago

And below error appeared : File "C:

And below error appeared : File "C:\Users\akhandey.NICEDEN\copilot\copilot\document_reader.py", line 45, in run_query
index = VectorStoreIndex.from_documents(nodes, storage_context=storage_context)
File "C:\Users\akhandey.NICEDEN\AppData\Roaming\Python\Python310\site-packages\llama_index\indices\base.py", line 97, in from_documents
docstore.set_document_hash(doc.get_doc_id(), doc.hash)
AttributeError: 'TextNode' object has no attribute 'get_doc_id'. Did you mean: 'ref_doc_id'? Please help
L
A
2 comments
if you are passing in nodes directly, use index = VectorStoreIndex(nodes, storage_context=storage_context)
Add a reply
Sign up and join the conversation on Discord