How luisalfred1/sistemas-expertos-proyecto works
SaborChapínExperto is a web-based Guatemalan food recommender. A user selects a category and/or ingredient in the recommendations page; its JavaScript loads available options and submits the selection to FastAPI. The API delegates recommendation work to a Python CLIPS engine, which loads the version 2 knowledge base, evaluates rules, and returns ranked recommendations for display. The graph also includes the documented general site and the shared response contracts. Source evidence is limited to the README and sampled files, so unsampled page wiring and rule-level behavior are not expanded.
Main entry points: main.py FastAPI endpoints · recomendaciones.js Recommendation form · motor_experto.py CLIPS recommendation engine · index.html General site
Components 9
Web experience
- General site
frontend/index.html - Recommendation form
frontend/js/recomendaciones.js - Site interactions
frontend/js/main.js
API layer
- FastAPI endpoints
backend/main.py - Request and response models
backend/modelos.py
Recommendation engine
- CLIPS recommendation engine
backend/motor_experto.py - Food facts and rules
backend/conocimientoV2.clp - Other documented dishes
backend/conocimiento.clp
Other components
- Food seeker
Connections 6
- Food seeker → Recommendation form: selects food
README.md - Food seeker → General site: visits
README.md - Recommendation form → FastAPI endpoints: fetches options and recommendations
frontend/js/recomendaciones.js - FastAPI endpoints → CLIPS recommendation engine: delegates evaluation
backend/main.py - FastAPI endpoints → Request and response models: validates and shapes
backend/main.py - CLIPS recommendation engine → Food facts and rules: loads and evaluates
backend/motor_experto.py