web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Copilot Studio - General
Suggested answer

Chat answer that requires simple numerical calculation

(0) ShareShare
ReportReport
Posted on by 16
I am aware LLM's in general are crap at doing even simple mathematics, but I did hope a copilot could answer questions that requires simple maths. My test is a total failure, and I would appreciate any ideas as to how to make a copilot answer questions that requires only very simple maths.
 
For my test i added sales transaction data as Copilot knowledge: I uploaded a CSV with "faked" sales transactions, with columns for purchase date, product sold, product price and in what city the product was sold. 
 
I then first asked the copilot to display the total sales value per city in March (where it listed sales value for Gothenburg as 505). I then asked for the total sales value in March for Gothenburg, and got 4989. Answering the same question in two different ways gave a 10X difference in the answer. Clearly not useful for anything.
 
See screenshot below for reference.
 
So, I would appreciate any ideas as to how to make a copilot being able to do at least simple value-filtering (e.g. by date-span) and maths (e.g summarizing the total or presenting the average value). 
 
I am in control of the back-end with the SQL Server database, so we could develop a REST API that the copilot can call to get answers to specific questions. I do however want the copilot to be able to answer various types of questions sales managers may have, that is unknown in advance. E.g. I want the copilot to support answering many types of questions that may not be known in advance at development time, so making a REST API in the backend doesnt really work.
 
Any ideas most appreciated!
 
 
I have the same question (0)
  • Suggested answer
    Artur Stepniak Profile Picture
    1,528 Super User 2025 Season 2 on at
    Chat answer that requires simple numerical calculation
    Hello,
     
    due to fact that LLMs have a generative nature, they're not good at math - it's because the models generate an answer based on the probability, not on what's true or false, which's important in math. However there's a way to overcome this by using the external tools to make the calculation and use the model to present the answer only. This technique is called RAG. In Copilot Studio environment you could do it by calling the REST API to perform the calculation or using the Power Automate flow. Making LLM answer you math questions doesn't make any sense without the usage of external tools. In chatGPT, just for example, Python code is used to perform the calculations.
     
    In case of any other questions, let me know. If the answer helped you, mark it, so that others can benefit from it.
     
    Best regards,
     
    Artur Stepniak
    Interested in GenAI? Visit my site!
  • MU-24120506-0 Profile Picture
    16 on at
    Chat answer that requires simple numerical calculation
    Thanks Artur but since my test-CSV is uploaded as a file to Copilot Studio knowledge base, I assume it is already using RAG by default? And I don't think indexing it in AI Search would make the LLM better at e.g. summarizing a set of transactions, to get totals or subtotals.
     
    And as I wrote, making an API passing structured data to backend code or using PowerFX won't work, as I dont know what analytics/insights questions the chat users may want to make.
     
    The user (say, a sales manager) may want to ask anything about trends or specific facts, and I cant work out in advance any query the users may chose to make.
  • Artur Stepniak Profile Picture
    1,528 Super User 2025 Season 2 on at
    Chat answer that requires simple numerical calculation
    Hello,
     
    yes, it uses RAG-based search on the indexed file. But it's not able to perform any calculations on it. That's why you'd need to use an external call to perform it. 
    I think that you'd like to achieve the results like from chatGPT, right? You could think about building everything from scratch via Azure AI Foundry, but it's a time-consuming task. Currently in MS there are few options to consider, when you'd like to analyze data:
    1. M365 Copilot - you can ask questions about the file attached. It still doesn't work well with generating charts. You could test it out with the file mentioned.
    2. M365 Copilot in Excel - it works very good overall in terms of generating charts, asking about the data etc. You just only need to open the file in Excel. It works on the Excel formulas to answer the questions so it's reliable.
    If you'd like to directly integrate with SQL database, I feel that it's too much for now for Copilot Studio. We'd need to wait for generative orchestration GA.
     
    In case of any other questions, let me know. If the answer helped you, mark it, so that others can benefit from it.
     
    Best regards,
     
    Artur Stepniak
    Interested in GenAI? Visit my site!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 475 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 425 Super User 2025 Season 2

#3
Giraldoj Profile Picture

Giraldoj 55 Super User 2025 Season 2

Last 30 days Overall leaderboard