create and store vector index #4174
IamExperimenting
started this conversation in
General
Replies: 1 comment
-
@IamExperimenting just asking for clarification are you asking about loading the vectorstore from a stored place then you can do this with chroma vector so you just feed data to it and save it locally to use it whenever you need docsearch = Chroma(collection_name='docs',persist_directory='db', embedding_function=embedding)
# load data to the vector store
#--------------------------------
#--------------------------------
docsearch.persist()
docsearch = None To load it and use it just simply do this that is it docsearch = Chroma(collection_name='docs',persist_directory='db', embedding_function=embedding) you can now use it in your program anywhere required more info here Langchain docs |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi ,
since, it is taking longer time create vector index for n number of files, is it possible to create and store the vector index? and re-use it whenever we want. Rather not run from the beginning and create a new vectorstoreindex again.
Any help would be greatful.
Beta Was this translation helpful? Give feedback.
All reactions