Skip to main content

Vector embedding generation, storage, and similarity search for LlamaAI Ecosystem

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llamavector_llamasearch-0.1.0.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

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

llamavector_llamasearch-0.1.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file llamavector_llamasearch-0.1.0.tar.gz.

File metadata

  • Download URL: llamavector_llamasearch-0.1.0.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for llamavector_llamasearch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 412e2f3c7610b1171306340793072d8bdc39df51f94e11fa46d9e6b7834170ef
MD5 90b94152ba8e5f2b42fb77af4831807c
BLAKE2b-256 36f5cb9f79083d2fbf7b04935e09d220ece15c0951f28ffd4efb59b035535dde

See more details on using hashes here.

File details

Details for the file llamavector_llamasearch-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llamavector_llamasearch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d770ce3f46517a341c74de1247f51f2f1a5f8f77be2c960994b115cfea3bf89
MD5 6911e3177c280a01920c803d0ea63967
BLAKE2b-256 c0ed70609d31e4a29661aadc5b68e233e4fa4c318b9198b9e7530cf9c842afc9

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