Repository navigation
docs: Fix the vector store example in the agent skills, which cannot run - #7304
VenishPaneliya wants to merge 2 commits into
Conversation
FeastVectorStore.__init__ takes repo_path, rag_view and features, all three required. The snippet passed feast_repo_path, which is the parameter name of FeastRAGRetriever in the section just above, so the call raised TypeError on both the unknown keyword and the two missing arguments. Use the feature view the same reference already defines. Signed-off-by: VenishPaneliya <141703684+VenishPaneliya@users.noreply.github.com>
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7304 +/- ##
=======================================
Coverage 55.42% 55.42%
=======================================
Files 470 470
Lines 59880 59880
Branches 8888 8888
=======================================
Hits 33188 33188
Misses 24455 24455
Partials 2237 2237
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
franciscojavierarceo
left a comment
There was a problem hiding this comment.
we should pass fully qualified feature references through the vector-store wrapper.
| vector_store = FeastVectorStore( | ||
| repo_path="path/to/feature_repo", | ||
| rag_view=wiki_passages, | ||
| features=["passage_text", "embedding"], |
There was a problem hiding this comment.
FeastVectorStore forwards features unchanged to retrieve_online_documents_v2(), which requires feature_view:feature references. these unqualified names still make the repaired example fail during feature resolution. we should use "wiki_passages:passage_text" and "wiki_passages:embedding" here so the example reaches the online store.
FeastVectorStore.query forwards features straight to FeatureStore.retrieve_online_documents_v2, whose docstring requires the "feature_view:feature" form. FeastRAGRetriever hands its own features list to the same wrapper, so both examples need the qualified refs that test_rag_retriever.py already uses. feature_view is typed FeatureView, not a name, and reaching .schema on a string raises AttributeError. Signed-off-by: VenishPaneliya <141703684+VenishPaneliya@users.noreply.github.com>
|
Good catch, done in b40af55. I qualified the One thing I left alone: that retriever snippet still omits Since |
What this PR does / why we need it:
The
FeastVectorStoresnippet in the agent skills reference cannot run.FeastVectorStore.__init__is(repo_path, rag_view, features)with all three required, but the example passesfeast_repo_path— the parameter name ofFeastRAGRetriever, documented in the section directly above — and omits the other two, so it raisesTypeErrortwice over. The corrected call useswiki_passagesand its fields, which this same reference already defines under Vector Similarity Search.Binding the documented call against the real signature:
Which issue(s) this PR fixes:
None.
Checks
git commit -s)Testing Strategy