AgentSearch is a groundbreaking framework designed for efficient and seamless integration with the AgentSearch dataset and various hosted search APIs, including popular search engines. It specializes in working with RAG (Retrieval-Augmented Generation) specialized Language Learning Models (LLMs) like Sensei-7B, enhancing the capabilities of search agents in diverse applications.
- Search Agent Integration: Effortlessly connect with any RAG-specialized LLM, including the cutting-edge Sensei-7B model.
- Customizable Search Solutions: Utilize the AgentSearch dataset for deploying your local search engine or incorporate custom datasets for tailored search functionalities.
- API Connectivity: Easily integrate with leading search provider APIs such as SciPhi for streamlined deployment.
pip install agent-searchGet your free API key from SciPhi and set it in your environment:
export SCIPHI_API_KEY=$MY_SCIPHI_API_KEYImport and use the AgentSearch client in your project:
from agent_search import SciPhi
client = SciPhi()
# Perform a search
search_response = client.search(query='Quantum Field Theory', search_provider='agent-search')
print(search_response)
# [{ 'score': '.89', 'url': 'https://...', 'metadata': {...} }]
# Generate a RAG response
rag_response = client.get_search_rag_response(query='latest news', search_provider='bing', llm_model='SciPhi/Sensei-7B-V1')
print(rag_response)
# { 'response': '...', 'other_queries': '...', 'search_results': '...' }- Engage with Us: Join our Discord community for discussions and updates.
- Feedback & Inquiries: Contact us via email for personalized support.
AgentSearch is a multi-TB dataset hosted on here on HuggingFace. This repository has the necessary code for individuals to download and host their own search engine with this dataset.
- Docker: Download here
- Postgres: Download here
- Start Postgres Database
sudo service postgresql start
- Populate Database
python -m agent_search.scripts.populate_postgres_from_hf run
- Qdrant Service with Docker
docker run -p 6333:6333 -p 6334:6334 -v $(pwd)/qdrant_storage:/qdrant/storage:z qdrant/qdrant - Populate Vector Database
python -m agent_search.scripts.populate_qdrant_from_postgres run --delete_existing=True
- Launch Server
python -m agent_search.app.server
- Execute commands from the root directory of the AgentSearch project.
- Replace
queryin the run command with your specific search query. - User Guide coming soon!
