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

Built Distribution

File details

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

File metadata

File hashes

Hashes for llama_index_readers_agent_search-0.3.0.tar.gz
Algorithm Hash digest
SHA256 94feca4d102edb5ea5d88e649d19d9e849983590f8ae63757574c3d57db0cb8d
MD5 8f312ef2fb01740276ac9b72a065bf13
BLAKE2b-256 2a7739e733dbccc54599ed31eff0aca7453a146165969e58c674fcf2e5ee3022

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llama_index_readers_agent_search-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b1ce5e86b422ee40945c21a98bf2fc25ee8fbbc6ac4f0427fc14d96fbf58f45
MD5 3beb2617a4d4522eca268cafaa72ad11
BLAKE2b-256 80a3b7949f20b71f4923014c1a3668d47e5d3eea60bb692d5135c40e192ff041

See more details on using hashes here.

Supported by

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