github-actions[bot]
Sync from GitHub: 0ac95c3f715ee4ab7cb750c43f5485afd125be5d to branch main
7f7a5a3 metadata
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
- Create a single virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
Setup environment variables: Update
.envwith yourGOOGLE_API_KEY.Run locally:
uvicorn main:app --host 0.0.0.0 --port 8000 --reload