Files
qruvw_ms_configs/kilimo-assistant-localhost.yml
2026-03-25 15:23:42 +03:00

63 lines
2.0 KiB
YAML

server:
port: 9082
spring:
application:
name: farm-kilimo-ms-assistant
data:
redis:
host: localhost
port: 6379
datasource:
url: jdbc:postgresql://localhost:5432/kilimo_assistant
username: root
password: password
driver-class-name: org.postgresql.Driver
jpa:
show-sql: false
hibernate:
ddl-auto: update
database-platform: org.hibernate.dialect.PostgreSQLDialect
logging:
pattern:
console: "%d{HH:mm:ss.SSS} [%X{requestId}] %-5level %logger{36} - %msg%n"
cors:
allowed-origins:
- http://localhost:9080
- http://localhost:9081
- http://localhost:9082
assistant:
base: "You are Kilimo Assistant, an expert in farm and agriculture questions only."
generateJson: "Return a JSON with fields: 'content'(string) and 'violate'(bool) if outside your expertise)."
generateTitle: "Generate a short 'title' field in the JSON."
generateActions: "Add an 'actions'(string array) field in the JSON with relevant actions from below."
userMemory: "Consider these facts about user"
userMemoryRequest: "Generate any new(max 3) and add to 'userFacts'(key,value array) field in json"
chatMemory: "Consider these facts about this chat"
chatMemoryRequest: "Generate any new(max 3) and add to 'chatFacts'(key,value array) field in json"
premiumMemorySize: 8
defaultMemorySize: 2
models:
- name: deepseek-gpt-4
url: https://api.deepseek.com/chat/completions
access:
key: Authorization
value: Bearer sk-52cdbf062bdf4e45aa39734e1bb2f813
- name: gemini-3-flash-preview
url: https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent
access:
key: x-goog-api-key
value: AIzaSyA3DXZUXLIYcMFWaWuZMmtzTU8RMIBg1Yk
actions:
- CREATE_FARM
- START_IRRIGATION
- HARVEST_CROPS
- PEST_CONTROL
- FERTILIZATION
- SOIL_TESTING
- WEATHER_FORECAST
- CROP_SELECTION
- DISEASE_DIAGNOSIS
- YIELD_PREDICTION
- IRRIGATION_SCHEDULING
- MARKET_PRICES
- FARM_EQUIPMENT_MAINTENANCE