Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
* Stores chat messages as JSON documents and uses the Redis Query Engine for querying.
*
* @author Brian Sam-Bodden
* @author Jake Son
*/
public final class RedisChatMemoryRepository implements ChatMemoryRepository, AdvancedRedisChatMemoryRepository {

Expand Down Expand Up @@ -503,7 +504,7 @@ private void initializeSchema() {
schemaFields.add(new TextField("$.content").as("content"));
schemaFields.add(new TextField("$.type").as("type"));
schemaFields.add(new TagField("$.conversation_id").as("conversation_id"));
schemaFields.add(new NumericField("$.timestamp").as("timestamp"));
schemaFields.add(new NumericField("$.timestamp").as("timestamp").sortable());

// Add metadata fields based on user-provided schema or default to text
if (config.getMetadataFields() != null && !config.getMetadataFields().isEmpty()) {
Expand Down