Spring AI Advisors
are interceptors
provided by Spring framework
to intercept
, modify
and enhance
the interaction and communication between the Ai Model
and Application
. Adding System Text
with User Prompt
is a good example of Spring Ai Advisors
.
Some of the Advisors supported and provided by Spring Ai as below.
-
Spring Ai Simple Logger Advisor
The Spring Ai Simple Logger Advisor is used to log the request and response of ChatClient, it is very useful for debugging purposes.
-
Spring Ai Simple Logger Advisor Customized
The Spring framework provides mechanisms to customize the Spring Ai Simple Logger Advisor to change the Logging as per the requirements.
-
Spring Ai Prompt Chat Memory Advisor
The Spring Ai Prompt Chat Memory Advisor keeps conversation history in the Chat Memory Store. It retrieves all old messages from memory and adds a collection of messages to the Prompt System Text.
-
Spring Ai Prompt Safe Guard Advisor
Spring AI Prompt Safe Guard Advisor is designed to prevent the AI Model from generating harmful and inappropriate content.
-
Spring Ai Message Chat Memory Advisor
The Spring Ai Message Chat Memory Advisor keeps conversation history in the Chat Memory Store. It retrieves all old messages from memory and adds a collection of messages to the prompt.
-
Spring Ai Re-Reading Advisor
The Re-Reading Advisor forces the AI Model to read the user query one more time just to make sure all aspects are covered.