llama-vector
Llama Vector (llama-vector) provides tools and abstractions for working with vector embeddings and vector stores within the LlamaSearch AI ecosystem. It facilitates the creation, indexing, querying, and quality assessment of vector representations of data.
Key Features
- Embedding Generation: Tools to create vector embeddings from data (
embedding.py). - Vector Indexing: Components for building and managing vector indices (
index.py). - Vector Querying: Functionality to perform similarity searches and other queries on vector stores (
query.py). - Vector Store Abstraction: Interfaces with different vector database backends (
vector_store.py). - Quality Assessment: Tools to evaluate the quality of embeddings and search results (
quality.py). - Core Module: Central orchestration and management (
core.py). - Configurable: Allows specifying embedding models, vector stores, and other parameters (
config.py).
Installation
pip install llama-vector
# Or install directly from GitHub for the latest version:
# pip install git+https://github.com/llamasearchai/llama-vector.git
Usage
(Usage examples demonstrating embedding creation, indexing, and querying will be added here.)
# Placeholder for Python client usage
# from llama_vector import VectorClient, VectorConfig
# config = VectorConfig.load("config.yaml")
# client = VectorClient(config)
# # Create embeddings
# documents = ["doc1 content", "doc2 content"]
# client.add_documents(documents)
# # Query the vector store
# query_vector = client.embed_query("search query")
# results = client.search(query_vector, top_k=5)
# print(results)
# # Assess quality
# quality_metrics = client.assess_quality(ground_truth_data="...")
# print(quality_metrics)
Architecture Overview
graph TD
A[Input Data] --> B{Embedding Generator (embedding.py)};
B --> C[Vector Embeddings];
C --> D{Indexer (index.py)};
D --> E{Vector Store Interface (vector_store.py)};
E --> F[(Vector DB / Store)];
G[Query] --> H{Query Processor (query.py)};
H -- Needs Embeddings --> B;
H --> E;
E --> I[Search Results];
J{Core Module (core.py)} -- Manages --> B;
J -- Manages --> D;
J -- Manages --> H;
J -- Manages --> K;
K[Quality Assessor (quality.py)] -- Evaluates --> E;
K -- Evaluates --> I;
K --> L[Quality Metrics];
M[Configuration (config.py)] -- Configures --> J;
M -- Configures --> B;
M -- Configures --> E;
N[Utilities (utils.py)] -- Used by --> B;
N -- Used by --> D;
N -- Used by --> H;
N -- Used by --> K;
style J fill:#f9f,stroke:#333,stroke-width:2px
style F fill:#ccf,stroke:#333,stroke-width:1px
- Embedding: Input data is converted into vector embeddings.
- Indexing: Embeddings are indexed and stored using a vector store interface.
- Querying: User queries are embedded and used to search the vector store via the query processor.
- Quality: Tools assess the quality of the stored embeddings and search results.
- Core/Config: The core module orchestrates these steps, guided by configuration.
Configuration
(Details on configuring embedding models, vector store connections, indexing parameters, quality metrics, etc., will be added here.)
Development
Setup
# Clone the repository
git clone https://github.com/llamasearchai/llama-vector.git
cd llama-vector
# Install in editable mode with development dependencies
pip install -e ".[dev]"
Testing
pytest tests/
Contributing
Contributions are welcome! Please refer to CONTRIBUTING.md and submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for llamavector 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llamavector-0.1.0.tar.gz | 20.4 kB | Without provenance | Details for llamavector-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llamavector-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for llamavector-0.1.0-py3-none-any.whl |
Total release size: 36.4 kB
Release files / llamavector-0.1.0.tar.gz
| Download URL | llamavector-0.1.0.tar.gz |
|---|---|
| Size | 20.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e875356ed4e741db0950611cd64ee286997c234e67a161546cd5089bf9ec775c
|
|
BLAKE2b-256 checksum How to use checksums |
4d51c0cb220d83c91642a1d6e7e3c5f09a12a078520d385a22d66bc61cdd4d47
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / llamavector-0.1.0-py3-none-any.whl
| Download URL | llamavector-0.1.0-py3-none-any.whl |
|---|---|
| Size | 16.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bce064d53134feda1cb4625b2e31a789c9f236394ce02e340ad78a1ee157d88d
|
|
BLAKE2b-256 checksum How to use checksums |
e5097ba3b00221a8cf896565d60c547bd3558e6a6af2c914f52c6aaa3e9da047
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for llamavector 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.