Skip to main content

A Persistent ChromaDB based Vector Store

Project description

Swamauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_vectorstore_persistentchromadb


Swarmauri Vectorstore Persistentchromadb

A persistent vector store implementation using ChromaDB for document storage and retrieval with embeddings.

Installation

pip install swarmauri_vectorstore_persistentchromadb

Usage

from swarmauri.documents.Document import Document
from swarmauri.vector_stores.PersistentChromaDBVectorStore import PersistentChromaDBVectorStore

# Initialize the vector store
vector_store = PersistentChromaDBVectorStore(
    path="./chromadb_data",
    collection_name="my_collection",
    vector_size=100
)

# Connect to the store
vector_store.connect()

# Add documents
documents = [
    Document(content="first document"),
    Document(content="second document"),
    Document(content="third document")
]
vector_store.add_documents(documents)

# Retrieve similar documents
results = vector_store.retrieve(query="document", top_k=2)

Want to help?

If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.

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

Built Distribution

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

File details

Details for the file swarmauri_vectorstore_persistentchromadb-0.7.4.dev20.tar.gz.

File metadata

File hashes

Hashes for swarmauri_vectorstore_persistentchromadb-0.7.4.dev20.tar.gz
Algorithm Hash digest
SHA256 27577e9f3baf324249e5b4669dd75361c283115a33c6a2317e1ed978e2bb9412
MD5 6566d6b088d371f08943bbb23d93b5dd
BLAKE2b-256 30d7620dd4f3914cfa0517a256e5f3f37863ec5cb9814fd32fd16aec2b545920

See more details on using hashes here.

File details

Details for the file swarmauri_vectorstore_persistentchromadb-0.7.4.dev20-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_vectorstore_persistentchromadb-0.7.4.dev20-py3-none-any.whl
Algorithm Hash digest
SHA256 2537295d398684355590c4848d3143f66b5b643b2de9c2c941fecf068e196c0e
MD5 cbd7c1cf1b4a625ac483558f660fcee0
BLAKE2b-256 fdc050271e1331f4df418ce56d411de2c95fc3dd7ba79b2556b219f912f43285

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