Replies: 2 comments
-
I'm not familiar with chroma db, but it's possible for faiss. In memory, however, you'll need to combine one or more vector databases before using them. I hope my answer helps. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I used Qdrant but Chroma should be similar.
|
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
-
new_db = Chroma.from_documents(
collection_name="test_collection",
documents=[original_doc],
embedding=OpenAIEmbeddings(), # using the same embeddings as before
ids=[document_id],
)
new_db = Chroma.from_documents(
collection_name="foo_collection",
documents=[second_doc],
embedding=OpenAIEmbeddings(), # using the same embeddings as before
ids=[new_document_id],
)
Can I define different collections like this? Will these collections be saved together under a common database (which is new_db in this case)?
OR
Will I have to define them separately into two different databases??
new_db = Chroma.from_documents(
collection_name="test_collection",
documents=[original_doc],
embedding=OpenAIEmbeddings(), # using the same embeddings as before
ids=[document_id],
)
new_db_foo = Chroma.from_documents(
collection_name="foo_collection",
documents=[second_doc],
embedding=OpenAIEmbeddings(), # using the same embeddings as before
ids=[new_document_id],
)
If the first case is true then how do I individually access the collections when required?? Please help urgently.
Beta Was this translation helpful? Give feedback.
All reactions