Class SemanticMessageHistorySchema
java.lang.Object
com.redis.vl.extensions.messagehistory.SemanticMessageHistorySchema
Schema for semantic message history index with vector field for semantic search.
Matches the Python SemanticMessageHistorySchema from redisvl.extensions.message_history.schema
-
Method Summary
Modifier and TypeMethodDescriptionstatic IndexSchemafromParams(String name, String prefix, int vectorizerDims, String dtype) Creates an IndexSchema for semantic message history with standard fields plus vector field.
-
Method Details
-
fromParams
Creates an IndexSchema for semantic message history with standard fields plus vector field.- Parameters:
name- The name of the indexprefix- The key prefix for stored messagesvectorizerDims- The dimension of the vector embeddingsdtype- The data type for vectors (e.g., "float32")- Returns:
- IndexSchema configured for semantic message history
-