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
- Host: GitHub
- URL: https://github.com/delitamakanda/faq-worker
- Owner: delitamakanda
- Created: 2025-10-27T14:18:00.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-10-31T20:14:27.000Z (8 months ago)
- Last Synced: 2025-11-10T08:02:37.507Z (8 months ago)
- Topics: agentic-ai, deno, typescript
- Language: TypeScript
- Homepage: https://dlitamakand-faq-worker-18.deno.dev/
- Size: 63.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`