Forum Discussion
Azure AI Search - Tag Scoring profile on azureopenai extra_body
Hello,
It seems like you're encountering an issue with the `scoringParameter` when using a custom scoring profile in Azure AI Search. When you define a scoring profile, Azure Cognitive Search expects you to supply the required scoring parameters in your query. Here's what you can do:
1. **Check Scoring Profile Configuration:** Ensure that your scoring profile is correctly configured and that the `scoringParameter` is defined as expected. The parameter name in your query should match the one defined in the scoring profile.
2. **Passing Scoring Parameters:** When using the `client.chat.completions.create` method, you can pass the `scoringParameter` in the `extra_body` by including it in the `parameters` object. Make sure it aligns with the expected format and values.
3. **Error Handling:** If you encounter validation errors, double-check the parameter names and values. Ensure they are correctly formatted and match the scoring profile's requirements.
If you continue to face issues, consider reviewing the Azure Cognitive Search documentation for guidance on scoring profiles and parameter usage. Additionally, you may explore the Azure portal to test your queries and verify the scoring profile's behavior.
I hope this helps! Let me know if you have any further questions.