Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

fix modelbit response bug + making feature store value available in realtime feature component #44

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Aug 30, 2023

I was getting this error:

 python3.11/site-packages/wyvern/components/models/modelbit
_component.py", line 105, in inference
    if resp.status_code != 200:
       ^^^^^^^^^^^^^^^^

it looks like when we migrate to aiohttp, we forgot to update modelbit model component.

  • Does this PR have impact on local development experience? If yes, make sure you have a plan and add the documentations to address issues that come with the change
  • bump version
  • make a release
  • publish to pypi service

@wintonzheng wintonzheng changed the title fix modelbit response bug fix modelbit response bug + making feature store value available in realtime feature component Aug 30, 2023
@@ -77,3 +77,6 @@ def parse_fastapi_request(
feature_map=FeatureMap(feature_map={}),
request_id=request_id,
)

def extend_feature_map(self, feature_map: FeatureMap) -> None:
self.feature_map.feature_map.update(feature_map.feature_map)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have any duplication check? If not, let's create a ticket for adding one, wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What kind of duplicate use case you're thinking of? is it overriding an existing key by another existing key?

The the self.feature_map.feature_map is already a python dictionary and it should have no duplicates.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible that they define one offline, one real time feautre view and they both have the same name and same feature name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that is going to screw up the mapping for sure. if that happens today, the realtime feature is going to override the offline feature from the feature store. 🤔

@wintonzheng wintonzheng merged commit 9accff7 into main Aug 31, 2023
2 checks passed
@wintonzheng wintonzheng deleted the shu/fix_modelbit branch August 31, 2023 14:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants