leann


Nameleann JSON
Version 0.3.0 PyPI version JSON
download
home_pageNone
SummaryLEANN - The smallest vector index in the world. RAG Everything with LEANN!
upload_time2025-08-16 06:12:00
maintainerNone
docs_urlNone
authorLEANN Team
requires_python>=3.9
licenseMIT
keywords vector-database rag embeddings search ai
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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 (includes both HNSW and DiskANN backends)
uv pip install leann
```

## Quick Start

```python
from leann import LeannBuilder, LeannSearcher, LeannChat
from pathlib import Path
INDEX_PATH = str(Path("./").resolve() / "demo.leann")

# Build an index (choose backend: "hnsw" or "diskann")
builder = LeannBuilder(backend_name="hnsw")  # or "diskann" for large-scale deployments
builder.add_text("LEANN saves 97% storage compared to traditional vector databases.")
builder.add_text("Tung Tung Tung Sahur called—they need their banana‑crocodile hybrid back")
builder.build_index(INDEX_PATH)

# Search
searcher = LeannSearcher(INDEX_PATH)
results = searcher.search("fantastical AI-generated creatures", top_k=1)

# Chat with your data
chat = LeannChat(INDEX_PATH, llm_config={"type": "hf", "model": "Qwen/Qwen3-0.6B"})
response = chat.ask("How much storage does LEANN save?", top_k=1)
```

## License

MIT License

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "leann",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "vector-database, rag, embeddings, search, ai",
    "author": "LEANN Team",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/e5/cd/b87927fcf06d0003aabb0f8843b631a4dadedc85f25f44674aacab406479/leann-0.3.0.tar.gz",
    "platform": null,
    "description": "# LEANN - The smallest vector index in the world\n\nLEANN 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**.\n\n## Installation\n\n```bash\n# Default installation (includes both HNSW and DiskANN backends)\nuv pip install leann\n```\n\n## Quick Start\n\n```python\nfrom leann import LeannBuilder, LeannSearcher, LeannChat\nfrom pathlib import Path\nINDEX_PATH = str(Path(\"./\").resolve() / \"demo.leann\")\n\n# Build an index (choose backend: \"hnsw\" or \"diskann\")\nbuilder = LeannBuilder(backend_name=\"hnsw\")  # or \"diskann\" for large-scale deployments\nbuilder.add_text(\"LEANN saves 97% storage compared to traditional vector databases.\")\nbuilder.add_text(\"Tung Tung Tung Sahur called\u2014they need their banana\u2011crocodile hybrid back\")\nbuilder.build_index(INDEX_PATH)\n\n# Search\nsearcher = LeannSearcher(INDEX_PATH)\nresults = searcher.search(\"fantastical AI-generated creatures\", top_k=1)\n\n# Chat with your data\nchat = LeannChat(INDEX_PATH, llm_config={\"type\": \"hf\", \"model\": \"Qwen/Qwen3-0.6B\"})\nresponse = chat.ask(\"How much storage does LEANN save?\", top_k=1)\n```\n\n## License\n\nMIT License\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "LEANN - The smallest vector index in the world. RAG Everything with LEANN!",
    "version": "0.3.0",
    "project_urls": {
        "Issues": "https://github.com/yichuan-w/LEANN/issues",
        "Repository": "https://github.com/yichuan-w/LEANN"
    },
    "split_keywords": [
        "vector-database",
        " rag",
        " embeddings",
        " search",
        " ai"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "73d2a064eb298fe01481f2678cf10203789481aacce4c677ab2715469a1afe10",
                "md5": "d9b431f990e233f971366b6ff34e3a3a",
                "sha256": "243a540a68b61aa81974263204e16fe7224b07a0854e14a91c4a77f46615e3b9"
            },
            "downloads": -1,
            "filename": "leann-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d9b431f990e233f971366b6ff34e3a3a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 1916,
            "upload_time": "2025-08-16T06:10:54",
            "upload_time_iso_8601": "2025-08-16T06:10:54.711698Z",
            "url": "https://files.pythonhosted.org/packages/73/d2/a064eb298fe01481f2678cf10203789481aacce4c677ab2715469a1afe10/leann-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e5cdb87927fcf06d0003aabb0f8843b631a4dadedc85f25f44674aacab406479",
                "md5": "fac2f97feb3e5c9c6cf34fafcdb43d9e",
                "sha256": "84139227c1458c471c4ba0824265443b40c20ca2bf09d0e51576bbbd17739100"
            },
            "downloads": -1,
            "filename": "leann-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "fac2f97feb3e5c9c6cf34fafcdb43d9e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 2090,
            "upload_time": "2025-08-16T06:12:00",
            "upload_time_iso_8601": "2025-08-16T06:12:00.606946Z",
            "url": "https://files.pythonhosted.org/packages/e5/cd/b87927fcf06d0003aabb0f8843b631a4dadedc85f25f44674aacab406479/leann-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-16 06:12:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yichuan-w",
    "github_project": "LEANN",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "leann"
}
        
Elapsed time: 3.28023s