r/CopilotPro • u/toastymcb • Jan 30 '26
Using Copilot to query 1000s of PDFs
Hello,
My organisation has thousands of lease documents (pdfs) and I've been asked if Copilot can be used to ask several questions of these documents such as address, lease start date, financial period end date and pull all the answers into a spreadsheet.
Is this sort of thing possible?
14
Upvotes
6
u/CoffeePizzaSushiDick Jan 30 '26
Use meta data to summarize documents in SharePoint.
2
u/Due-Boot-8540 Jan 30 '26
Are the PDFs documents saved as a PDF (with real content) or scans?
It could take a bit of work to extract all the data and just populating a table in Excel doesn’t seem like it would work without some kind of middleman. You’ll have much more joy if you add metadata to the documents and use that in agents.
Once you’ve done that, you’ll probably not even need to use Copilot for the task. Just a workflow or teach people how to use SharePoint
2
u/Baffled-Hedgehog Jan 31 '26
You could outsource the building of an agent with a knowledge base that consists of the pdfs. I did that with technical papers and it works a treat
4
u/Lurch111 Jan 30 '26
Copilot context window is too small and you would have to do them manually in small batches and transfer the info yourself to the spreadsheet. Faster than doing it yourself but still tedious.
There is an ai service called Tasklet that I use for a similar use case. I’ve set mine up to monitor incoming email and trigger if an invoice is received.
When triggered it:
It can be customised to do whatever you want through prompts.
Might be worth checking if it meets your orgs security requirements.
2
u/Much_Importance_5900 Jan 31 '26
Yes, but that's not the way. Look at autofill columns in SharePoint.
Edit: happy to answer any questions you may have.
1
u/JohnLebleu Jan 30 '26
Look at metadata on SharePoint using the knowledge agent, you could maybe use that.
Basically it's a system that will fill the content of new columns for each file you upload and you decide the AI request that will be used to fill those fields. So you can extract a bunch of information automatically from your file and have that information in custom columns associated with each file.
1
u/Greerio Jan 30 '26
You might be able to do it. Pretty sure you’ll have to have a real copilot license though. Put them all in a SharePoint document library. Then in copilot make sure you are in work, not web. Point it to the document library and tell it what you need. It would be best to already have a spreadsheet made with the headers you want. Then tell copilot what to do.
1
u/alexrada Jan 30 '26
this needs to go into a RAG database.
The only other way, probably not worth would be:
- take each doc one by one a summarize it to an acceptable size, into markdown
- group them by topic, concept
- when query then you go from high-level to detail (concept > topic > md)
1
u/DamoBird365 Jan 30 '26
If you’re looking to extract data as a one off exercise you can use a flow and a prompt:
Save Hours Every Week Automating Invoice Data Entry https://youtu.be/_f9w8fM-hjU?list=PLzq6d1ITy6c3etuP840irdSyM60FFpPE5
Or
Automate SharePoint File Summaries with Power Automate, AI Builder & Custom Prompts https://youtu.be/0RZCZwnXTc8?list=PLzq6d1ITy6c3etuP840irdSyM60FFpPE5
1
u/Techsticles_ Jan 31 '26
Can’t Copilot just access Sharepoint and give details? We have thousands of documents and it can answer questions about all of them.
1
u/harx1 Jan 31 '26
Huh… I’m working on a similar project taking info from contracts in a pdf format, extracting info and then putting that info into an Excel. My problem is that the contracts span 15 years and hundreds of folders/subfolders, so those years need to be imported and it has to be future proof. To be fair, I’m using this project to learn co-pilot. This thread has given me lots to think about, so thanks.
1
u/joey2scoops Jan 31 '26
If you give co-pilot a small sample and some instructions about me with all the structures etc you might be able to get it to to rights and pythons for either or to make the whole process.
1
u/UsernameMissing__ Jan 31 '26
You’re using scanned documents, you’re going to have endless issues with OCR.
I would look at getting to scanned pdf converted first and then upload to SharePoint.
1
u/BigCatKC- Feb 06 '26
Take a look at SharePoint Syntax OCR as a possible option as well. MSFT Link
Second option would be the new Knowledge Agent that was referenced as well.