llama-index packs voyage_query_engine integration
Project description
Voyage Query Engine Pack
Create a query engine using GPT4 and Voyage AI Embeddings.
CLI Usage
You can download llamapacks directly using llamaindex-cli, which comes installed with the llama-index python package:
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:
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().
response = voyage_pack.run(
"What did the author do growing up?", similarity_top_k=2
)
You can also use modules individually.
# Use the index directly
index = voyage_pack.index
query_engine = index.as_query_engine()
retriever = index.as_retriever()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llama_index_packs_voyage_query_engine-0.6.0.tar.gz.
File metadata
- Download URL: llama_index_packs_voyage_query_engine-0.6.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
003f0f9e7fecb4fc36a413cf60571e0c5c364e10cfb1d4f59a39a041cee947d1
|
|
| MD5 |
59d8eb9588c5eeccd6ae031871b5e96a
|
|
| BLAKE2b-256 |
aae37617ec47a11ebc3216e72552511a250e20dbdd3dd3029eaa3839b85635f8
|
File details
Details for the file llama_index_packs_voyage_query_engine-0.6.0-py3-none-any.whl.
File metadata
- Download URL: llama_index_packs_voyage_query_engine-0.6.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db46c86d5a97e0916f8f6eef94d15107f74566d180f57f97c956d722f29a23df
|
|
| MD5 |
cf06f6c670bbbd637822a72c983c590c
|
|
| BLAKE2b-256 |
860fad19eba963bc570d2227387f8855e33d3b70e6b2ffd72f1baacc7375e28d
|