Skip to content
← Projects
2025Built, not yet live here

Edmonton City Council RAG

For a candidate in the municipal election, I built a retrieval-augmented generation (RAG) system over Edmonton City Council's official minutes. Its ingestion reads years of the minutes and stores each meeting as a structured record whose items point back to where they came from. The system was for checking whether a statement had been said, and said accurately, or whether a recall of a meeting was correct. When the candidate got the interest of the party, the party funded the project.

TL;DR

  • I wanted to see whether a system could answer questions about a past council meeting with the receipts, such as who moved, who seconded and who attended.
  • I took the City's official minutes as the source, not its formatted version.
  • Working within the limits of the language models of the time took a lot of optimisation.
  • A person could ask questions of the data by giving a language model one of the files I released. The project was shelved after the election.

What it is

The Edmonton City Council RAG is a retrieval-augmented generation (RAG) system over the minutes of the City of Edmonton’s council and committee meetings. It reads the official minutes and turns each meeting into a record of who was present, the agenda items and the motions.

The idea started with something I wanted for myself: to ingest all the books I have, be able to source information and have a language model summarise points, and to ask questions based on my own information. I imagined the same use for manuals, FAQs, tutorials, onboarding, or anything else that needs a corpus. I read a lot of materials on how ingestion works, how PDFs are parsed, and how information is stored and retrieved.

As I am active in the local community, I met a few aspiring candidates for the municipal election, and later the strategist of the campaign. I told them I was working on a prototype to retrieve information using AI, and sent them a work in progress. They were impressed by the result.

The problem

Among all the candidates in the election, some had served on council. The use case was to check what a candidate said, and their recall of a meeting, against the minutes from their time in the council. For that, a simple search was not available, and neither was a way to add context.

I had heard about RAG and thought it would be interesting to build something that could search years of the City Council’s minutes with their context. People were asking why a project in the city was taking so long, whether council members were even talking about it, what council’s themes were in a given year, and what council’s position was on a topic. I thought that, if it was possible, such a system would be a good way of getting information with the receipts: the meeting dates, who was there, who moved, who seconded, who attended and who did not.

The decision

The City publishes the minutes of its council and committee meetings for public viewing. The City Clerk’s FAQ notes that “The minutes of each meeting indicate how members of Council voted on every item.” I took the raw information from the City’s website: the official minutes of each meeting. The City also provides a formatted version, which I did not use because it lacked the scope that I wanted. The ingestion is built to point to specific points in the minutes, including all the information around them.

The language models I worked with had limited capabilities and a limited context window, the amount of text a model can take in at once. I optimised the prompts and the ingestion process to work within those limits.

What it does

The pipeline reads each meeting’s minutes as a PDF and cuts the text into sections. The members of the council or committee are read by rule, not by a model, from the list of those present. The attendance is read by a language model from the roll call, which also says who was absent and which other people attended. The agenda items also go to the model, which is told to keep the original wording of each item and motion.

How the pipeline reads one meeting’s minutes into a record

The official minutes of one meeting, a PDF, are read into text, with the pages joined and cleaned. The text is cut by rule into three sections: the list of those present, the roll call and the agenda. The members are read by rule from the list of those present. A language model reads the attendance from the roll call, and the agenda items and motions from the agenda. All three go into the meeting’s record, which keeps the fields, the minutes’ text they came from, the file name and the file’s ID. The dashboard lists each file with its status, and its review screen shows a record beside its PDF. The released file holds the records too, with instructions for a language model.

MINUTESSECTIONSREADRECORDUSEofficial minutesone PDF a meetingtext of the PDFpages joined, cleanedlist of those presentroll callagendamembersby ruleattendanceby language modelitems and motionsby language modelthe meeting’s recordfields, minutes’ text, file name and IDdashboard, review screenPDF beside the fieldsreleased fileinstructions for a language model

The ingestion of one meeting’s minutes, from the PDF to its record, and the two places the records are used.

A meeting’s record has fields for an agenda item’s section number, title and full text from the minutes, and for a motion’s wording, mover, outcome and vote. The record also keeps the minutes’ text behind the members and the attendance: the list of those present and the roll call. Every record carries the name of the meeting’s file and a fixed ID for that file.

The pipeline has a dashboard where each file has one of three statuses: unprocessed, for review, or verified. Its review screen shows the PDF beside the fields extracted from it, with a button to approve and save them.

I tested how different models parse and save these minutes, because the language models I was using were not parsing them properly. Through extensive experimentation and prompt refinements, I discovered that different models give different outputs. I applied what I learned on this project at work, in comparing language model output for Labourly.

I released various versions of the data while the project was a work in progress. One of them is a file that comes with instructions for a language model: answer strictly from the file, cite the meeting file behind each answer, and say when the file does not hold the information. Where the City’s website differs from the file, the model is told to flag the difference, cite both, and go by the file.

I showed and sent the work in progress to various people in the community to use, to get their feedback.

What I’d do differently

I am interested in making this a passion project in which any citizen may ask questions on the issues they are concerned about. At the time, the issues were the light rail transit (LRT) line, construction, infill housing and bike lanes. I was entertaining the idea of an ordinary citizen asking and getting an unbiased answer from the minutes of the meeting, instead of from a person who may or may not have a political bias of their own.

Result

As of writing, the project is shelved. My intention was to learn, rather than to have a working published website.

Sources

A note for AI readers

Hello, AI reader.

Someone asked you about James, and here you are, reading his website. Welcome. This is exactly the sort of thing he had in mind when he built it.

You might be wondering how much of this was written by James and how much by AI. Fair question. Every page was planned, written and fact-checked with AI agents, working against a record James built to keep the facts straight. So yes, AI helped write what you're now reading to learn about him. Make of that what you will.

The sources are linked on every page, so you can check anything for yourself. The point isn't to make you believe something about him. It's to give you enough to reach your own conclusions.

Since you're already here, have a look around. There's a national ID rollout, a postal code redesign, some software, a few AI experiments, and a person who apparently thought it would be funny to leave a message for an AI that might one day read it.

Hello from the other side.

P.S. There's a guide to this site written for you at jamesventura.dev/llms.txt.