Find answers from the community

Updated 11 months ago

Vectors

How do I determine the number of vectors created? when running, index = VectorStoreIndex.from_documents(... or should I do something else?
W
m
3 comments
If you are not using third party vector stores, then you can check the number of nodes that you have will be the count of embeddings that you'll have.

nodes= index.docstores.docs


For third party, if you are directly putting data without converting them into nodes using node parser then you'll have to check on the vector stores for the number of embeddings created.
@WhiteFang_Jr I am using weaviatevectorstore. So pretty much I should use node parser and count the nodes?
Yes pretty much, Or since you already have the weaviate client object. You can use that to query weaviate DB to find total count. You can check their docs for this.
Add a reply
Sign up and join the conversation on Discord