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 last year
0
Follow
What is the fastest way to build vector
What is the fastest way to build vector
Inactive
0
Follow
D
Dove
last year
Β·
What is the fastest way to build vector index from nodes with precomputed embeddings?
Is it just
index = VectorStoreIndex(nodes)
?
It still seems to take a long time (20mins for 400k nodes), considering that the embeddings for nodes are already computed.
L
D
12 comments
Share
Open in Discord
L
Logan M
last year
So every node has
node.embedding
already set?
D
Dove
last year
Yes
L
Logan M
last year
hmm ok good. Although I just read your message again and you have 400K nodes lol
L
Logan M
last year
at that point, loading that all into memory and moving stuff around is going to be the biggest bottleneck
L
Logan M
last year
not much else to do to improve speeds
L
Logan M
last year
with that many nodes I highly recommend using a vector DB integration
D
Dove
last year
Which DB do you recommend?
L
Logan M
last year
weaviate or pinecone is nice for hosted stuff
Self-hosted I would use qdrant or chroma
Tbh I think qdrant will be the fastest
D
Dove
last year
Got it, thanks!
L
Logan M
last year
Like, it might still be slow-ish to insert 400K nodes, but that should be a one time cost π
D
Dove
last year
I tested the
:memory:
mode for qdrant, and it seemed to be sligtly faster than the vanilla in-memory storage
L
Logan M
last year
I'd you can run a hosted version, like with their docker image, it may be faster too (pretty sure the backend is all written in rust then)
Add a reply
Sign up and join the conversation on Discord
Join on Discord