Skip to content

Commit

Permalink
Update _parse_proto_output function to include the entity_id as part …
Browse files Browse the repository at this point in the history
…of the metadata returned.

Currently similarity_search_by_vector() returns slightly different information when looking at a BQ store versus a Feature Store. When executed against a BQ store the nearest neighbor ID is returned, but when executed against the Feature Store no ID is returned. To bring both into alignment we should include the entity_id for the Online Feature Store as well.
  • Loading branch information
lizau authored Dec 17, 2024
1 parent 8c569ed commit d655217
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ def _parse_proto_output(
documents.append(
[
Document(
id=result.entity_id,
page_content=content,
metadata=metadata,
),
Expand Down

0 comments on commit d655217

Please sign in to comment.