Skip to main content

A DuckDB based Vector Store

Project description

Swamauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_vectorstore_duckdb


Swarmauri Vectorstore Duckdb

A vector store implementation using DuckDB as the backend for efficient document storage and similarity search.

Installation

pip install swarmauri_vectorstore_duckdb

Usage

from swarmauri.vector_stores.DuckDBVectorStore import DuckDBVectorStore
from swarmauri.documents.Document import Document

# Initialize vector store
vector_store = DuckDBVectorStore(database_name="my_vectors.db")
vector_store.connect()

# Add documents
doc = Document(
    id="doc1",
    content="The quick brown fox jumps over the lazy dog",
    metadata={"type": "example"}
)
vector_store.add_document(doc)

# Retrieve similar documents
results = vector_store.retrieve("fox jumping", top_k=2)

# Clean up
vector_store.disconnect()

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

swarmauri_vectorstore_duckdb-0.7.5.dev1.tar.gz (8.5 kB view details)

Uploaded Source

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

File metadata

File hashes

Hashes for swarmauri_vectorstore_duckdb-0.7.5.dev1.tar.gz
Algorithm Hash digest
SHA256 af6db616b8605c931d897792f3de94febf62aa9f089b41526dfd720c1cffebe4
MD5 8365fc015291a24b3f7525b0d95535eb
BLAKE2b-256 7f9697e910eb329890b6077a387de30b69de74169ec8d0c4c925b53fd57bb348

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_vectorstore_duckdb-0.7.5.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 90b3bad5f8f92b8468d5c7ffc8e594acc2a347e512e4655ac93dd3e784fdbb71
MD5 d36516e1fd2212381df2e33b5d01fe65
BLAKE2b-256 60f5f4700d046a6c986bfeceaaae72a5b5fcbc2795200085b9e71031591ff3fd

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