AHV / README.md
murtaza-2007
AHV Assistant backend
2438b27
|
Raw
History Blame Contribute Delete
987 Bytes
---
title: AHV Assistant
emoji: πŸ“·
colorFrom: indigo
colorTo: gray
sdk: docker
app_port: 7860
pinned: false
---
# AHV Assistant β€” backend
FastAPI backend for the AHV product assistant (RAG over a camera-gear catalogue:
Q&A, recommendations, kit builder, compatibility, owner dashboard).
This Space hosts the **API**. The frontend is deployed separately (Vercel) and
points at this Space's URL via `config.js`.
## Required secrets (Space β†’ Settings β†’ Variables and secrets)
| Name | Type | Value |
|------|------|-------|
| `OPENROUTER_API_KEY` | secret | your OpenRouter key |
| `OPENROUTER_MODEL` | variable | `nvidia/llama-3.3-nemotron-super-49b-v1` |
| `FIREBASE_CREDENTIALS_JSON` | secret | the full service-account JSON (paste as one line) |
| `FIREBASE_PROJECT_ID` | variable | your Firebase project id |
| `ALLOWED_ORIGINS` | variable | your Vercel URL, e.g. `https://ahv.vercel.app` |
Health check: `GET /health` β†’ `{ "index_loaded": true, "llm_key_set": true }`.