-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Azure Search parameters to the payload in the AOAI Chat #1178
Comments
Hi @joergrau, this is something we'd accept :) -Darrick |
Hi @darjoo,
So, following the same way as for the other parameters, e.g. temperature |
@joergrau https://learn.microsoft.com/en-us/azure/ai-services/openai/references/on-your-data?tabs=python#data-source And even once that works, it would be better for all if we can work together to design how the output can be worked with. For example with Operation Response/Function Response. Otherwise, everyone who uses this will have to develop their own parsing mechanism which makes little sense when it should be part of the AI module. |
@darjoo I already did the coding as it is not much work. However, I struggle to get this tested as I can't do any testing around AI in a Docker container. I tried to follow the process explained here LOCAL_DEV_ENV.md get an error message: when running the NewDevEnv.ps1 script. What is the best way to deploy this updated System App and to try it out? |
@mazhelez / @aholstrup1, could you look into the script issue? |
@joergrau I see codeunit "Library - Password" was added recently. Are you maybe not running against the latest code or latest artifact? |
@mazhelez I synced my fork and updated my branch, but I got the same error. |
@JesperSchulz I'm waiting for your assistance. Alternatively, please advise on how I could deploy a new system app to test AI integration. The coding is done, I "just" need to test it. |
Describe the issue
Small product enhancement:
The Codeunit "AOAI Chat Completion Params" uses the Codeunit "AOAI Chat Compl Params Impl", which adds parameters to the payload:
procedure AddChatCompletionsParametersToPayload(var Payload: JsonObject)
begin
if GetMaxTokens() > 0 then
Payload.Add('max_tokens', GetMaxTokens());
Payload.Add('temperature', GetTemperature());
Payload.Add('presence_penalty', GetPresencePenalty());
Payload.Add('frequency_penalty', GetFrequencyPenalty());
end;
There is currently no option to specify Azure Search parameters. The parameters I would like to add are:
"azureSearchEndpoint"
"azureSearchKey"
"azureSearchIndexName"
Expected behavior
Adding additional procedures to set and get the new Azure Seach parameters. Adding the parameters to the payload if they were set.
Steps to reproduce
Currently no procedures available to set the Azure Search parameters.
Additional context
As discussed on the yammer group: https://www.yammer.com/dynamicsnavdev/#/threads/inGroup?type=in_group&feedId=132956700672&view=all
I will provide a fix for a bug
The text was updated successfully, but these errors were encountered: