Skip to content

Latest commit

Β 

History

History
127 lines (100 loc) Β· 3.39 KB

File metadata and controls

127 lines (100 loc) Β· 3.39 KB

ConversAI-Kit

A comprehensive, modern AI chat platform with a React frontend and Python backend. Build powerful conversational experiences with multiple AI models, voice interactions, and multi-modal capabilities.

Features

Current:

  • 🎯 Modern, responsive React-based UI
  • πŸ’¬ Real-time chat with streaming responses
  • πŸ€– Multiple model support (OpenAI integration)
  • πŸ–ΌοΈ Image handling capabilities
  • πŸ”’ Secure environment configuration
  • πŸ“ Automatic conversation naming
  • πŸ“š Conversation history and management
  • πŸš€ FastAPI backend with type safety
  • πŸ“– Interactive API documentation

Planned:

  • 🧠 Multiple LLM integrations (GPT-4, Claude, Llama)
  • πŸ“„ Document processing (RAG)
  • πŸ“š Custom knowledge base integration
  • πŸ”„ Multi-modal conversations
  • πŸ’Ύ Enhanced conversation memory and context

Prerequisites

  • Node.js (v18 or higher)
  • Yarn package manager
  • Python 3.9+
  • OpenAI API key

Project Structure

ConversAI-Kit/
β”œβ”€β”€ chatbot-ui/          # React frontend
β”‚   β”œβ”€β”€ src/            # Source files
β”‚   β”œβ”€β”€ public/         # Static files
β”‚   └── package.json    # Frontend dependencies
β”œβ”€β”€ chatbot-api/        # Python FastAPI backend
β”‚   β”œβ”€β”€ src/           # Source files
β”‚   β”‚   β”œβ”€β”€ app.py    # Main FastAPI application
β”‚   β”‚   β”œβ”€β”€ chat.py   # Chat logic
β”‚   β”‚   └── database.py# Database operations
β”‚   β”œβ”€β”€ tests/        # Test files
β”‚   └── requirements.txt# Backend dependencies

Quick Start

Frontend (chatbot-ui)

  1. Navigate to the frontend directory:

    cd chatbot-ui
  2. Install dependencies:

    yarn install
  3. Start the development server:

    yarn start

    The UI will be available at http://localhost:3000

Backend (chatbot-api)

  1. Create and activate a virtual environment:

    cd chatbot-api
    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  2. Install dependencies:

    pip install -r requirements.txt
  3. Configure environment:

    cp .env.example .env
    # Edit .env with your settings
  4. Start the server:

    uvicorn src.app:app --reload --port 5001

    The API will be available at http://localhost:5001 API Documentation at http://localhost:5001/docs

Development

Code Style

  • Frontend: ESLint and Prettier for JavaScript/React
  • Backend: PEP 8 guidelines for Python
  • Use meaningful commit messages following Conventional Commits

Branch Strategy

  • main: Production-ready code
  • develop: Development branch
  • Feature branches: feature/feature-name
  • Bug fixes: fix/bug-name

Contributing

We welcome contributions! Please see our Contributing Guidelines for details on:

  • Code of Conduct
  • Development process
  • How to submit pull requests
  • Bug reporting

License

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

Support

Acknowledgments

  • Thanks to all contributors who help improve this project
  • Built with React, FastAPI, and OpenAI