Back to Feast

Redis online store

docs/reference/online-stores/milvus.md

0.63.02.9 KB
Original Source

Redis online store

Description

The Milvus online store provides support for materializing feature values into Milvus.

  • The data model used to store feature values in Milvus is described in more detail here.

Getting started

In order to use this online store, you'll need to install the Milvus extra (along with the dependency needed for the offline store of choice). E.g.

pip install 'feast[milvus]'

You can get started by using any of the other templates (e.g. feast init -t gcp or feast init -t snowflake or feast init -t aws), and then swapping in Redis as the online store as seen below in the examples.

Examples

Connecting to a local MilvusDB instance:

{% code title="feature_store.yaml" %}

yaml
project: my_feature_repo
registry: data/registry.db
provider: local
online_store:
  type: milvus
  path: "data/online_store.db"
  connection_string: "localhost:6379"
  embedding_dim: 128
  index_type: "FLAT"
  metric_type: "COSINE"
  username: "username"
  password: "password"

{% endcode %}

The full set of configuration options is available in MilvusOnlineStoreConfig.

Functionality Matrix

The set of functionality supported by online stores is described in detail here. Below is a matrix indicating which functionality is supported by the Milvus online store.

Milvus
write feature values to the online storeyes
read feature values from the online storeyes
update infrastructure (e.g. tables) in the online storeyes
teardown infrastructure (e.g. tables) in the online storeyes
generate a plan of infrastructure changesno
support for on-demand transformsyes
readable by Python SDKyes
readable by Javano
readable by Gono
support for entityless feature viewsyes
support for concurrent writing to the same keyyes
support for ttl (time to live) at retrievalyes
support for deleting expired datayes
collocated by feature viewno
collocated by feature serviceno
collocated by entity keyno
vector similarity searchyes

To compare this set of functionality against other online stores, please see the full functionality matrix.