AI_Agro_Support/.env.example
Arsham Mirehvandi f77c0abebd Update database handling and configuration for advisory generation
- Enhanced `.env.example` to include `SQL_APP_DATABASE` for managing additional advisory-related tables.
- Refactored `config.yaml` to remove the `crops` block, shifting to a database-driven approach for job discovery.
- Updated `README.md` to clarify the new database structure and job discovery process, emphasizing the role of the `AI_agrosupport_an_pathogen_models` and `AI_agrosupport_agro_models` tables.
- Modified SQL queries across multiple files to accommodate the new database schema, ensuring correct table references and improving overall data handling.
- Adjusted `pipeline` logic to utilize the new configuration, enhancing the efficiency of the advisory generation process.
2026-10-14 10:57:45 +02:00

32 lines
1.3 KiB
Plaintext

# Gemini API key used by Weaviate's Gemini vectorizer backend and the Gemini LLM provider
GEMINI_API_KEY=your-gemini-api-key
# Optional LLM provider keys (required when config.yaml llm.provider is openai / anthropic)
OPENAI_API_KEY=your-openai-api-key
ANTHROPIC_API_KEY=your-anthropic-api-key
# Weaviate connection (local Docker instance)
WEAVIATE_HOST=localhost
WEAVIATE_HTTP_PORT=8080
WEAVIATE_GRPC_PORT=50051
# Microsoft SQL Server connection
SQL_DRIVER=ODBC Driver 17 for SQL Server
# host, or host,port. ODBC uses a comma before the port, not a colon.
SQL_SERVER=localhost
# Field, weather, and disease-model tables (AI_agrosupport_*).
SQL_DATABASE=your-database-name
# advisories, products, product_uses, and label_chunks, on the same instance.
# Unset, or equal to SQL_DATABASE, when those four tables live in SQL_DATABASE.
SQL_APP_DATABASE=your-app-database-name
SQL_USERNAME=your-sql-username
SQL_PASSWORD=your-sql-password
# Observability (optional; see config.yaml observability: / README "Observability").
# Every var below overrides the matching config.yaml value; unset = use config.yaml
# (which defaults to tracing off). Uncomment PHOENIX_TRACING_ENABLED to turn tracing
# on without editing config.yaml.
# PHOENIX_TRACING_ENABLED=true
# PHOENIX_COLLECTOR_ENDPOINT=http://localhost:6006/v1/traces
# PHOENIX_PROJECT_NAME=ai-agro-support