--- title: sehatech-demo app_file: chat_app.py sdk: gradio sdk_version: 5.6.0 --- # RAG Voice Boilerplate A production-ready Python boilerplate for building RAG (Retrieval Augmented Generation) applications with voice processing capabilities. ## ๐Ÿš€ Features - ๐Ÿ“š RAG Engine Integration - ๐ŸŽค Voice Processing Pipeline - ๐Ÿ—„๏ธ Vector Store Support - ๐Ÿ‹ Docker Containerization - ๐Ÿงช Testing Infrastructure - ๐Ÿ”ง Modular Architecture ## ๐Ÿ—๏ธ Project Structure ``` โ”œโ”€โ”€ app/ โ”‚ โ”œโ”€โ”€ __init__.py โ”‚ โ”œโ”€โ”€ main.py โ”‚ โ”œโ”€โ”€ config.py โ”‚ โ”œโ”€โ”€ api/ โ”‚ โ”‚ โ”œโ”€โ”€ __init__.py โ”‚ โ”‚ โ””โ”€โ”€ routes.py โ”‚ โ”œโ”€โ”€ core/ โ”‚ โ”‚ โ”œโ”€โ”€ __init__.py โ”‚ โ”‚ โ”œโ”€โ”€ rag_engine.py โ”‚ โ”‚ โ”œโ”€โ”€ voice_processor.py โ”‚ โ”‚ โ””โ”€โ”€ document_processor.py โ”‚ โ”œโ”€โ”€ database/ โ”‚ โ”‚ โ”œโ”€โ”€ __init__.py โ”‚ โ”‚ โ”œโ”€โ”€ vector_store.py โ”‚ โ”‚ โ””โ”€โ”€ db.py โ”‚ โ””โ”€โ”€ utils/ โ”‚ โ”œโ”€โ”€ __init__.py โ”‚ โ””โ”€โ”€ helpers.py โ”œโ”€โ”€ tests/ โ”‚ โ””โ”€โ”€ __init__.py โ”œโ”€โ”€ docker/ โ”‚ โ”œโ”€โ”€ Dockerfile โ”‚ โ””โ”€โ”€ docker-compose.yml โ”œโ”€โ”€ requirements.txt โ””โ”€โ”€ README.md ``` ## ๐Ÿšฆ Quick Start #### Prerequisie This project is only tested on python3.11 some points to consider: langchain-pinecone works only between versions python3.8 and python3.13 exclusively 1. Clone the repository: ```bash git clone https://github.com/yourusername/rag-voice-boilerplate.git ``` 2. Install dependencies: ```bash pip install -r requirements.txt ``` 3. Run with Docker: ```bash docker-compose up -d ``` ## ๐Ÿ“š Documentation ### Core Components - `rag_engine.py`: Handles retrieval augmented generation operations - `voice_processor.py`: Processes audio input/output - `document_processor.py`: Manages document parsing and preprocessing - `vector_store.py`: Manages vector embeddings and similarity search ## ๐Ÿค Contributing Contributions are welcome! Please feel free to submit a Pull Request. ## ๐Ÿ“„ License This project is licensed under the MIT License - see the LICENSE file for details.