CRM / README.md
github-actions[bot]
Sync from GitHub: 0ac95c3f715ee4ab7cb750c43f5485afd125be5d to branch main
7f7a5a3
|
Raw
History Blame Contribute Delete
1.04 kB
---
title: AI CRM API
emoji: ๐Ÿš€
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 8000
---
# AI CRM Monolith
This project has been refactored into a single monolithic API mimicking the GoNidhi `dl-api` structure. It is designed to be deployed directly to Hugging Face Spaces using Docker.
## Structure
- `api/`: API Routers.
- `core/`: Configurations, globals, logging.
- `engine/`: Model loading, inference, and RAG execution logic.
- `services/`: Business logic.
- `data/knowledge_base/`: Contains the raw source documents (markdown, text) for the RAG ingestion pipeline.
- `schemas.py`: Pydantic validation schemas.
- `main.py`: FastAPI entrypoint.
## Setup
1. Create a single virtual environment:
```bash
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
```
2. Install dependencies:
```bash
pip install -r requirements.txt
```
3. Setup environment variables:
Update `.env` with your `GOOGLE_API_KEY`.
4. Run locally:
```bash
uvicorn main:app --host 0.0.0.0 --port 8000 --reload
```