Spaces:
Configuration error
Configuration error
Intelligent AI Search Engine Agent π€π
An intelligent agentic search engine powered by Groq's Llama3-8b, Streamlit, and multi-source search tools (DuckDuckGo, Arxiv, Wikipedia). Built with LangChain for robust AI agent orchestration.
Features β¨
- Multi-Source Search: Integrates 3 powerful tools:
- π¦ DuckDuckGo (web search)
- π Arxiv (scientific papers)
- π Wikipedia (encyclopedic knowledge)
- Groq-Powered AI: Utilizes Groq's ultra-fast Llama3-8b model
- Smart Agent Optimization:
- Auto-stop when sufficient information is found
- Max 3 iterations to prevent infinite loops
- Concise answer prioritization
- Streamlit UI: User-friendly interface with chat history
- Error Handling: Robust parsing and API error recovery
Getting Started π
Prerequisites
- Python 3.8+
- Groq API Key
.envfile for API keys (optional)
Installation
git clone https://github.com/yourusername/ai-search-agent.git
cd ai-search-agent
pip install -r requirements.txt
Setup
- Get Groq API key from Groq Console
- Create
.envfile:
GROQ_API_KEY=your_key_here
Run the App
streamlit run app2.py # Recommended: optimized version
# or
streamlit run app.py
Usage π‘
- Enter Groq API key in sidebar
- Ask questions in natural language:
- "Explain quantum computing basics"
- "Latest research on LLM optimization"
- "Compare CNN and RNN architectures"
- Watch the agent intelligently combine search sources!
Code Versions π
app.py: Base implementation with custom DuckDuckGo searchapp2.py(Recommended): Enhanced version with:- Official DuckDuckGoSearchRun tool
- System instruction prompts
- Limited iterations (3 max)
- Early stopping mechanism
- More robust error handling
Deployment βοΈ
Project is Deployed at Streamlit Community Cloud:
- Go to Streamlit Console
- Enter your Groq API Key
- Search your query with Intelligent AI Search-Engine
Contributing π€
PRs welcome! Please follow:
- Fork the repository
- Create feature branch
- Submit PR with detailed description
License π
MIT License - See LICENSE
Acknowledgments π
- Groq for LLM infrastructure
- LangChain team for agent framework
- Streamlit for UI components