An open API service indexing awesome lists of open source software.

https://github.com/delitamakanda/faq-worker

Agent IA de foire aux questions pour mon portfolio pro
https://github.com/delitamakanda/faq-worker

agentic-ai deno typescript

Last synced: about 2 months ago
JSON representation

Agent IA de foire aux questions pour mon portfolio pro

Awesome Lists containing this project

README

          

# faq-worker (API)

Endpoint JSON pour FAQ IA.
Cherche `faq_index.json` dans le repo portftolio avec cache ETag.

## Déploiement

1. Crée un nouveau projet sur https://dash.deno.com
2. "New Project" → "Import from GitHub" → sélectionne ce repo
3. Dans **Settings → Environment Variables**, ajoute :
- `OPENAI_API_KEY` = sk-xxxx
- `RAW_INDEX_URL` = https://raw.githubusercontent.com/delitamakanda/portftolio/main/static/faq_index.json
- `ALLOW_ORIGIN` = https://delitamakanda.github.io (ou "*" pour tester)
4. Deploy → récupère l’URL : `https://dlitamakand-faq-worker-18.deno.dev/`

## Appel

POST `https://dlitamakand-faq-worker-18.deno.dev/` avec JSON `{ "question": "..." }`.

Réponse : `{ "answer": "..." }`.

## Notes
- L’index est refresh toutes les 15 minutes et à chaque cold start (If-None-Match ETag).
- Modèle embeddings: `text-embedding-3-small`
- Modèle LLM: `gpt-4o-mini`