Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 121 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,130 @@
# Backend Part of Chatacter
# Chatacter Backend

> **AI-Powered Character Chat System with Video and Voice Generation**

[![CodeFactor](https://www.codefactor.io/repository/github/alphaspheredotai/chatacter_backend/badge/main)](https://www.codefactor.io/repository/github/alphaspheredotai/chatacter_backend/overview/main)
[![Docker Compose](https://img.shields.io/badge/docker%20compose-ready-blue)](./compose.yaml)
[![Documentation](https://img.shields.io/badge/docs-comprehensive-green)](./docs/)

The Chatacter Backend is a sophisticated multi-service architecture that enables AI-powered character interactions with integrated video and voice generation capabilities. Built with modern containerization and microservices principles, it provides a scalable and extensible platform for creating immersive character-based chat experiences.

Back to [Chatacter](https://github.com/AlphaSphereDotAI/chatacter)
## 🚀 Quick Start

## Install
Get up and running in minutes:

```bash
# Clone with submodules
git clone --recurse-submodules https://github.com/AlphaSphereDotAI/chatacter_backend.git
cd chatacter_backend

# Set required environment variables
export MODEL__API_KEY="your-api-key-here"

# Launch all services
docker compose up -d
```

**Access Points:**
- 🤖 **Main Chat App**: http://localhost:8000
- 🎬 **Video Generator**: http://localhost:8002
- 🔊 **Voice Generator**: http://localhost:8001
- 🗃️ **Vector Database**: http://localhost:6333

## 🏗️ Architecture Overview

The Chatacter Backend consists of four main components working together:

```mermaid
graph TB
User[👤 User] --> App[🤖 Chattr App<br/>Port 8000]
App --> VDB[(🗃️ Qdrant Vector DB<br/>Port 6333)]
App --> Video[🎬 Visualizr<br/>Video Generator<br/>Port 8002]
App --> Voice[🔊 Vocalizr<br/>Voice Generator<br/>Port 8001]

subgraph "AI Services"
App
Video
Voice
end

subgraph "Data Layer"
VDB
end
```

### Core Services

| Service | Purpose | Technology | Port |
|---------|---------|------------|------|
| **Chattr** | Main chat application with AI character interaction | Python, Gradio | 8000 |
| **Visualizr** | Video generation and visual content creation | Python, AI Models | 8002 |
| **Vocalizr** | Voice synthesis and audio generation | Python, TTS Models | 8001 |
| **Qdrant** | Vector database for semantic search and memory | Rust, Vector DB | 6333 |

## 📋 Prerequisites

- **Docker** (20.10+ recommended)
- **Docker Compose** (2.0+ recommended)
- **NVIDIA GPU** (for video/voice generation)
- **API Key** for AI model access (Groq, OpenAI, etc.)

## 🔧 Configuration

The system is configured via environment variables. Key settings:

```bash
# Required
MODEL__API_KEY=your-groq-or-openai-api-key

# Optional (with defaults)
MODEL__URL=https://api.groq.com/openai/v1
MODEL__NAME=llama3-70b-8192
MODEL__TEMPERATURE=0.0
```

[📖 Complete Configuration Reference](./docs/environment-variables.md)

## 🛠️ Development

For development setup and contributing:

```bash
# Development mode with hot reload
docker compose -f compose.yaml -f compose.dev.yaml up

# Run tests
docker compose exec app python -m pytest

# View logs
docker compose logs -f app
```

[📖 Development Guide](./docs/development.md) • [📖 Contributing](./docs/contributing.md)

## 📚 Documentation

Comprehensive documentation is available in the [`docs/`](./docs/) directory:

- **[📖 Complete Documentation](./docs/README.md)** - Full documentation index
- **[⚡ Quick Start Guide](./docs/quick-start.md)** - Detailed setup instructions
- **[🏗️ Architecture Guide](./docs/architecture.md)** - System design and components
- **[🔌 API Reference](./docs/api/)** - Complete API documentation
- **[🚀 Deployment Guide](./docs/deployment.md)** - Production deployment
- **[🔧 Troubleshooting](./docs/troubleshooting.md)** - Common issues and solutions

## 🤝 Related Projects

- **[Chatacter](https://github.com/AlphaSphereDotAI/chatacter)** - Main project repository
- **[Chattr](https://github.com/AlphaSphereDotAI/chattr)** - Chat application component
- **[Visualizr](https://github.com/AlphaSphereDotAI/visualizr)** - Video generation service
- **[Vocalizr](https://github.com/AlphaSphereDotAI/vocalizr)** - Voice generation service

## 📄 License

This project is licensed under the terms specified in each component repository.

## 🆘 Support

- **Issues**: [GitHub Issues](https://github.com/AlphaSphereDotAI/chatacter_backend/issues)
- **Documentation**: [docs/](./docs/)
- **Troubleshooting**: [docs/troubleshooting.md](./docs/troubleshooting.md)
32 changes: 32 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Chatacter Backend Documentation

Welcome to the comprehensive documentation for the Chatacter Backend project. This documentation provides detailed information about architecture, installation, configuration, and usage of the Chatacter system.

## Documentation Index

### Getting Started
- [Quick Start Guide](./quick-start.md) - Get up and running quickly
- [Installation Guide](./installation.md) - Detailed installation instructions
- [Configuration Reference](./configuration.md) - Complete configuration options
- [FAQ](./faq.md) - Frequently asked questions and answers

### Architecture & Design
- [System Architecture](./architecture.md) - Overall system design and components

### API Documentation
- [Main App API](./api/app.md) - Chattr service API reference
- [Video Generator API](./api/video.md) - Visualizr service API reference
- [Voice Generator API](./api/voice.md) - Vocalizr service API reference

### Development
- [Development Guide](./development.md) - Setting up development environment
- [Contributing Guide](./contributing.md) - How to contribute to the project

### Deployment
- [Production Deployment](./deployment.md) - Production deployment guide

### Operations
- [Troubleshooting](./troubleshooting.md) - Common issues and solutions

### Reference
- [Environment Variables](./environment-variables.md) - Complete environment variable reference
Loading