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.5.dev1.tar.gz.

File metadata

File hashes

Hashes for swarmauri_vectorstore_persistentchromadb-0.7.5.dev1.tar.gz
Algorithm Hash digest
SHA256 1c2bce890c6a7e81d3e73cc9ed6ab72aacdcd0cd6da6708b5e1494a069cc1d55
MD5 ae81ed090b7f06ca6068323014d736d1
BLAKE2b-256 67ba9a195e5c8fbc731d4725905ccb416a65c13033f7f7e38646d30f5763f5db

See more details on using hashes here.

File details

Details for the file swarmauri_vectorstore_persistentchromadb-0.7.5.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_vectorstore_persistentchromadb-0.7.5.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc9228af1b6790e2ef2396b5ff336b0a4e59803a31ae8bfe18748549dd71d1ef
MD5 a20eb9f3007db57a617061accb4afccb
BLAKE2b-256 c96be7a66b36dd45008be758405490c26f1d4e4ef28d60644b5f4d87a0878a50

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