ChromaRepository is a wrapper around Chroma Vector Repository
Project description
ChromaRepository.py
Purpose
ChromaRepository.pyprovides functionality to interact with a Chroma collection, including adding, updating, deleting, and querying documents.
Dependencies
- The file imports modules like
ChromaDb,Embeddingsfrom OpenAI and Ollama,Document, and others from various sources including many packages fromLangchain
Functionality
- The file contains functions for adding documents with or without metadata, updating documents, deleting documents, and querying the Chroma collection based on different criteria.
Classes and Interfaces
- The file defines a class
ChromaRepositorythat encapsulates the functionality related to interacting with the Chroma collection. - the project also defines many retriever strategies using the following classes:
SimilaritySearchRetrieverMultiSearchRetrieverSmallChunksSearchRetriever
Methods
- The class
ChromaRepositorycontains methods likeadd,update_by_id,delete_by_ids,get_all,getall_by_ids, and more for managing the Chroma collection but also using the retrievers to gather data from the vector store.
Testing
- Unit tests are available in
test_ChromaRepository.pycovering various functionalities ofChromaRepository.pywhich can be used to learn how to use the package.
License
- The code is provided under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
chromarepository-1.0.5.tar.gz
(12.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chromarepository-1.0.5.tar.gz.
File metadata
- Download URL: chromarepository-1.0.5.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4568cd0e426f0a88bde9220c2307a7396aefa04ff4f2aad00d4d191f785f3792
|
|
| MD5 |
81c6cc36d50492a12890d7f1e5c0332f
|
|
| BLAKE2b-256 |
618616d327e80adfe41602348bd0f5b5813d7351a741f06b2aa7e0cb7c2dcdca
|
File details
Details for the file chromarepository-1.0.5-py3-none-any.whl.
File metadata
- Download URL: chromarepository-1.0.5-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11da0bc268ab88e0db7c4de6eacdda39669a0efe949c63afdaa962d4e62a5f1f
|
|
| MD5 |
11c9418b80292583864a20d9269bc6af
|
|
| BLAKE2b-256 |
3f1b559f0b1972c61fef9063ff107ac83b26af449a8b68a47fe1ea12aff14049
|