feat(cli): Add recommendation template for feast init#6078
Open
doc-johnson wants to merge 1 commit intofeast-dev:masterfrom
Open
feat(cli): Add recommendation template for feast init#6078doc-johnson wants to merge 1 commit intofeast-dev:masterfrom
doc-johnson wants to merge 1 commit intofeast-dev:masterfrom
Conversation
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>
d9af218 to
df3427d
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.
Summary
Addresses #5478 (point 3: recommendation engine template).
recommendationtemplate tofeast initdemonstrating product recommendations using vector similarity searchall-MiniLM-L6-v2(384 dimensions) with SQLite online store (vector_enabled: true)retrieve_online_documents_v2API for top-k similarity searchNew files
templates/recommendation/bootstrap.py— generates product catalog with embeddingstemplates/recommendation/feature_repo/feature_definitions.py— Entity, FeatureView withvector_index, FeatureServicetemplates/recommendation/feature_repo/feature_store.yaml— SQLite config with vector searchtemplates/recommendation/feature_repo/test_workflow.py— end-to-end demo: apply, materialize, searchModified files
sdk/python/feast/cli/cli.py— registerrecommendationin template choices (+1 line)Test plan
feast init test_rec --template recommendationcreates project successfullyfeast applyregisters entity, feature view, feature servicepython test_workflow.pyruns full cycle: apply → materialize → vector search → teardownfeast apply(second run reports no changes)localtemplate unaffectedruff checkandruff formatpass