Skip to content

A chatbot that leverages Large Language Models (LLMs) to perform real-time web searches using LangChain, Groq API, and various search tools. This project is deployed on Hugging Face Spaces.

Notifications You must be signed in to change notification settings

laavanjan/Search-LLM-deploy-huggingface

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔎 Search-LLM-Deploy-HuggingFace

Python LangChain Streamlit Groq API Hugging Face Space Alt Text A chatbot that leverages Large Language Models (LLMs) to perform real-time web searches using LangChain, Groq API, and various search tools. This project is deployed on Hugging Face Spaces.

🚀 Live Demo

Try the chatbot here: Search Engine LLM

🛠 Features

  • 🌐 Web Search: Retrieves up-to-date information from the web using DuckDuckGo.
  • 📚 Arxiv & Wikipedia Support: Fetches relevant academic papers and Wikipedia summaries.
  • 🤖 LLM-Powered Responses: Uses Groq's qwen-2.5-32b model for intelligent responses.
  • 🔄 Chat History: Maintains session history for a better user experience.
  • 📊 LangSmith Tracing: Enables tracking and debugging of LangChain interactions.
  • 📂 Deployed on Hugging Face Spaces: Easily accessible without setup.

🏗️ Tech Stack

  • Python 🐍
  • Streamlit 🎈
  • LangChain & LangSmith 🔗
  • Groq API 🚀
  • DuckDuckGo Search API 🔎
  • Arxiv & Wikipedia API 📖

📥 Installation

  1. Clone the repository:

    git clone https://github.com/laavanjan/Search-LLM-deploy-huggingface.git
    cd Search-LLM-deploy-huggingface
  2. Install dependencies:

    pip install -r requirements.txt
  3. Set up environment variables:

    Create a .env file and add your API keys:

    GROQ_API_KEY=your_groq_api_key
    LANGCHAIN_API_KEY=your_langchain_api_key
    LANGCHAIN_TRACING_V2=true
    LANGCHAIN_PROJECT="Chatbot with webSearch"
  4. Run the application:

    streamlit run app.py

🖼️ Demo Images

(Screenshots of the chatbot in action will be added here)

Image 1 Image 2 Image 3
Image 4 Image 5 Image 6

📝 License

This project is licensed under the GPL License.

🤝 Contributing

Contributions are welcome! Feel free to fork the repo, make changes, and submit a pull request.


Star this repo if you find it useful!

About

A chatbot that leverages Large Language Models (LLMs) to perform real-time web searches using LangChain, Groq API, and various search tools. This project is deployed on Hugging Face Spaces.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages