Skip to main content

Swarmauri Weaviate Vector Store

Project description

Swarmauri Logo

PyPI - Downloads PyPI - Python Version PyPI - License PyPI - Version


Swarmauri Cloud Weaviate Vector Store

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

swarmauri_vectorstore_cloudweaviate-0.6.1.tar.gz (7.9 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_cloudweaviate-0.6.1.tar.gz.

File metadata

File hashes

Hashes for swarmauri_vectorstore_cloudweaviate-0.6.1.tar.gz
Algorithm Hash digest
SHA256 0526fe5cf7470f0508cf0b79cb61435773d7c4cfe232ff5ea7f5a563b8b81248
MD5 ac1029229ba82caef0869a57eaa9d2d5
BLAKE2b-256 ee504983ee4565c4cc5364d7424f44cbc7590dcecd1a26fd034b967adfdbc90a

See more details on using hashes here.

File details

Details for the file swarmauri_vectorstore_cloudweaviate-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_vectorstore_cloudweaviate-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f857e1a4022300b9ef1770c88c76dcc1b2cf1d8636f179b46740957780f2f251
MD5 5e101938c8e077c69dd0baf5d05d0728
BLAKE2b-256 b4dd84cd4d1fa3d42f62537abaec319982276b26225ca25339938d7af154ec10

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