You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(java-spring-ai-agents): supplementary KB RAG prompt + sync demo-scripts to RC2
- ChatService: use a custom QuestionAnswerAdvisor promptTemplate so KB docs are
treated as supplementary reference material (agent still answers from its own
knowledge when policies don't cover the question)
- demo-scripts/03-kb.sh: add spring-boot-starter-validation, supplementary KB
template, drop dead null-check
- demo-scripts/04-tools.sh: drop dead bean null-checks
- demo-scripts/01-create.sh: bootVersion 4.0.6 (Initializr resolves Spring AI RC2)
sed -i '/<artifactId>spring-ai-agentcore-memory<\/artifactId>/,/<\/dependency>/{
23
23
/<\/dependency>/a \
24
-
\t\t<!-- Knowledge Base (RAG) -->\n\t\t<dependency>\n\t\t\t<groupId>org.springframework.ai</groupId>\n\t\t\t<artifactId>spring-ai-starter-vector-store-bedrock-knowledgebase</artifactId>\n\t\t</dependency>\n\t\t<dependency>\n\t\t\t<groupId>org.springframework.ai</groupId>\n\t\t\t<artifactId>spring-ai-vector-store-advisor</artifactId>\n\t\t</dependency>
24
+
\t\t<!-- Knowledge Base (RAG) -->\n\t\t<dependency>\n\t\t\t<groupId>org.springframework.ai</groupId>\n\t\t\t<artifactId>spring-ai-starter-vector-store-bedrock-knowledgebase</artifactId>\n\t\t</dependency>\n\t\t<dependency>\n\t\t\t<groupId>org.springframework.ai</groupId>\n\t\t\t<artifactId>spring-ai-vector-store-advisor</artifactId>\n\t\t</dependency>\n\t\t<!-- Bean Validation (Hibernate Validator) - required by the Knowledge Base configuration properties -->\n\t\t<dependency>\n\t\t\t<groupId>org.springframework.boot</groupId>\n\t\t\t<artifactId>spring-boot-starter-validation</artifactId>\n\t\t</dependency>
0 commit comments