Skip to main content

Swarmauri Weaviate Vector Store

Project description

Swamauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_vectorstore_cloudweaviate


Swarmauri Vectorstore CloudWeaviate

A Weaviate-based vector store implementation for Swarmauri, providing cloud-based document storage and retrieval with vector similarity search capabilities.

Installation

pip install swarmauri_vectorstore_cloudweaviate

Usage

Here's a basic example of how to use the CloudWeaviateVectorStore:

from swarmauri.vector_stores.CloudWeaviateVectorStore import CloudWeaviateVectorStore
from swarmauri.documents.Document import Document

# Initialize the vector store
vector_store = CloudWeaviateVectorStore(
    url="your-weaviate-url",
    api_key="your-api-key",
    collection_name="example",
    vector_size=100
)

# Connect to Weaviate
vector_store.connect()

# Add documents
document = Document(
    id="doc-001",
    content="This is a sample document content.",
    metadata={"author": "Alice", "date": "2024-01-01"}
)
vector_store.add_document(document)

# Retrieve similar documents
results = vector_store.retrieve(query="sample content", top_k=5)

# 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

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_cloudweaviate-0.9.0.dev2.tar.gz.

File metadata

File hashes

Hashes for swarmauri_vectorstore_cloudweaviate-0.9.0.dev2.tar.gz
Algorithm Hash digest
SHA256 11ff616f3d7b48f8a66e84b5e4c6419d63345e2f7c353ec2fac40cdc00776b5b
MD5 c2626956ead1ca19a22112bcc0a43317
BLAKE2b-256 cd4d4c990c3c1140adfed06848a576d7a247ccb5e148318cff6c968af1b2c9f0

See more details on using hashes here.

File details

Details for the file swarmauri_vectorstore_cloudweaviate-0.9.0.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_vectorstore_cloudweaviate-0.9.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 3dd6b365a446a1ebbcca719febf07c3a372282cb2498ecfc48272a641366f4e6
MD5 0a94738c4b8a515c23192c1db5afe39e
BLAKE2b-256 9fe5ee6941c4929d945f87d807a5d59c962e903ae6e3f62dfd0aeb70bc01d6b6

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