-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.properties
More file actions
82 lines (66 loc) · 2.78 KB
/
Copy pathapplication.properties
File metadata and controls
82 lines (66 loc) · 2.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
spring.application.name=icrs
spring.config.import=optional:file:./application-secrets.properties
server.error.include-message=always
server.error.include-binding-errors=always
# PostgreSQL DB connection
spring.datasource.url=${spring.datasource.url}
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.username=${spring.datasource.username}
spring.datasource.password=${spring.datasource.password}
# JPA / Hibernate settings
spring.jpa.hibernate.ddl-auto=update
#create-drop- wipesdata on server restart
spring.jpa.show-sql=false
spring.jpa.properties.hibernate.format_sql=true
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
# Flyway migration settings
spring.flyway.enabled=true
spring.flyway.locations=classpath:db/migration
spring.flyway.baseline-on-migrate=true
spring.flyway.baseline-version=1
spring.flyway.validate-on-migrate=true
# JWT
security.jwt.secret-key=${jwt.secret.key}
security.jwt.expiration-time=3600000
# Mail properties
spring.mail.host=smtp.gmail.com
spring.mail.port=587
spring.mail.username=${support.email}
spring.mail.password=${support.email.pass}
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
logging.level.org.springframework.security=INFO
logging.level.com.college.icrs=INFO
logging.file.name=logs/icrs.log
logging.pattern.file=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] %logger{36} - %msg%n
# App configuration
icrs.cors.allowed-origins=http://localhost:5173,http://localhost:3000
icrs.files.allowed-mime-types=application/pdf,image/png,image/jpeg,text/plain
# AI workflow (application-level controls)
icrs.ai.enabled=true
icrs.ai.auto-resolve-confidence-threshold=0.70
icrs.ai.max-description-chars=4000
icrs.ai.timeout-seconds=90
icrs.ai.max-completion-tokens=400
icrs.ai.system-user-email=ai.system@icrs.local
icrs.ai.decision-source=DEEPSEEK_AGENTIC_V1
icrs.ai.rag.enabled=true
icrs.ai.rag.top-k=3
# RAG infrastructure
# Embeddings use Spring AI's local open-source ONNX default: sentence-transformers/all-MiniLM-L6-v2.
spring.ai.vectorstore.pgvector.initialize-schema=false
spring.ai.vectorstore.pgvector.schema-validation=true
spring.ai.vectorstore.pgvector.table-name=vector_store
spring.ai.vectorstore.pgvector.id-type=text
spring.ai.vectorstore.pgvector.index-type=hnsw
spring.ai.vectorstore.pgvector.distance-type=cosine-distance
spring.ai.vectorstore.pgvector.dimensions=384
# Sentiment model service (ML-based)
icrs.ai.sentiment.enabled=true
icrs.ai.sentiment.auto-start=true
icrs.ai.sentiment.base-url=http://localhost:8090
icrs.ai.sentiment.timeout-ms=3000
icrs.ai.sentiment.neutral-band-upper=0.60
icrs.ai.sentiment.model-name=siebert/sentiment-roberta-large-english
icrs.ai.sentiment.working-dir=src/main/python/sentiment_service
icrs.ai.sentiment.startup-wait-ms=90000