Metadata-Version: 2.4
Name: leann
Version: 0.1.10
Summary: LEANN - The smallest vector index in the world. RAG Everything with LEANN!
Author: LEANN Team
License: MIT
Project-URL: Homepage, https://github.com/yourusername/leann
Project-URL: Documentation, https://leann.readthedocs.io
Project-URL: Repository, https://github.com/yourusername/leann
Project-URL: Issues, https://github.com/yourusername/leann/issues
Keywords: vector-database,rag,embeddings,search,ai
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: leann-core>=0.1.0
Requires-Dist: leann-backend-hnsw>=0.1.0
Provides-Extra: diskann
Requires-Dist: leann-backend-diskann>=0.1.0; extra == "diskann"

# LEANN - The smallest vector index in the world

LEANN is a revolutionary vector database that democratizes personal AI. Transform your laptop into a powerful RAG system that can index and search through millions of documents while using **97% less storage** than traditional solutions **without accuracy loss**.

## Installation

```bash
# Default installation (HNSW backend, recommended)
uv pip install leann

# With DiskANN backend (for large-scale deployments)
uv pip install leann[diskann]
```

## Quick Start

```python
from leann import LeannBuilder, LeannSearcher, LeannChat

# Build an index
builder = LeannBuilder(backend_name="hnsw")
builder.add_text("LEANN saves 97% storage compared to traditional vector databases.")
builder.build_index("my_index.leann")

# Search
searcher = LeannSearcher("my_index.leann")
results = searcher.search("storage savings", top_k=3)

# Chat with your data
chat = LeannChat("my_index.leann", llm_config={"type": "ollama", "model": "llama3.2:1b"})
response = chat.ask("How much storage does LEANN save?")
```

## Documentation

For full documentation, visit [https://leann.readthedocs.io](https://leann.readthedocs.io)

## License

MIT License 
