Agent-Search Retrieval Pack
This LlamaPack creates a custom retriever that uses the agent-search API for retrieving general content indexed from the internet.
This framework facilitates seamless integration with the AgentSearch dataset (terabytes of indexed data!) or hosted search APIs (e.g. Search Engines).
During query-time, the user passes in the query string, search provider (bing, agent-search), and relevant nodes are retrieved from the hosted dataset.
To learn more, please refer to the documentation here.
CLI Usage
You can download llamapacks directly using llamaindex-cli, which comes installed with the llama-index python package:
llamaindex-cli download-llamapack AgentSearchRetrieverPack --download-dir ./agent_search_pack
You can then inspect the files at ./agent_search_pack and use them as a template for your own project!
Code Usage
You can download the pack to a the ./agent_search_pack directory:
# Optionally set the API key in the env
# import os
# os.environ["SCIPHI_API_KEY"] = "..."
from llama_index.core.query_engine import RetrieverQueryEngine
from llama_index.core.llama_pack import download_llama_pack
# download and install dependencies
AgentSearchRetrieverPack = download_llama_pack(
"AgentSearchRetrieverPack", "./agent_search_pack"
)
agent_search_pack = AgentSearchRetrieverPack(
api_key="...", similarity_top_k=4, search_provider="agent-search"
)
# use the retriever directly
retriever = agent_search_pack.retriever
source_nodes = retriever.retrieve("query str")
# uses the agent-search retriever within a llama-index query engine!
query_engine = RetrieverQueryEngine.from_args(retriever)
response = query_engine.query("query str")
The run() function is a light wrapper around retriever.retrieve().
source_nodes = agent_search_pack.run("What can you tell me about LLMs?")
print(source_nodes)
See the notebook on llama-hub for a full example.
Metadata
Release files for llama-index-packs-agent-search-retriever 0.4.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_packs_agent_search_retriever-0.4.1.tar.gz | 4.7 kB | Without provenance | Details for llama_index_packs_agent_search_retriever-0.4.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_packs_agent_search_retriever-0.4.1-py3-none-any.whl | Python 3 | none | any | Details for llama_index_packs_agent_search_retriever-0.4.1-py3-none-any.whl |
Total release size: 9.1 kB
Release files / llama_index_packs_agent_search_retriever-0.4.1.tar.gz
| Download URL | llama_index_packs_agent_search_retriever-0.4.1.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f6648f0c2352558d0cd608f431d2f421044a3f6e1f679151a86bd1a8a1cc1bf
|
|
BLAKE2b-256 checksum How to use checksums |
164cc601b3cc1a70e1900e0c72da56e1ff39b6ecf9d987915643d9ac4124c16b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Release files / llama_index_packs_agent_search_retriever-0.4.1-py3-none-any.whl
| Download URL | llama_index_packs_agent_search_retriever-0.4.1-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a2a6a8be5003085223bc6cdb18696d88faf530a0d49afbdc8ac0ed916488818
|
|
BLAKE2b-256 checksum How to use checksums |
ec5aa394c4becf9bf773673234d2481b2e7be86eb98ce1dba67c4a2baf2e6964
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.13
|
Security for llama-index-packs-agent-search-retriever 0.4.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.