feat(cli): Add recommendation template for feast init#6078
Open
doc-johnson wants to merge 1 commit into
Open
Conversation
d9af218 to
df3427d
Compare
Add a new "recommendation" template demonstrating product recommendations using vector similarity search with pre-computed embeddings (all-MiniLM-L6-v2) and SQLite online store with vector_enabled. Signed-off-by: doc-johnson <hustler@mail.ru>
1fb6e6b to
7478002
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Covers point 3 from #5478, a recommendation-engine template for
feast init.The template is a small product-recommendation setup built around vector similarity search. It ships 12 sample products across four categories (Electronics, Books, Sports, Home), pre-computes their embeddings with
all-MiniLM-L6-v2(384 dims) at bootstrap time, and stores them in a SQLite online store with vector search enabled.test_workflow.pyruns the whole thing end to end: apply, materialize, a top-k similarity query throughretrieve_online_documents_v2, then teardown.What is in it:
bootstrap.pybuilds the product catalog and writes the embeddings out to parquetfeature_definitions.pydefines the entity, a FeatureView with avector_indexfield, and a FeatureServicefeature_store.yamlis a plain local SQLite config withvector_enabled: truetest_workflow.pyis the runnable democli.pyregistersrecommendationin thefeast inittemplate choicesWhat I checked locally:
feast init test_rec --template recommendationscaffolds a working projectfeast applyregisters the entity, view and service, and a second run reports no changespython test_workflow.pygoes through the full cycle without errorslocaltemplate still behaves the sameruff checkandruff formatare clean