Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed some copy
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
  • Loading branch information
franciscojavierarceo committed May 2, 2024
commit ee3448fb2f6465d5fcfb0a185ca6f352536a3bb9
2 changes: 1 addition & 1 deletion sdk/python/feast/infra/online_stores/online_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def retrieve_online_documents(
table: The feature view whose feature values should be read.
requested_feature: The name of the feature whose embeddings should be used for retrieval.
embedding: The embeddings to use for retrieval.
top_k: The number of nearest neighbors to retrieve.
top_k: The number of documents to retrieve.

Returns:
object: A list of top k closest documents to the specified embedding. Each item in the list is a tuple
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/feast/infra/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,14 @@ def retrieve_online_documents(
]
]:
"""
Searches for the top-k nearest neighbors of the given document in the online document store.
Searches for the top-k most similar documents in the online document store.

Args:
config: The config for the current feature store.
table: The feature view whose embeddings should be searched.
requested_feature: the requested document feature name.
query: The query embedding to search for.
top_k: The number of nearest neighbors to return.
top_k: The number of documents to return.

Returns:
A list of dictionaries, where each dictionary contains the document feature.
Expand Down