# Voyage Query Engine Pack
Create a query engine using GPT4 and [Voyage AI](https://docs.voyageai.com/embeddings/) 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 VoyageQueryEnginePack --download-dir ./voyage_pack
```
You can then inspect the files at `./voyage_pack` and use them as a template for your own project.
## Code Usage
You can download the pack to a the `./voyage_pack` directory:
```python
from llama_index.core.llama_pack import download_llama_pack
# download and install dependencies
VoyageQueryEnginePack = download_llama_pack(
"VoyageQueryEnginePack", "./voyage_pack"
)
# You can use any llama-hub loader to get documents!
voyage_pack = VoyageQueryEnginePack(documents)
```
From here, you can use the pack, or inspect and modify the pack in `./voyage_pack`.
The `run()` function is a light wrapper around `index.as_query_engine().query()`.
```python
response = voyage_pack.run(
"What did the author do growing up?", similarity_top_k=2
)
```
You can also use modules individually.
```python
# Use the index directly
index = voyage_pack.index
query_engine = index.as_query_engine()
retriever = index.as_retriever()
```
Raw data
{
"_id": null,
"home_page": null,
"name": "llama-index-packs-voyage-query-engine",
"maintainer": "Liuhong99",
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "embeddings, query, retrieval, voyage",
"author": "Your Name",
"author_email": "you@example.com",
"download_url": "https://files.pythonhosted.org/packages/ea/68/5043ddd657df0944b066b594a114a22804d25b00a807eea5107d7bcbbe50/llama_index_packs_voyage_query_engine-0.4.0.tar.gz",
"platform": null,
"description": "# Voyage Query Engine Pack\n\nCreate a query engine using GPT4 and [Voyage AI](https://docs.voyageai.com/embeddings/) 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 VoyageQueryEnginePack --download-dir ./voyage_pack\n```\n\nYou can then inspect the files at `./voyage_pack` and use them as a template for your own project.\n\n## Code Usage\n\nYou can download the pack to a the `./voyage_pack` directory:\n\n```python\nfrom llama_index.core.llama_pack import download_llama_pack\n\n# download and install dependencies\nVoyageQueryEnginePack = download_llama_pack(\n \"VoyageQueryEnginePack\", \"./voyage_pack\"\n)\n\n# You can use any llama-hub loader to get documents!\nvoyage_pack = VoyageQueryEnginePack(documents)\n```\n\nFrom here, you can use the pack, or inspect and modify the pack in `./voyage_pack`.\n\nThe `run()` function is a light wrapper around `index.as_query_engine().query()`.\n\n```python\nresponse = voyage_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 index directly\nindex = voyage_pack.index\nquery_engine = index.as_query_engine()\nretriever = index.as_retriever()\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "llama-index packs voyage_query_engine integration",
"version": "0.4.0",
"project_urls": null,
"split_keywords": [
"embeddings",
" query",
" retrieval",
" voyage"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c5c9e40f1d829087d7bd432d8ec2348e7fcce385fa0e27bd09f1a1ebd21c214c",
"md5": "d452a8df85868e67d6a14dcf4bd26244",
"sha256": "00518c7280967f315b31d05bc283f4e6d487be1c067cea40f554601bc4c520ad"
},
"downloads": -1,
"filename": "llama_index_packs_voyage_query_engine-0.4.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d452a8df85868e67d6a14dcf4bd26244",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 2796,
"upload_time": "2024-11-18T02:22:43",
"upload_time_iso_8601": "2024-11-18T02:22:43.643905Z",
"url": "https://files.pythonhosted.org/packages/c5/c9/e40f1d829087d7bd432d8ec2348e7fcce385fa0e27bd09f1a1ebd21c214c/llama_index_packs_voyage_query_engine-0.4.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ea685043ddd657df0944b066b594a114a22804d25b00a807eea5107d7bcbbe50",
"md5": "fa7511d4a32b93c29640a4b95da3ff36",
"sha256": "4b61db650d48921907db0564511f5cd99f1cd15ab26bd709d8129617ee561ee3"
},
"downloads": -1,
"filename": "llama_index_packs_voyage_query_engine-0.4.0.tar.gz",
"has_sig": false,
"md5_digest": "fa7511d4a32b93c29640a4b95da3ff36",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 2484,
"upload_time": "2024-11-18T02:22:45",
"upload_time_iso_8601": "2024-11-18T02:22:45.148920Z",
"url": "https://files.pythonhosted.org/packages/ea/68/5043ddd657df0944b066b594a114a22804d25b00a807eea5107d7bcbbe50/llama_index_packs_voyage_query_engine-0.4.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-18 02:22:45",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "llama-index-packs-voyage-query-engine"
}