Little_Agent_Chatbot

🤖 Little Agent Chatbot 🤖

🌟 Overview

Little Agent Chatbot is a simple yet powerful local AI assistant that runs entirely on your machine. Built for learning and experimentation, it combines the power of open-source LLMs with advanced retrieval-augmented generation (RAG) to create an intelligent chatbot that can work with your personal documents and provide real-time information.

✨ Key Features

🚀 Tech Stack

🎯 What Makes This Special?

🛠️ Installation

Prerequisites

Setup Steps

  1. Clone the repository
    git clone ricard1406/Little_Agent_Chatbot
    cd Little_Agent_Chatbot
    (note: 'data' folder is required for RAG testing)
    
  2. Create and activate virtual environment
    python3 -m venv .venv
    source .venv/bin/activate
    
  3. Install Python dependencies
    pip install langchain langchain-community langchain-core langchain-ollama chromadb sentence-transformers pypdf python-dotenv unstructured[pdf] tiktoken gradio
    
  4. Install Ollama models
    # Choose one of these Qwen3 models based on your hardware:
    ollama pull qwen3:4b        # or LLM your choice
       
    # Install embedding model for RAG functionality
    ollama pull nomic-embed-text
    
  5. Run the application
    python3 Little_Agent_Chatbot [graph|text]
    
  6. Open your browser and navigate to the provided local URL

📖 Usage

Basic Chat

Simply type your questions and the AI will respond using the local Qwen3 model.

Document Upload

Upload PDF documents to enable RAG functionality. The chatbot will be able to answer questions based on your documents.

Agent Capabilities

🏗️ Architecture

User Input → Gradio Interface → Langchain Agent → Ollama/Qwen3 → Response
                                      ↓
                              RAG System (PDF Documents)
                                      ↓
                              External Tools (Weather, Calculator)

🔧 Configuration

Customize the chatbot by modifying:

🤝 Contributing

Contributions are welcome! This project is designed for learning and experimentation. Feel free to:

📝 License

This project is licensed under the MIT License - see the LICENSE file for details.

🎓 Educational Purpose

This project is perfect for:

🔮 Future Enhancements

📞 Support

If you encounter issues or have questions:

🌟 Star the Project

If you find this project helpful, please give it a star! It helps others discover the project and motivates continued development.


Made with ❤️ for the AI community

Happy chatting with your local AI agent! 🚀