leann


Nameleann JSON
Version 0.1.11 PyPI version JSON
download
home_pageNone
SummaryLEANN - The smallest vector index in the world. RAG Everything with LEANN!
upload_time2025-07-26 00:23:31
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 (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 

            

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/4d/c8/d6362104dde6ee5a6ddd63d181862e87a640090b8a78ecdb6dad80f1b82e/leann-0.1.11.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 (HNSW backend, recommended)\nuv pip install leann\n\n# With DiskANN backend (for large-scale deployments)\nuv pip install leann[diskann]\n```\n\n## Quick Start\n\n```python\nfrom leann import LeannBuilder, LeannSearcher, LeannChat\n\n# Build an index\nbuilder = LeannBuilder(backend_name=\"hnsw\")\nbuilder.add_text(\"LEANN saves 97% storage compared to traditional vector databases.\")\nbuilder.build_index(\"my_index.leann\")\n\n# Search\nsearcher = LeannSearcher(\"my_index.leann\")\nresults = searcher.search(\"storage savings\", top_k=3)\n\n# Chat with your data\nchat = LeannChat(\"my_index.leann\", llm_config={\"type\": \"ollama\", \"model\": \"llama3.2:1b\"})\nresponse = chat.ask(\"How much storage does LEANN save?\")\n```\n\n## Documentation\n\nFor full documentation, visit [https://leann.readthedocs.io](https://leann.readthedocs.io)\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.1.11",
    "project_urls": {
        "Documentation": "https://leann.readthedocs.io",
        "Homepage": "https://github.com/yourusername/leann",
        "Issues": "https://github.com/yourusername/leann/issues",
        "Repository": "https://github.com/yourusername/leann"
    },
    "split_keywords": [
        "vector-database",
        " rag",
        " embeddings",
        " search",
        " ai"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "434926e76b0811e36047dd9e5528859f2cddc45a380d729052fb00a4302d963c",
                "md5": "3209326d3eecb24bbb78535b914aff6d",
                "sha256": "c00d2688890f3d303e7d3c7fa1d07a14eba412200ae93cf17adc0e64eb1e84e5"
            },
            "downloads": -1,
            "filename": "leann-0.1.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3209326d3eecb24bbb78535b914aff6d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 1889,
            "upload_time": "2025-07-26T00:22:50",
            "upload_time_iso_8601": "2025-07-26T00:22:50.252511Z",
            "url": "https://files.pythonhosted.org/packages/43/49/26e76b0811e36047dd9e5528859f2cddc45a380d729052fb00a4302d963c/leann-0.1.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4dc8d6362104dde6ee5a6ddd63d181862e87a640090b8a78ecdb6dad80f1b82e",
                "md5": "90ca5456db7fef125b775e8e5d6fee78",
                "sha256": "462dc6cd422093c0ef262e666367be62053610d8f759debd6034b42630be164a"
            },
            "downloads": -1,
            "filename": "leann-0.1.11.tar.gz",
            "has_sig": false,
            "md5_digest": "90ca5456db7fef125b775e8e5d6fee78",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 2051,
            "upload_time": "2025-07-26T00:23:31",
            "upload_time_iso_8601": "2025-07-26T00:23:31.032999Z",
            "url": "https://files.pythonhosted.org/packages/4d/c8/d6362104dde6ee5a6ddd63d181862e87a640090b8a78ecdb6dad80f1b82e/leann-0.1.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-26 00:23:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "yourusername",
    "github_project": "leann",
    "github_not_found": true,
    "lcname": "leann"
}
        
Elapsed time: 0.51299s