44
44
*
45
45
* @author Christian Tzolov
46
46
* @author Thomas Vitale
47
+ * @author Oganes Bozoyan
47
48
* @since 1.0.0
48
49
*/
49
50
public class VectorStoreChatMemoryAdvisor extends AbstractChatMemoryAdvisor <VectorStore > {
@@ -64,20 +65,29 @@ public class VectorStoreChatMemoryAdvisor extends AbstractChatMemoryAdvisor<Vect
64
65
65
66
private final String systemTextAdvise ;
66
67
68
+ @ Deprecated
67
69
public VectorStoreChatMemoryAdvisor (VectorStore vectorStore ) {
68
70
this (vectorStore , DEFAULT_SYSTEM_TEXT_ADVISE );
69
71
}
70
72
73
+ @ Deprecated
71
74
public VectorStoreChatMemoryAdvisor (VectorStore vectorStore , String systemTextAdvise ) {
72
75
super (vectorStore );
73
76
this .systemTextAdvise = systemTextAdvise ;
74
77
}
75
78
79
+ @ Deprecated
76
80
public VectorStoreChatMemoryAdvisor (VectorStore vectorStore , String defaultConversationId ,
77
81
int chatHistoryWindowSize ) {
78
82
this (vectorStore , defaultConversationId , chatHistoryWindowSize , DEFAULT_SYSTEM_TEXT_ADVISE );
79
83
}
80
84
85
+ @ Deprecated
86
+ public VectorStoreChatMemoryAdvisor (VectorStore vectorStore , String defaultConversationId ,
87
+ int chatHistoryWindowSize , int order ) {
88
+ this (vectorStore , defaultConversationId , chatHistoryWindowSize , DEFAULT_SYSTEM_TEXT_ADVISE , order );
89
+ }
90
+
81
91
public VectorStoreChatMemoryAdvisor (VectorStore vectorStore , String defaultConversationId ,
82
92
int chatHistoryWindowSize , String systemTextAdvise ) {
83
93
this (vectorStore , defaultConversationId , chatHistoryWindowSize , systemTextAdvise ,
@@ -209,10 +219,25 @@ public Builder withSystemTextAdvise(String systemTextAdvise) {
209
219
return this ;
210
220
}
211
221
222
+ public Builder withConversationId (String conversationId ) {
223
+ this .conversationId = conversationId ;
224
+ return this ;
225
+ }
226
+
227
+ public Builder withChatMemoryRetrieveSize (Integer chatMemoryRetrieveSize ) {
228
+ this .chatMemoryRetrieveSize = chatMemoryRetrieveSize ;
229
+ return this ;
230
+ }
231
+
232
+ public Builder withOrder (Integer order ) {
233
+ this .order = order ;
234
+ return this ;
235
+ }
236
+
212
237
@ Override
213
238
public VectorStoreChatMemoryAdvisor build () {
214
239
return new VectorStoreChatMemoryAdvisor (this .chatMemory , this .conversationId , this .chatMemoryRetrieveSize ,
215
- this .systemTextAdvise );
240
+ this .systemTextAdvise , this . order );
216
241
}
217
242
218
243
}
0 commit comments