Python API backend for Celestial Self - Yoruba wisdom and astrology RAG system
# Celestial Self Backend
Python API backend for the Celestial Self web app, providing Yoruba wisdom and astrological insights using a RAG (Retrieval-Augmented Generation) system.
## Setup
```bash
pip install -r requirements.txt
```
## Running the API
```bash
python yoruba_wisdom_api.py
```
The server starts at `
localhost`
- API docs:
localhost
- Health check:
localhost
- Test endpoint:
localhost
## Project Structure
```
celestial-self-backend/
├── yoruba_wisdom_api.py # FastAPI server
├── embedding_rag/ # RAG system
│ ├── generators/ # Embedding generators
│ ├── retrieval/ # Retrieval systems
│ ├── data/ # Embedding data files
│ └── config/ # Configuration
└── requirements.txt
```
## API Endpoints
- `GET /` - Health check
- `GET /health` - Detailed health status
- `POST /wisdom` - Get personalized wisdom based on natal chart data
- `GET /test` - Test with sample data