FEATURE.CREATE
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.
Options
Section titled “Options”| 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.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| Group created | Simple string OK |
Same |
Errors:
ERR expected SCHEMA keywordif the fourth argument is notSCHEMA.ERR unknown type: <type>for a type name HotKV does not know.ERR group already exists or limit reachedif the group exists, or the server already holds its maximum number of groups (max_groupsunder[featurestore]).ERR wrong number of arguments for 'feature.create' commandif the argument count is wrong.NOLICENSE feature-store requires a HotKV license. Contact sales@hotkv.comif your license does not include thefeature-storefeature.
Examples
Section titled “Examples”127.0.0.1:6379> FEATURE.CREATE user_features "Per-user signals for ranking" SCHEMA age int64 ctr double country stringOKCompatibility
Section titled “Compatibility”HotKV-only command. Redis and Valkey have no equivalent.
See also
Section titled “See also”FEATURE.SET, FEATURE.GET, FEATURE.BATCH, FEATURE.SCHEMA, FEATURE.STATS, FEATURE.DROP, FEATURE.LIST, AI features guide
Was this helpful?
Thanks for the feedback.