Skip to main content

ChromaRepository is a wrapper around Chroma Vector Repository

Project description

ChromaRepository.py

Purpose

  • ChromaRepository.py provides functionality to interact with a Chroma collection, including adding, updating, deleting, and querying documents.

Dependencies

  • The file imports modules like ChromaDb, Embeddings from OpenAI and Ollama, Document, and others from various sources including many packages from Langchain

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 ChromaRepository that encapsulates the functionality related to interacting with the Chroma collection.
  • the project also defines many retriever strategies using the following classes:
    • SimilaritySearchRetriever
    • MultiSearchRetriever
    • SmallChunksSearchRetriever

Methods

  • The class ChromaRepository contains methods like add, 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.py covering various functionalities of ChromaRepository.py which can be used to learn how to use the package.

License

  • The code is provided under the MIT License.

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chromarepository-1.0.5-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

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

Hashes for chromarepository-1.0.5.tar.gz
Algorithm Hash digest
SHA256 4568cd0e426f0a88bde9220c2307a7396aefa04ff4f2aad00d4d191f785f3792
MD5 81c6cc36d50492a12890d7f1e5c0332f
BLAKE2b-256 618616d327e80adfe41602348bd0f5b5813d7351a741f06b2aa7e0cb7c2dcdca

See more details on using hashes here.

File details

Details for the file chromarepository-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for chromarepository-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 11da0bc268ab88e0db7c4de6eacdda39669a0efe949c63afdaa962d4e62a5f1f
MD5 11c9418b80292583864a20d9269bc6af
BLAKE2b-256 3f1b559f0b1972c61fef9063ff107ac83b26af449a8b68a47fe1ea12aff14049

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page