Discover all of the brand-new features and improvements to existing capabilities in the Dataiku 11.3 updateLET'S GO

refining input before sending it to the predicition API

Solved!
rawan_mohammed
Level 2
refining input before sending it to the predicition API

Hello, 

I have an end point for a prediction model that's supposed to receive the input directly from the UI. is there a way I can modify the way the API handles the request? because the data sent from the UI needs some refining before the model can process the request.  


Operating system used: Windows 11

0 Kudos
1 Solution
AlexT
Dataiker

Hi @rawan_mohammed ,

You may need to use different endpoints to achieve what you are looking for here if the data preparation steps (in the “Script” tab) included in the endpoint are not sufficient. 

 https://doc.dataiku.com/dss/latest/apinode/enrich-prediction-queries.html

https://knowledge.dataiku.com/latest/courses/mlops/real-time-apis/endpoints-and-enrichments.html

You can also use a custom python endpoint to sanitize the input for the prediction endpoint and call the prediction endpoint from this endpoint.  

https://doc.dataiku.com/dss/latest/apinode/api/endpoints-api.html#calling-another-endpoint

Thanks

View solution in original post

0 Kudos
1 Reply
AlexT
Dataiker

Hi @rawan_mohammed ,

You may need to use different endpoints to achieve what you are looking for here if the data preparation steps (in the “Script” tab) included in the endpoint are not sufficient. 

 https://doc.dataiku.com/dss/latest/apinode/enrich-prediction-queries.html

https://knowledge.dataiku.com/latest/courses/mlops/real-time-apis/endpoints-and-enrichments.html

You can also use a custom python endpoint to sanitize the input for the prediction endpoint and call the prediction endpoint from this endpoint.  

https://doc.dataiku.com/dss/latest/apinode/api/endpoints-api.html#calling-another-endpoint

Thanks

0 Kudos