Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

FEATURE.CREATE

Last updated
FEATURE.CREATE group description SCHEMA feature type [feature type ...]
Group
Feature store
Complexity
O(F) where F is the number of features
Arity
-6 (at least 6 words, counting the command name)
Flags
write, slow
Keys
first 1, last 1, step 1
HotKV Cloud
Performance and Scale
On-Premise
requires the feature-store license feature

The feature store keeps typed feature values for entities (users, items, sessions) in named feature groups, for low-latency reads at model inference time. FEATURE.CREATE creates a group whose entities all have the features listed after SCHEMA, each with a type. description is free text for your own reference.

Type Values
int64 64-bit signed integers. Default 0.
double (or float) Floating-point numbers. Default 0.
string Any string. Default empty.

Type names must be written in all lower case or all upper case. A new entity starts with every feature at its default.

Case RESP2 RESP3
Group created Simple string OK Same

Errors:

  • ERR expected SCHEMA keyword if the fourth argument is not SCHEMA.
  • ERR unknown type: <type> for a type name HotKV does not know.
  • ERR group already exists or limit reached if the group exists, or the server already holds its maximum number of groups (max_groups under [featurestore]).
  • ERR wrong number of arguments for 'feature.create' command if the argument count is wrong.
  • NOLICENSE feature-store requires a HotKV license. Contact sales@hotkv.com if your license does not include the feature-store feature.
127.0.0.1:6379> FEATURE.CREATE user_features "Per-user signals for ranking" SCHEMA age int64 ctr double country string
OK

HotKV-only command. Redis and Valkey have no equivalent.

FEATURE.SET, FEATURE.GET, FEATURE.BATCH, FEATURE.SCHEMA, FEATURE.STATS, FEATURE.DROP, FEATURE.LIST, AI features guide