CoolFace
Apppublic

Abhi4824/hardware-agent-qna

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
App README

Hardware Agent — QnA Portal

Ask questions over an accumulated corpus of semiconductor / AI-hardware news, analyst tweets, and research. Lexical retrieval (SQLite FTS5) + Gemini synthesis, with clickable citations.

Password-protected and rate-limited. Configure via Space Settings → Secrets:

SecretPurpose
GEMINI_API_KEYrequired — Gemini synthesis (create in Google AI Studio)
PORTAL_PASSWORDrequired for a public Space — the access password
PORTAL_SECRET_KEYsession signing (any long random string)
PORTAL_MAX_PER_HOURoptional, default 40 — caps API usage

Space variables (already set in the Docker image, but may be overridden):

VariableDefault
LLM_PROVIDERgemini
GEMINI_MODELgemini-2.5-flash

The corpus (hardware.db) is a snapshot; refresh it by re-pushing an updated DB.