TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/sdarionicolas-boop/AgroIA-RAG/llms.txt
Use this file to discover all available pages before exploring further.
/health endpoint provides a lightweight liveness check for the AgroIA API server. It returns the current configuration values for the database and embedding model, along with a fixed API version string. No authentication is required, making it suitable for Docker health checks, load balancer probes, monitoring dashboards, and CI/CD pipelines.
GET /health
Returns the server status and key configuration fields read fromsrc/utils/config.py at startup.
Response
Always
"ok" when the server is running and accepting requests.The configured PostgreSQL database name, sourced from the
DB_NAME environment variable (default: agri_db).The Ollama embedding model in use, sourced from
EMBEDDING_MODEL (default: nomic-embed-text).The API version. Always
"2.0" for the current release.Example
Response
Use cases
Docker health check
Add aHEALTHCHECK instruction to your Dockerfile or docker-compose.yml to have Docker restart the container if the API becomes unresponsive:
docker-compose.yml
CI/CD pipeline readiness check
Wait for the API to become available before running integration tests:shell
Monitoring and alerting
Use theversion and embedding_model fields to detect unexpected configuration drift in a running deployment:
Python