Skip to content

This project is a search-powered AI chatbot built with Streamlit and LangChain, designed to retrieve information from multiple sources like Wikipedia, Arxiv, and DuckDuckGo. It leverages LangChain's agent framework and Groq API for real-time, intelligent responses.

Notifications You must be signed in to change notification settings

Harikishan-AI/Search-Engine-Gen-AI-App-using-LangChain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔎 Search Engine Gen AI App Using LangChain Tools and Agents

This project demonstrates a search-powered chatbot application built using Streamlit and LangChain, enabling dynamic interactions with multiple information sources such as Wikipedia, Arxiv, and DuckDuckGo. The app leverages LangChain's Agent functionality, integrating powerful tools to enhance user queries by combining information retrieval and language model capabilities.

Features:

  • LangChain Integration: Uses LangChain to connect tools for retrieving information from multiple sources.
  • Wikipedia API: Queries Wikipedia for concise and informative responses.
  • Arxiv API: Extracts relevant academic papers from Arxiv, providing quick and insightful information on research topics.
  • DuckDuckGo Search: Executes web searches to provide more general information from the internet.
  • Interactive Chat Interface: Implemented using Streamlit, allowing users to input queries and interact with the chatbot directly.
  • Groq API: Utilizes the Groq API for large-scale language models, offering powerful, real-time text generation.

How It Works:

  1. Input: The user enters a query in the chat interface.
  2. Agent Initialization: The app initializes a LangChain Agent with access to various tools like Arxiv, Wikipedia, and DuckDuckGo search.
  3. Information Retrieval: Based on the user's input, the agent dynamically selects the appropriate tools to fetch relevant data.
  4. Real-Time Response: The response, generated in real-time, is displayed within the chat, along with the agent's thought process and actions using StreamlitCallbackHandler.

Future Enhancements:

  • Expand the set of tools and agents for more comprehensive query handling.
  • Add more robust error handling for parsing or retrieval issues.
  • Improve the UI/UX for a better interactive experience.

Output:

{B0F0CAD9-586E-47B6-A8C7-9CA9F9D367B3}

{FF0932CE-C499-4AC7-9499-03973DC5E3FD}

{04418A7A-7713-40AC-B34D-2DDE6A0639B2}

{E6BC8629-B467-43F2-9E68-35AB9467957C}

{BEE7C624-13FC-408F-908B-441088133726}

About

This project is a search-powered AI chatbot built with Streamlit and LangChain, designed to retrieve information from multiple sources like Wikipedia, Arxiv, and DuckDuckGo. It leverages LangChain's agent framework and Groq API for real-time, intelligent responses.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages