Find answers from the community

Updated 4 months ago

Hello, I'm trying to load my index after

At a glance
Hello, I'm trying to load my index after saving it on my disk but I can't and I get this error.


I'm using a ingestion pipeline and chromadb to create the vectorstore, I can provide the rest of the code if needed
Attachment
image.png
W
L
g
5 comments
Could you share the code for loading back
If you are using chromadb, theres no need to use load_index_from_storage
index = VectorStoreIndex.from_vector_store(vector_store)
thanks, that's what I ended up doing, but do you guys have an example on how to use the ingestion pipeline with transformations and persist the chromadb to disk ?
just attach the vector store to a pipeline

Plain Text
pipeline = IngestionPipeline(transformations=[...], vector_store=vector_store)


Chroma automatically saves to disk if you give a path

Plain Text
db2 = chromadb.PersistentClient(path="./chroma_db")
chroma_collection = db2.get_or_create_collection("quickstart")
vector_store = ChromaVectorStore(chroma_collection=chroma_collection)
Add a reply
Sign up and join the conversation on Discord