Comments on: Getting Started with Spring AI and Chat Model https://piotrminkowski.com/2025/01/28/getting-started-with-spring-ai-and-chat-model/ Java, Spring, Kotlin, microservices, Kubernetes, containers Mon, 03 Mar 2025 12:54:29 +0000 hourly 1 https://wordpress.org/?v=6.9.1 By: piotr.minkowski https://piotrminkowski.com/2025/01/28/getting-started-with-spring-ai-and-chat-model/#comment-2608 Mon, 03 Mar 2025 12:54:29 +0000 https://piotrminkowski.com/?p=15494#comment-2608 In reply to Slavomir.

In the conversation I first ask about generating a list of persons. Then, the model will look a particular person in this generated list. Withour chat memory it won’t remember a previous response, so it won’t return any answer. I’m using only in-memory chat memory, but you can rerplace it with a store.

]]>
By: Slavomir https://piotrminkowski.com/2025/01/28/getting-started-with-spring-ai-and-chat-model/#comment-2600 Fri, 28 Feb 2025 10:30:27 +0000 https://piotrminkowski.com/?p=15494#comment-2600 I have a question. You introduced the PromptChatMemoryAdvisor in order to intercept the prompts and responses and store them into the InMemoryChatMemory. But It is not clear to me where the conversationId comes from – that should be used by the ChatMemory to store the messages in the hash map of lists (key is the conversationId, value is list of the messages), correct? When you prompt “Find and return the object with id {id} in a current list of persons.” how it knows what is the current conversationId so that it would find the list of previous messages only in the current conversation?

]]>
By: piotr.minkowski https://piotrminkowski.com/2025/01/28/getting-started-with-spring-ai-and-chat-model/#comment-2574 Wed, 29 Jan 2025 15:02:46 +0000 https://piotrminkowski.com/?p=15494#comment-2574 In reply to Andre Kapp.

Thanks for suggestion. I’ll work on it soon 🙂

]]>
By: Andre Kapp https://piotrminkowski.com/2025/01/28/getting-started-with-spring-ai-and-chat-model/#comment-2573 Wed, 29 Jan 2025 04:47:03 +0000 https://piotrminkowski.com/?p=15494#comment-2573 Great stuff! Like how you have split the different models with profiles. One last refinement – create profiles for the properties files as well. Then the properties are just as clean as the rest.
You will soon find more model specific properties that needs to be added when you delve into RAG and embedding. Then your properties are already clean and well designed.

]]>