Skip to content

akshat16206/AI-chat-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

17 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI Chat Box

This is a Python-based AI chat system built with LangChain, supporting LLMs like OpenAI and Anthropic. It fetches information from tools like Wikipedia and DuckDuckGo and can be configured via .env.


πŸš€ Features

  • Query LLMs using LangChain (OpenAI/Anthropic)
  • Use tools like DuckDuckGo and Wikipedia
  • Modular tool integration
  • Environment config via .env

πŸ“ Folder Structure

AI-chat-box/ β”œβ”€β”€ main.py # Main entry point for the app β”œβ”€β”€ tool.py # Tool functions for external search or processing β”œβ”€β”€ requirments.txt # Python dependency list β”œβ”€β”€ sample.env # Template for environment config β”œβ”€β”€ documentation.txt # Full description of the system β”œβ”€β”€ README.md # Project overview (this file) β”œβ”€β”€ venv/ # Python virtual environment


πŸ”§ Installation

  1. Clone the repo

    git clone <your-repo-url>
    cd AI-chat-box
  2. Create & activate a virtual environment

    python3 -m venv venv source venv/bin/activate # macOS/Linux venv\Scripts\activate # Windows

  3. Install dependencies

    pip install -r requirments.txt or pip3 install -r requirments.txt

4.Set up environment

Copy sample.env to .env

Add your API keys (OpenAI, Anthropic, etc.)

5.Run the application

python main.py

Dependencies:

As listed in requriments.txt:

langchain, langchain-community, langchain-openai, langchain-anthropic

wikipedia, duckduckgo-search

python-dotenv, pydantic

πŸ‘¨β€πŸ’» Author Akshat Gupta

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages