Skip to content

Prompt change to encourage function call for EDocGLAccountMatching#8282

Merged
mynjj merged 3 commits into
mainfrom
bugs/glaccountmatching-accuracy
May 22, 2026
Merged

Prompt change to encourage function call for EDocGLAccountMatching#8282
mynjj merged 3 commits into
mainfrom
bugs/glaccountmatching-accuracy

Conversation

@mynjj
Copy link
Copy Markdown
Contributor

@mynjj mynjj commented May 22, 2026

Fixes AB#636066

Almost all the accuracy jobs running for Payables Agent that fail, fail with the the agent not being able to finalize due to no account types/numbers assigned.

After reproing locally with several runs, one run revealed the potential culprit (at least of that run). At times, the LLM returns the shape in the explicit examples as part of the content, instead on relying on function calling. Resulting on function calls not being detected and no account being assigned.

This change:

  • Changes the prompt to make this more explicit. Unfortunately, changing the tool_choice doesn't work for batched responses as intended for this feature.

@mynjj mynjj marked this pull request as ready for review May 22, 2026 11:33
@mynjj mynjj requested a review from a team as a code owner May 22, 2026 11:33
@github-actions github-actions Bot added the AL: Apps (W1) Add-on apps for W1 label May 22, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone May 22, 2026
Jose-agg
Jose-agg previously approved these changes May 22, 2026
Comment thread src/Apps/W1/EDocument/App/src/Processing/Interfaces/IEDocAISystem.Interface.al Outdated
Groenbech96
Groenbech96 previously approved these changes May 22, 2026
@mynjj mynjj dismissed stale reviews from Groenbech96 and Jose-agg via 5641f85 May 22, 2026 13:00
@mynjj mynjj changed the title Forcing function call for EDocGLAccountMatching Prompt change to encourage function call for EDocGLAccountMatching May 22, 2026
@mynjj mynjj enabled auto-merge (squash) May 22, 2026 14:48
@mynjj mynjj merged commit c17a755 into main May 22, 2026
51 checks passed
@mynjj mynjj deleted the bugs/glaccountmatching-accuracy branch May 22, 2026 16:37
mynjj added a commit that referenced this pull request May 29, 2026
mynjj added a commit that referenced this pull request May 29, 2026
mynjj added a commit that referenced this pull request May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants