Skip to main content

Swarmauri MLM Vector Store

Project description

Swarmauri Logo

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


MLM Vector Store

A vector store implementation using MLM (Masked Language Model) embeddings for document storage and retrieval.

Installation

pip install swarmauri_vectorstore_mlm

Usage

Here's a basic example of how to use the MLM Vector Store:

from swarmauri.documents.Document import Document
from swarmauri.vector_stores.MlmVectorStore import MlmVectorStore

# Initialize the vector store
vs = MlmVectorStore()

# Create some documents
documents = [
    Document(content="first document"),
    Document(content="second document"),
    Document(content="third document")
]

# Add documents to the store
vs.add_documents(documents)

# Retrieve similar documents
results = vs.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

swarmauri_vectorstore_mlm-0.6.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swarmauri_vectorstore_mlm-0.6.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file swarmauri_vectorstore_mlm-0.6.1.tar.gz.

File metadata

  • Download URL: swarmauri_vectorstore_mlm-0.6.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.9 Linux/6.8.0-1021-azure

File hashes

Hashes for swarmauri_vectorstore_mlm-0.6.1.tar.gz
Algorithm Hash digest
SHA256 f1a7623961ad2b8f1f7b3ccb95426062ad577d459afd71126e3aea087c82c2ca
MD5 84acc57945b5a1f287b7ab5981d7f461
BLAKE2b-256 e4e962ddca5eefbcc3fe61e3b90170443e10e0cbf282226efbd9e36364f311c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_vectorstore_mlm-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e115c6e95acbfc0f0239e7d1e662db10184e72aa0d7fb6fcb11334eb64228528
MD5 3da3f761f9bb556585b2ec5ee1965b6a
BLAKE2b-256 c53b9748b84af0aaecc5e3a2b55e8875dd6b1a8ebc09b72231d02670b3d9f8b8

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