Skip to main content

LlamaVector

PyPI version Python Version License: MIT CI

Handles vector embedding generation, storage, and similarity search within the LlamaAI Ecosystem. Provides interfaces to various embedding models and vector databases.

Features

  • Embedding Generation: Supports multiple embedding models (e.g., via sentence-transformers).
  • Vector Storage Adapters: Interfaces for various vector databases (e.g., FAISS, ChromaDB, Pinecone, Qdrant, Weaviate).
  • Similarity Search: Efficiently find vectors similar to a query vector.
  • Data Models: Pydantic models for structured vector data.
  • Indexing Utilities: Tools for building and managing vector indexes.
  • (Optional) API: Can expose functionality via a FastAPI server.

Installation

# Core installation
pip install llamavector

# To install with specific vector database support (e.g., ChromaDB):
pip install llamavector[chromadb]

# To install with API support:
pip install llamavector[api]

Quick Start

# Example (TBD after code migration)
# from llamavector import VectorStore, EmbeddingModel

# model = EmbeddingModel(model_name='all-MiniLM-L6-v2')
# store = VectorStore(adapter='chromadb', collection_name='my_vectors')

# texts = ["This is the first document.", "This document is the second document."]
# embeddings = model.encode(texts)
# ids = ["doc1", "doc2"]

# store.add(ids=ids, embeddings=embeddings)

# query_embedding = model.encode(["A query about the second doc"])
# results = store.search(query_embeddings=query_embedding, k=1)
# print(results)

Contributing

Contributions are welcome! Please see CONTRIBUTING.md.

License

MIT License. See LICENSE file.

Metadata

Release files for llamavector-llamasearch 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llamavector-llamasearch 0.1.0
File Size Uploaded
llamavector_llamasearch-0.1.0.tar.gz 19.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llamavector-llamasearch 0.1.0
File Interpreter ABI Platform
llamavector_llamasearch-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 35.1 kB

Release files / llamavector_llamasearch-0.1.0.tar.gz

Download URL llamavector_llamasearch-0.1.0.tar.gz
Size 19.4 kB
Tags Source
SHA-256 checksum
How to use checksums
412e2f3c7610b1171306340793072d8bdc39df51f94e11fa46d9e6b7834170ef
BLAKE2b-256 checksum
How to use checksums
36f5cb9f79083d2fbf7b04935e09d220ece15c0951f28ffd4efb59b035535dde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / llamavector_llamasearch-0.1.0-py3-none-any.whl

Download URL llamavector_llamasearch-0.1.0-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d770ce3f46517a341c74de1247f51f2f1a5f8f77be2c960994b115cfea3bf89
BLAKE2b-256 checksum
How to use checksums
c0ed70609d31e4a29661aadc5b68e233e4fa4c318b9198b9e7530cf9c842afc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page