Skip to main content

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

llama_index_readers_agent_search-0.4.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file llama_index_readers_agent_search-0.4.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_readers_agent_search-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f02820b3d4eb7196f1a0d331215028069786e5c5ff5e35550c46cfc0bab7a28d
MD5 19dbf5f0f735e6c512b897fce141c946
BLAKE2b-256 708e849e56ba38f33e98ed114e746e9a136d75b3d860a32c6366f80e6f74c801

See more details on using hashes here.

File details

Details for the file llama_index_readers_agent_search-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_readers_agent_search-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4752e94571be374a574cfcbdbcfe062e26f22b85917bb45241039bcd95aa4fe8
MD5 a3571cb6fd4ed72d01604d64dceebaac
BLAKE2b-256 de979419049ca583f5f53441b22ad7bf4f845cffec082d8610d9a3b1f3d028eb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page