# Create in-memory ChromaDB client
chroma_name = (
f"analysis_{datetime.datetime.now().strftime('%Y%m%d_%H%M%S')}"
)
print(f"Chroma collection name: {chroma_name}")
chroma_client = chromadb.EphemeralClient()
chroma_collection = chroma_client.get_or_create_collection(chroma_name)
# Create ChromaVectorStore
print(f"Creating ChromaVectorStore for collection: {chroma_name}")
vector_store = ChromaVectorStore(
collection_name=chroma_name, chroma_collection=chroma_collection
)
print(
f"ChromaVectorStore created from collection: {vector_store.collection_name}"
)
I can't get Chroma DB to work here,
An error occurred: 'Collection' object has no attribute 'model_fields