Find answers from the community

Updated 10 months ago

Nodes

Hi I was trying to run this notebook https://github.com/run-llama/llama_index/blob/main/docs/examples/query_engine/multi_doc_auto_retrieval/multi_doc_auto_retrieval.ipynb it used to work, but with the latest version I got

Plain Text
TypeError: Object of type VectorIndexRetriever is not JSON serializable

During handling of the above exception, another exception occurred:
...
ValueError: IndexNode obj is not serializable: <llama_index.core.indices.vector_store.retrievers.retriever.VectorIndexRetriever object at 0x16b443550>


for this cell:

Plain Text
# Since "index_nodes" are concise summaries, we can directly feed them as objects into VectorStoreIndex
index = VectorStoreIndex(
    objects=index_nodes, storage_context=storage_context_auto
)


Is this a bug?
L
2 comments
Hmmm, that definitely should work. I can take a look in a bit.
Probably something easy to fix in a patch
Add a reply
Sign up and join the conversation on Discord