Find answers from the community

Updated 2 months ago

Merge indexes

hi there, how do I concate two vectorstore index? I want load a new file as vectorstore and add it to previous indexed file. Thank you.
L
z
5 comments
This isn't quite possible at the moment. Very open to a PR to support this!
So what if I want query over multiple doc file? How do I do it, thank you.
And also I need to upload new doc, is it achieve by index.insert () ? Or any other better practice available.

index = load_index_from_storage(storage_context=storage_context)
document = SimpleDirectoryReader(input_files=[fp]).load_data()
index.insert(document=document[0])
Am I doing the right way
Yea insert is correct πŸ‘
Add a reply
Sign up and join the conversation on Discord