File size: 987 Bytes
2438b27 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ---
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 }`.
|