{"id":24154858,"url":"https://github.com/mdalamin5/multiagent-search-bot-llm","last_synced_at":"2026-04-12T14:50:20.621Z","repository":{"id":271821594,"uuid":"914679460","full_name":"MDalamin5/MultiAgent-Search-Bot-LLM","owner":"MDalamin5","description":"A Streamlit app integrating LangChain to enable chatbot interactions with web search capabilities. Leverages APIs like Arxiv, Wikipedia, and DuckDuckGo for insightful responses. Features an interactive chat interface, real-time agent actions, and secure API key input for seamless user experience.","archived":false,"fork":false,"pushed_at":"2025-01-10T13:14:27.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T22:57:52.688Z","etag":null,"topics":["agents","generative-ai","langchain","streamlit"],"latest_commit_sha":null,"homepage":"https://search-engine-llm-hve88ggypuwbukbyzi4kq7.streamlit.app/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MDalamin5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-10T04:48:39.000Z","updated_at":"2025-01-10T13:14:30.000Z","dependencies_parsed_at":"2025-01-10T14:25:57.880Z","dependency_job_id":"66e0d6bb-550c-4666-bf08-9d1848386dd2","html_url":"https://github.com/MDalamin5/MultiAgent-Search-Bot-LLM","commit_stats":null,"previous_names":["mdalamin5/search-engine-llm","mdalamin5/search-engine-llm-with-multy-agents"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MDalamin5%2FMultiAgent-Search-Bot-LLM","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MDalamin5%2FMultiAgent-Search-Bot-LLM/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MDalamin5%2FMultiAgent-Search-Bot-LLM/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MDalamin5%2FMultiAgent-Search-Bot-LLM/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MDalamin5","download_url":"https://codeload.github.com/MDalamin5/MultiAgent-Search-Bot-LLM/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241435116,"owners_count":19962399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agents","generative-ai","langchain","streamlit"],"created_at":"2025-01-12T12:26:15.350Z","updated_at":"2025-12-31T01:07:08.209Z","avatar_url":"https://github.com/MDalamin5.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 🔎 LangChain - Chat with Search\n\nThis repository contains a Streamlit app that allows users to interact with a chatbot capable of searching the web using LangChain. The app integrates with APIs like Arxiv, Wikipedia, and DuckDuckGo to retrieve information and provide insightful responses.\n\n## 🚀 Features\n\n- **Search the Web**: Retrieve results from DuckDuckGo, Wikipedia, and Arxiv.\n- **Interactive Chat Interface**: Powered by Streamlit's `st.chat_message` feature.\n- **Streamlit Callback Handler**: Displays agent thoughts and actions in real-time.\n- **Customizable API Key Input**: Securely input your Groq API Key via the Streamlit sidebar.\n\n## 🛠️ Tech Stack\n\n- **Streamlit**: For building the web interface.\n- **LangChain**: For managing agents and tools.\n- **Arxiv, Wikipedia, DuckDuckGo APIs**: For fetching external data.\n\n## 📦 Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/MDalamin5/MultiAgent-Search-Bot-LLM.git\n   cd MultiAgent-Search-Bot-LLm\n   ```\n\n2. Install the required Python packages:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n3. Create a `.env` file and add your API keys:\n   ```\n   GROQ_API_KEY=your_groq_api_key\n   ```\n\n4. Run the Streamlit app:\n   ```bash\n   streamlit run app.py\n   ```\n\n## 🖥️ How to Use\n\n1. Launch the app using the `streamlit run app.py` command.\n2. Enter your Groq API key in the sidebar.\n3. Type your query in the chat input (e.g., *What is machine learning?*).\n4. View the chatbot's response and actions.\n\n## 📄 Code Explanation\n\n### Tools Integration\n\n- **Arxiv**: Fetches the top search result with a character limit for the content.\n- **Wikipedia**: Retrieves the top search result with a character limit for the content.\n- **DuckDuckGo**: General-purpose web search.\n\n### Agent Initialization\n\nThe LangChain agent is initialized with the following:\n- `tools`: Search tools from Arxiv, Wikipedia, and DuckDuckGo.\n- `ChatGroq`: LLM powered by Groq API.\n- `AgentType.ZERO_SHOT_REACT_DESCRIPTION`: Handles dynamic queries with zero-shot reasoning.\n\n### Streamlit Features\n\n- **Sidebar**: Allows users to input their Groq API key.\n- **Chat Interface**: Facilitates communication with the chatbot.\n- **Callback Handler**: Displays the agent's thoughts and actions dynamically.\n\n## 🌟 Example Usage\n\n1. **Input**: What is machine learning?\n2. **Agent Response**:\n   - Searches Arxiv for relevant papers.\n   - Fetches summaries from Wikipedia.\n   - Provides a combined response from all tools.\n\n## 🤝 Contributing\n\nContributions are welcome! Feel free to submit a pull request or open an issue.\n\n## 📜 License\n\nThis project is licensed under the [GPL-3.0 license](LICENSE).\n\n## 🙌 Acknowledgments\n\n- [LangChain](https://langchain.com)\n- [Streamlit](https://streamlit.io)\n- [Arxiv API](https://arxiv.org)\n- [Wikipedia API](https://www.mediawiki.org/wiki/API:Main_page)\n- [DuckDuckGo API](https://duckduckgo.com)\n\n---\n\nFeel free to fork and star this repository! 🌟\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdalamin5%2Fmultiagent-search-bot-llm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdalamin5%2Fmultiagent-search-bot-llm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdalamin5%2Fmultiagent-search-bot-llm/lists"}