Class SemanticRouterIndexSchema

java.lang.Object
com.redis.vl.extensions.router.SemanticRouterIndexSchema

public class SemanticRouterIndexSchema extends Object
Customized index schema for SemanticRouter. Ported from Python: redisvl/extensions/router/schema.py:86
  • Field Details

    • ROUTE_VECTOR_FIELD_NAME

      public static final String ROUTE_VECTOR_FIELD_NAME
      Constant for route vector field name
      See Also:
  • Method Details

    • fromParams

      public static IndexSchema fromParams(String name, int vectorDims, String dtype)
      Create an index schema based on router name and vector dimensions. Ported from Python: from_params() (line 90)
      Parameters:
      name - The name of the index
      vectorDims - The dimensions of the vectors
      dtype - The data type for vectors
      Returns:
      The constructed index schema