Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
π
π
π
Powered by
Hall
Inactive
Updated 3 months ago
0
Follow
Index
Index
Inactive
0
Follow
M
MrMJ
last year
Β·
Hi, is there a way to merge two pre defined indexes into one new index?
W
L
M
3 comments
Share
Open in Discord
W
WhiteFang_Jr
last year
You can get the nodes from both the indexes and create a new index.
new_nodes = index1.docstore.docs + index2.docstore.docs
index3 = VectorStoreIndex(new_nodes)
L
Logan M
last year
I think
docstore.docs
returns a dict, but the idea is the same π
new_nodes = index1.docstore.docs.values() + index2.docstore.docs.values()
M
MrMJ
last year
Thanks!
Add a reply
Sign up and join the conversation on Discord
Join on Discord