llama-index readers agent_search integration
Project description
AgentSearch Loader
pip install llama-index-readers-agent-search
This framework facilitates seamless integration with the AgentSearch dataset or hosted search APIs (e.g. Search Engines) and with RAG-specialized LLM's (e.g. Search Agents).
During query-time, the user passes in the query string, search provider (bing
, agent-search
), and RAG provider model (SciPhi/Sensei-7B-V1
).
To learn more, please refer to the documentation here.
Usage
Here's an example usage of the AgentSearchReader.
# Optionally set the API key in the env
# import os
# os.environ["SCIPHI_API_KEY"] = "..."
from llama_index.readers.agent_search import AgentSearchReader
reader = AgentSearch()
document = reader.load_data(
query="latest news",
)[0]
# text = "The latest news encompasses ... and its consequences [2]."
# metadata = {'related_queries': ['Details on the...', ...], 'search_results' : [...]}
This loader is designed to be used as a way to load data into LlamaIndex. https://github.com/run-llama/llama_index/
Project details
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
Close
Hashes for llama_index_readers_agent_search-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99c6ac0161a934609fb3404a18cbb544418487212bfe85225cfc7f3eaf25b0bb |
|
MD5 | 2103ec94da6d5256a0823f835b7b5a1f |
|
BLAKE2b-256 | 2ff12e4cc8c9dec9f67f287e102aaf30873f9b484825ee207580bc58a4473ae9 |
Close
Hashes for llama_index_readers_agent_search-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c30b23f0b40c053553daa8f34f472f1182ec80d6c242d018459b5048370ad3f |
|
MD5 | 3e618651b8295bb9cb9e22ccacfba1db |
|
BLAKE2b-256 | 10879ac56bdfc655e103c5e21c6ebc66c8d497a72b1fec1e0c16911b3cfecf74 |