Skip to main content

Swarmauri Weaviate Vector Store

Project description

Swamauri Logo

PyPI - Downloads GitHub 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

This version

0.7.1

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.7.1.tar.gz (8.1 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.7.1.tar.gz.

File metadata

File hashes

Hashes for swarmauri_vectorstore_cloudweaviate-0.7.1.tar.gz
Algorithm Hash digest
SHA256 24b71229826a1b227b8836d08d3702f93bc80a45c9a223f21577387b713a2307
MD5 2030edc47e9dc9379b1aef59274b33e1
BLAKE2b-256 fead9df4541c96f3c87940740f575225a685b6c64487897f769991052e231ad8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_vectorstore_cloudweaviate-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9bea95a01a0563fd7818df9041c90957a3452a65e78b9beaa8ad762e32a9d61
MD5 a6bfc61af156b603ce8aac498833c629
BLAKE2b-256 f8da95e0301d6f311e814a720fd3aacdc5538bd83e401a5db5b370da27d413fe

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