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
Is this example, the `SearchRequest.defaults()` will perform a similarity search over all documents in the Vector Database.
344
+
In this example, the `SearchRequest.defaults()` will perform a similarity search over all documents in the Vector Database.
345
345
To restrict the types of documents that are searched, the `SearchRequest` takes a SQL like filter expression that is portable across all `VectorStores`.
346
346
347
347
==== Dynamic Filter Expressions
@@ -366,24 +366,21 @@ The `FILTER_EXPRESSION` parameter allows you to dynamically filter the search re
366
366
367
367
=== Chat Memory
368
368
369
-
The interface `ChatMemory` represents a storage for chat conversation history. It provides methods to add messages to a
370
-
* conversation, retrieve messages from a conversation, and clear the conversation history.
369
+
The interface `ChatMemory` represents a storage for chat conversation history. It provides methods to add messages to a conversation, retrieve messages from a conversation, and clear the conversation history.
371
370
372
-
There are two implementations `InMemoryChatMemory` and `CassandraChatMemory` that provides storage for chat conversation history, in-memory and persisted with time-to-live correspondingly.
371
+
There are two implementations `InMemoryChatMemory` and `CassandraChatMemory` that provides storage for chat conversation history, in-memory and persisted with `time-to-live` correspondingly.
373
372
374
-
To create a CassandraChatMemory with time-to-live
373
+
To create a `CassandraChatMemory` with `time-to-live`
Two advisor implementations use the `ChatMemory` interface to advice the prompt with conversation history which differ in the details of how the memory is added to the prompt
379
+
The following advisor implementations use the `ChatMemory` interface to advice the prompt with conversation history which differ in the details of how the memory is added to the prompt
381
380
382
-
* `MessageChatMemoryAdvisor` : Memory is retrieved added as a collection of messages to the prompt
383
-
* `PromptChatMemoryAdvisor` : Memory is retrieved added into the prompt's system text.
384
-
385
-
386
-
* `VectorStoreChatMemoryAdvisor` : The construtor ` VectorStoreChatMemoryAdvisor(VectorStore vectorStore, String defaultConversationId, int chatHistoryWindowSize)` lets you specify the VectorStore to retrieve the chat history from, the unqiue conversation ID, the size of the chat history to be retreived in token size.
381
+
* `MessageChatMemoryAdvisor` : Memory is retrieved and added as a collection of messages to the prompt
382
+
* `PromptChatMemoryAdvisor` : Memory is retrieved and added into the prompt's system text.
383
+
* `VectorStoreChatMemoryAdvisor` : The constructor `VectorStoreChatMemoryAdvisor(VectorStore vectorStore, String defaultConversationId, int chatHistoryWindowSize)` lets you specify the VectorStore to retrieve the chat history from, the unique conversation ID, the size of the chat history to be retrieved in token size.
387
384
388
385
A sample `@Service` implementation that uses several advisors is shown below
0 commit comments