llama-index-packs-zephyr-query-engine


Namellama-index-packs-zephyr-query-engine JSON
Version 0.5.0 PyPI version JSON
download
home_pageNone
Summaryllama-index packs zephyr_query_engine integration
upload_time2025-07-31 02:53:33
maintainerlogan-markewich
docs_urlNone
authorNone
requires_python<4.0,>=3.9
licenseNone
keywords engine huggingface index local query zephyr
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Zephyr Query Engine Pack

Create a query engine using completely local and private models -- `HuggingFaceH4/zephyr-7b-beta` for the LLM and `BAAI/bge-base-en-v1.5` for embeddings.

## CLI Usage

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

```bash
llamaindex-cli download-llamapack ZephyrQueryEnginePack --download-dir ./zephyr_pack
```

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

## Code Usage

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

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

# download and install dependencies
ZephyrQueryEnginePack = download_llama_pack(
    "ZephyrQueryEnginePack", "./zephyr_pack"
)

# You can use any llama-hub loader to get documents!
zephyr_pack = ZephyrQueryEnginePack(documents)
```

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

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

```python
response = zephyr_pack.run(
    "What did the author do growing up?", similarity_top_k=2
)
```

You can also use modules individually.

```python
# Use the llm
llm = zephyr_pack.llm
response = llm.complete("What is HuggingFace?")

# Use the index directly
index = zephyr_pack.index
query_engine = index.as_query_engine()
retriever = index.as_retriever()
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llama-index-packs-zephyr-query-engine",
    "maintainer": "logan-markewich",
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "engine, huggingface, index, local, query, zephyr",
    "author": null,
    "author_email": "Your Name <you@example.com>",
    "download_url": "https://files.pythonhosted.org/packages/ee/99/d3daefe58e6c1f613a71e57745e55b1c06cded59dc836fece1349fcc225b/llama_index_packs_zephyr_query_engine-0.5.0.tar.gz",
    "platform": null,
    "description": "# Zephyr Query Engine Pack\n\nCreate a query engine using completely local and private models -- `HuggingFaceH4/zephyr-7b-beta` for the LLM and `BAAI/bge-base-en-v1.5` for embeddings.\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 ZephyrQueryEnginePack --download-dir ./zephyr_pack\n```\n\nYou can then inspect the files at `./zephyr_pack` and use them as a template for your own project.\n\n## Code Usage\n\nYou can download the pack to a the `./zephyr_pack` directory:\n\n```python\nfrom llama_index.core.llama_pack import download_llama_pack\n\n# download and install dependencies\nZephyrQueryEnginePack = download_llama_pack(\n    \"ZephyrQueryEnginePack\", \"./zephyr_pack\"\n)\n\n# You can use any llama-hub loader to get documents!\nzephyr_pack = ZephyrQueryEnginePack(documents)\n```\n\nFrom here, you can use the pack, or inspect and modify the pack in `./zephyr_pack`.\n\nThe `run()` function is a light wrapper around `index.as_query_engine().query()`.\n\n```python\nresponse = zephyr_pack.run(\n    \"What did the author do growing up?\", similarity_top_k=2\n)\n```\n\nYou can also use modules individually.\n\n```python\n# Use the llm\nllm = zephyr_pack.llm\nresponse = llm.complete(\"What is HuggingFace?\")\n\n# Use the index directly\nindex = zephyr_pack.index\nquery_engine = index.as_query_engine()\nretriever = index.as_retriever()\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "llama-index packs zephyr_query_engine integration",
    "version": "0.5.0",
    "project_urls": null,
    "split_keywords": [
        "engine",
        " huggingface",
        " index",
        " local",
        " query",
        " zephyr"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b18481a5bc338637c296d60798b4a7808dd3b1214cc3f670e3f1ddafcdcd2fd0",
                "md5": "6e07fde017e5cace8a1105963e28dc99",
                "sha256": "9b64379430085550db7b23e7ab3b478f04f09e997dfa0d3b3c8669d66000158e"
            },
            "downloads": -1,
            "filename": "llama_index_packs_zephyr_query_engine-0.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6e07fde017e5cace8a1105963e28dc99",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 4324,
            "upload_time": "2025-07-31T02:53:31",
            "upload_time_iso_8601": "2025-07-31T02:53:31.685086Z",
            "url": "https://files.pythonhosted.org/packages/b1/84/81a5bc338637c296d60798b4a7808dd3b1214cc3f670e3f1ddafcdcd2fd0/llama_index_packs_zephyr_query_engine-0.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ee99d3daefe58e6c1f613a71e57745e55b1c06cded59dc836fece1349fcc225b",
                "md5": "60e82f25cf6d2ae2024868f0e11bf73c",
                "sha256": "ea77870a1ed9e00150c1064d62c7e33a26b2c642f782d632d3a3c80e0864e42c"
            },
            "downloads": -1,
            "filename": "llama_index_packs_zephyr_query_engine-0.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "60e82f25cf6d2ae2024868f0e11bf73c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 4569,
            "upload_time": "2025-07-31T02:53:33",
            "upload_time_iso_8601": "2025-07-31T02:53:33.133744Z",
            "url": "https://files.pythonhosted.org/packages/ee/99/d3daefe58e6c1f613a71e57745e55b1c06cded59dc836fece1349fcc225b/llama_index_packs_zephyr_query_engine-0.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-31 02:53:33",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-packs-zephyr-query-engine"
}
        
Elapsed time: 0.82845s