Skip to content
Discussion options

You must be logged in to vote

Hi,

In Spring AI Playground, the ChatClient bean is configured so that all available advisors (such as ChatMemoryAdvisor and SpringAiPlaygroundRagAdvisor) are automatically applied. Could you check if you have a configuration like this?

@Bean
public ChatClient chatClient(ChatClient.Builder chatClientBuilder, Advisor[] advisors) {
    return chatClientBuilder.defaultAdvisors(advisors).build();
}

If this part is present, the next thing to verify is whether the ChatMemoryAdvisor and SpringAiPlaygroundRagAdvisor are actually being created and injected into the advisors array.

A quick way to confirm:

  • Put a breakpoint (or add a log) inside this chatClient bean method.
  • When the app starts, insp…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nxa06464
Comment options

Answer selected by nxa06464
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants