llama-index-packs-auto-merging-retriever


Namellama-index-packs-auto-merging-retriever JSON
Version 0.5.1 PyPI version JSON
download
home_pageNone
Summaryllama-index packs auto_merging_retriever integration
upload_time2025-09-08 20:49:40
maintainerjerryjliu
docs_urlNone
authorNone
requires_python<4.0,>=3.9
licenseNone
keywords auto automerging index merging retriever
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Auto Merging Retriever Pack

This LlamaPack provides an example of our auto-merging retriever.

This specific template shows the e2e process of building this. It loads
a document, builds a hierarchical node graph (with bigger parent nodes and smaller
child nodes).

Check out the [notebook here](https://github.com/run-llama/llama-hub/blob/main/llama_hub/llama_packs/auto_merging_retriever/auto_merging_retriever.ipynb).

## CLI Usage

You can download llamapacks directly using `llamaindex-cli`, which comes installed with the `llama-index` python package:

```bash
llamaindex-cli download-llamapack AutoMergingRetrieverPack --download-dir ./auto_merging_retriever_pack
```

You can then inspect the files at `./auto_merging_retriever_pack` and use them as a template for your own project.

## Code Usage

You can download the pack to a the `./auto_merging_retriever_pack` directory:

```python
from llama_index.core.llama_pack import download_llama_pack

# download and install dependencies
AutoMergingRetrieverPack = download_llama_pack(
    "AutoMergingRetrieverPack", "./auto_merging_retriever_pack"
)
```

From here, you can use the pack, or inspect and modify the pack in `./auto_merging_retriever_pack`.

Then, you can set up the pack like so:

```python
# create the pack
# get documents from any data loader
auto_merging_retriever_pack = AutoMergingRetrieverPack(
    documents,
)
```

The `run()` function is a light wrapper around `query_engine.query()`.

```python
response = auto_merging_retriever_pack.run(
    "Tell me about what the author did growing up."
)
```

You can also use modules individually.

```python
# get the node parser
node_parser = auto_merging_retriever_pack.node_parser

# get the retriever
retriever = auto_merging_retriever_pack.retriever

# get the query engine
query_engine = auto_merging_retriever_pack.query_engine
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llama-index-packs-auto-merging-retriever",
    "maintainer": "jerryjliu",
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "auto, automerging, index, merging, retriever",
    "author": null,
    "author_email": "Your Name <you@example.com>",
    "download_url": "https://files.pythonhosted.org/packages/b0/d8/15a3af2b656966c36bfbcad8b525a1dac8fa719e315fe588bca444b144e3/llama_index_packs_auto_merging_retriever-0.5.1.tar.gz",
    "platform": null,
    "description": "# Auto Merging Retriever Pack\n\nThis LlamaPack provides an example of our auto-merging retriever.\n\nThis specific template shows the e2e process of building this. It loads\na document, builds a hierarchical node graph (with bigger parent nodes and smaller\nchild nodes).\n\nCheck out the [notebook here](https://github.com/run-llama/llama-hub/blob/main/llama_hub/llama_packs/auto_merging_retriever/auto_merging_retriever.ipynb).\n\n## CLI Usage\n\nYou can download llamapacks directly using `llamaindex-cli`, which comes installed with the `llama-index` python package:\n\n```bash\nllamaindex-cli download-llamapack AutoMergingRetrieverPack --download-dir ./auto_merging_retriever_pack\n```\n\nYou can then inspect the files at `./auto_merging_retriever_pack` and use them as a template for your own project.\n\n## Code Usage\n\nYou can download the pack to a the `./auto_merging_retriever_pack` directory:\n\n```python\nfrom llama_index.core.llama_pack import download_llama_pack\n\n# download and install dependencies\nAutoMergingRetrieverPack = download_llama_pack(\n    \"AutoMergingRetrieverPack\", \"./auto_merging_retriever_pack\"\n)\n```\n\nFrom here, you can use the pack, or inspect and modify the pack in `./auto_merging_retriever_pack`.\n\nThen, you can set up the pack like so:\n\n```python\n# create the pack\n# get documents from any data loader\nauto_merging_retriever_pack = AutoMergingRetrieverPack(\n    documents,\n)\n```\n\nThe `run()` function is a light wrapper around `query_engine.query()`.\n\n```python\nresponse = auto_merging_retriever_pack.run(\n    \"Tell me about what the author did growing up.\"\n)\n```\n\nYou can also use modules individually.\n\n```python\n# get the node parser\nnode_parser = auto_merging_retriever_pack.node_parser\n\n# get the retriever\nretriever = auto_merging_retriever_pack.retriever\n\n# get the query engine\nquery_engine = auto_merging_retriever_pack.query_engine\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "llama-index packs auto_merging_retriever integration",
    "version": "0.5.1",
    "project_urls": null,
    "split_keywords": [
        "auto",
        " automerging",
        " index",
        " merging",
        " retriever"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f72da195074d30b69cd4649f72170cf2f807b38947f1ff32ecf509ec575be327",
                "md5": "1cc1e662fb8cc6529e4dcfc13ac58d90",
                "sha256": "90e3e24ec97e5dfc0dec3dbafecf926e94e0e391b5ebf1e6398d8310d305e1b1"
            },
            "downloads": -1,
            "filename": "llama_index_packs_auto_merging_retriever-0.5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1cc1e662fb8cc6529e4dcfc13ac58d90",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 4092,
            "upload_time": "2025-09-08T20:49:40",
            "upload_time_iso_8601": "2025-09-08T20:49:40.110928Z",
            "url": "https://files.pythonhosted.org/packages/f7/2d/a195074d30b69cd4649f72170cf2f807b38947f1ff32ecf509ec575be327/llama_index_packs_auto_merging_retriever-0.5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b0d815a3af2b656966c36bfbcad8b525a1dac8fa719e315fe588bca444b144e3",
                "md5": "bda5baa6c0cf909f95ead8456aaf9f2b",
                "sha256": "050daae4a27a86591a40403457fe36f0e221a5247bdd775914b123a526dd5814"
            },
            "downloads": -1,
            "filename": "llama_index_packs_auto_merging_retriever-0.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "bda5baa6c0cf909f95ead8456aaf9f2b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 4270,
            "upload_time": "2025-09-08T20:49:40",
            "upload_time_iso_8601": "2025-09-08T20:49:40.843883Z",
            "url": "https://files.pythonhosted.org/packages/b0/d8/15a3af2b656966c36bfbcad8b525a1dac8fa719e315fe588bca444b144e3/llama_index_packs_auto_merging_retriever-0.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-09-08 20:49:40",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-packs-auto-merging-retriever"
}
        
Elapsed time: 5.04349s