Skip to content

docs: Fix the vector store example in the agent skills, which cannot run - #7304

Open
VenishPaneliya wants to merge 2 commits into
feast-dev:masterfrom
VenishPaneliya:docs-fix-vector-store-example
Open

VenishPaneliya wants to merge 2 commits into
feast-dev:masterfrom
VenishPaneliya:docs-fix-vector-store-example

Conversation

@VenishPaneliya

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

The FeastVectorStore snippet in the agent skills reference cannot run. FeastVectorStore.__init__ is (repo_path, rag_view, features) with all three required, but the example passes feast_repo_path — the parameter name of FeastRAGRetriever, documented in the section directly above — and omits the other two, so it raises TypeError twice over. The corrected call uses wiki_passages and its fields, which this same reference already defines under Vector Similarity Search.

Binding the documented call against the real signature:

FeastVectorStore.__init__ (self, repo_path, rag_view, features)
FeastRAGRetriever  accepts feast_repo_path: True
FeastVectorStore   accepts feast_repo_path: False

before: TypeError: missing a required argument: 'repo_path'
after:  bound OK

Which issue(s) this PR fixes:

None.

Checks

  • I've made sure the tests are passing.
  • My commits are signed off (git commit -s)
  • My PR title follows conventional commits format

Testing Strategy

  • Unit tests
  • Integration tests
  • Manual tests
  • Testing is not required for this change

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-commenter

codecov-commenter commented Dec 5, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.42%. Comparing base (9b45df0) to head (b40af55).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files

Impacted file tree graph

@@           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           
Flag Coverage Δ
go-feature-server 30.96% <ø> (ø)
python-unit 57.08% <ø> (ø)

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b45df0...b40af55. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@franciscojavierarceo franciscojavierarceo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should pass fully qualified feature references through the vector-store wrapper.

Comment thread skills/references/retrieval-and-rag.md Outdated
vector_store = FeastVectorStore(
repo_path="path/to/feature_repo",
rag_view=wiki_passages,
features=["passage_text", "embedding"],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@VenishPaneliya

Copy link
Copy Markdown
Contributor Author

Good catch, done in b40af55.

I qualified the FeastRAGRetriever list in the section above too, since it hands its own features straight to the same wrapper (rag_retriever.py:124), and test_rag_retriever.py:128 already uses the document_embeddings:content form. While there I also changed feature_view="wiki_passages" to the object — the annotation is FeatureView and query() reads self.rag_view.schema, so a name string raises AttributeError.

One thing I left alone: that retriever snippet still omits config and index, both required. Happy to fill them in here or leave it for a separate pass, whichever you prefer.

Since FeastVectorStore already receives rag_view, is there a reason it doesn't prefix bare feature names itself before calling retrieve_online_documents_v2? It has everything it needs to, and it would make the wrapper harder to misuse — but I assume you want the refs explicit so a view with versions stays unambiguous.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants