FEATURE.SCHEMA
FEATURE.SCHEMA group
- Group
- Feature store
- Complexity
- O(F) where F is the number of features
- Arity
- 2 (exactly, counting the command name)
- Flags
- read-only, fast
- 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.SCHEMA returns the group’s features in schema order.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| Group found | Array of two-element arrays: the feature name and its type (int64, double or string), as bulk strings |
Same |
Errors:
ERR group not foundif the group does not exist.ERR wrong number of arguments for 'feature.schema' 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.SCHEMA user_features1) 1) "age" 2) "int64"2) 1) "ctr" 2) "double"3) 1) "country" 2) "string"Compatibility
Section titled “Compatibility”HotKV-only command. Redis and Valkey have no equivalent.
See also
Section titled “See also”FEATURE.CREATE, FEATURE.SET, FEATURE.GET, FEATURE.BATCH, FEATURE.STATS, FEATURE.DROP, FEATURE.LIST, AI features guide
Was this helpful?
Thanks for the feedback.