Skip to content

Repository files navigation

DT Knowledge API

FastAPI backend for the Digital Twin Course chat widget. Powers knowledge search, SPIN qualification questionnaire, and product recommendations.

Quick Start

pip install -r requirements.txt
uvicorn main:app --reload

Endpoints

MethodPathDescription
GET/api/healthHealth check
GET/api/search?q=...Knowledge base search
POST/api/chatChat + SPIN questionnaire
GET/api/resourcesCurated resource list
GET/api/smileSMILE methodology overview
GET/api/smile/{phase_id}SMILE phase detail

Tests

pip install pytest httpx
python -m pytest tests/ -v

Deployment

Deployed to Vercel via vercel --prod. See vercel.json for config.

Environment Variables

See .env.example. The API works without any env vars (fallback mode).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages