r/copilotstudio • • 9d ago

Copilot Studio agent with Excel (SharePoint) knowledge is slow and gives inconsistent answers on large sheets. Is GraphRAG worth it, or is there a better approach?

Hey all,

I built a Copilot Studio agent (internal "Document & Script Library") and published it to selected users in Teams. The knowledge sources are mostly Excel files in a SharePoint document library (Teams channel), plus some Word/PDF/PPT.

Typical questions users ask:

- "What's the IP of server X?"

- "Which server hosts application Y?"

- "Give me details for server Z"

Problems:

  1. Retrieval is slow, and answers take a noticeable time in Teams
  2. On larger Excels ([X] rows, [Y] sheets), answers are inconsistent: the same question gives different or partial answers, and sometimes it misses rows that are definitely there
  3. Word/PDF docs work fine. It's mainly the Excel files

What I understand so far: the agent retrieves chunks via search instead of reading the sheet as a table, so rows get split from their headers, and big files get truncated.

I was thinking of GraphRAG. My doubt is that the data is already structured (columns = relationships), so I'm not sure a knowledge graph helps for exact lookups.

Questions:

- Has anyone gotten reliable answers from large Excel files as a knowledge source? What did you change (Excel Tables, splitting sheets, Dataverse-backed SharePoint option, etc.)?

- Did anyone move the Excel data to Azure AI Search / SQL / an MCP tool (text-to-SQL) and call it from Copilot Studio? How was latency and accuracy?

- Has anyone actually used GraphRAG with Copilot Studio? Was it worth the indexing cost?

- Any tips to cut response latency in Teams?

Thanks!

16 Upvotes

15 comments sorted by

13

u/Remi-PowerCAT 9d ago

Retrieving structured data is very tricky in standard harness because of the chunking of the base RAG using knowledge. Please read those articles my team wrote. That will help.

https://microsoft.github.io/mcscatblog/posts/dataverse-retrieval-patterns-copilot-studio/

https://microsoft.github.io/mcscatblog/posts/tool-inputs-sharepoint-list/

Also using the new copilot harness will solve all this as it performs full file retrieval and runs python to extract data from excel on the fly.

2

u/jorel43 9d ago

Last time I checked retrieval is worse in the new experience versus the standard experience. And full file retrieval is also going to be more expensive

1

u/MattBDevaney 5d ago

Can you please elaborate on what makes retrieval "worse" in the Github Copilot harness in your opinion? I see you posting lots on this forum and you always have a well researched opinion.

2

u/shawster 9d ago

Mine has been using python to extract data from excel files for quite some time. I have had an agent doing that for at least 6 months...?

1

u/BenAMSFT 7d ago

Yes, this :)

3

u/Atmp 9d ago

I’m following out of interest as well… one thing I’ve done that resulted in better quality answers is loading the excel spreadsheet into a dataverse table and use the dataverse table as knowledge. Curious what others say

2

u/AwesomePeach 9d ago

I had the same approach. It was the only solution to ensure the agent was able to read/filter all lines.

3

u/dk913263 9d ago

Use power automate with office script to convert it into JSON object and then return it to the studio. Excel is hard for llms, JSON is better

1

u/highergrinds 9d ago

I think I had this issue. I'm very new at all this so bare with me... We have a very large Excel file that I just wanted copilot to find things and return answers, for people afraid of excel. Did not work, could only see some data, returned weird answers. My last solution was to create an agent in copilot studio, agent calls a 'workflow'. The workflows actually do the work and return the answers to the agent. The workflow was - when agent calls the flow - list rows present in table - filter array - select - respond to agent. I wish I could elaborate, but was guided by copilot and forgot the details.

1

u/stantaneous 8d ago

The problem is Copilot is reading excels as text, you need a data layer that copilot can query.

1

u/MilfsBoii 8d ago

I had pretty much same experience, my colleagues suggested to use power automate flow to fetch the document and then pass that to agent. I didn't try this yet, but passing on the information if someone can consider this and find it helpful.

1

u/Busy-Scientist-8673 7d ago

I got large excel hundreds of MB and use standard Copilot studio, and ask it to call a flow with the user questions extracted as parameters, then the flow run an excel script to find the requested information with the user’s parameter, then returns to the agent, result is fast and accurate. You may want to try that architecture

1

u/BenAMSFT 7d ago

I suspect you’re using standard harness, which wasn’t designed for large data handling. You want the copilot harness. I go into some of the technical detail as to why, here (fully write up is linked).

Try the scenario with the copilot harness. The approach is fundamentally different and far better at handling large volumes of data.

1

u/Sayali-MSFT 3d ago

Hello u/Chemical-Wall9026,
I think you’ve identified the main issue. Excel files in SharePoint knowledge aren’t queried like database tables. They’re chunked and retrieved semantically, so a row can lose its relationship with the headers. That’s why large workbooks often become inconsistent for exact server/IP lookups.

Formatting the data as Excel Tables, using clean headers, and splitting large workbooks might help, but I wouldn’t consider that a guaranteed fix.

For this scenario, I’d keep Word/PDF/PPT as knowledge sources and move the Excel inventory to something structured, such as Dataverse, SQL, a SharePoint list, or an API. Then create a tool that accepts the server/application name and returns the exact matching record. Azure AI Search could help with broader semantic searches, but a direct filtered query should be more reliable for known server names, IPs, and application mappings.

I also wouldn’t start with GraphRAG. It makes more sense for complex relationship discovery and multi-hop questions. If your relationships already exist as columns, it could add cost and complexity without solving the core lookup problem.

For latency, route inventory questions directly to the lookup tool, limit the returned columns/rows, and avoid sending the request through every knowledge source.

In short: keep Word/PDF/PPT as knowledge for document-style questions, but treat the Excel inventory as structured data and query it through a tool. That should provide more consistent results and usually better latency than trying to tune RAG over increasingly large workbooks.
Reference Document:
1.Unstructured data as a knowledge source - Microsoft Copilot Studio | Microsoft Learn
2.Enhance AI responses with Retrieval Augmented Generation - Microsoft Copilot Studio | Microsoft Learn
3.Add Azure AI Search as a knowledge source - Microsoft Copilot Studio | Microsoft Learn
4.Connect to custom knowledge sources - Microsoft Copilot Studio | Microsoft Learn
5.Add Dataverse tables as a knowledge source - Microsoft Copilot Studio | Microsoft Learn
6.Best practices for improving conversational agent performance - Microsoft Copilot Studio | Microsoft Learn

0

u/nexus-66 9d ago

I think you’re expecting too much from Copilot. My advice would be to explore alternatives if your organization allows it. Copilot performs reasonably well with Excel and SharePoint, but what you’re asking goes beyond what it can reliably handle.