Django and AI: A Community Conversation
Published October 26, 2026
This video features Thibaud Colas at DjangoCon Europe 2026 in Athens, Greece.
WORKSHOP: llms.txt and Django by Thibaud Colas
The llms.txt format is an emerging standard to structure information for Large Language Models. It’s a desirable addition to the docs of Python packages. We have been busy adopting it for Wagtail, and can now share how it all went. Let’s review how to adopt it! We’ll discuss the fundamentals of the format and its benefits as a user of the docs, and as a maintainer. How to produce and consume those files across different tools (Sphinx, mkdocs, Django). How to optimize them for different LLMs with an eval suite. Tools and techniques you should be able to reuse through other engineering tasks with LLMs.
More information: https://2026.djangocon.eu/
Follow DjangoCon Europe on social media:
*X - https://x.com/
*LinkedIn - https://www.linkedin.com/
*Mastodon - https://fosstodon.org/
#django #djangocon #djangoconeurope #djangoconeurope2026
Automatically transcribed, so expect mistakes in names and technical terms.
Thibaud Colas
We'll get started shortly. This is a bit last minute, but we'll figure it out. If you want to get a head start, this is a last-minute workshop addition, replacing another speaker. I had prepared this as a talk initially, so this is meant to be something you watch, but there are definitely interactive elements here and there. If you're here on your laptop, I would recommend you set up an AI agent, like an agency coding tool. I would recommend OpenCode or—sorry—OpenClaw via
the KiloClaw platform. They're the most interesting. It's an adventure. There are risks. There might be rewards too, but we'll see. If you're here on your phone, it will be more limited, but Google has an excellent open-source app called Google AI Edge Gallery that has an open-source model built in. If you want to try some of the things we're discussing today from your phone, I think this is probably the best option. This is a few gigabytes of downloads for the models, so I'm not sure if the conference Wi-Fi is up for it, but so far it's been amazing.
I hear the main stage was a bit delayed. I don't know when I should start.
Speaker 2
So welcome, all. As you know, we are in an interesting moment of web development, where a lot of LLMs are analyzing and reading the content of the web, but the web wasn't designed with LLMs in mind. The other way around as well: LLMs weren't created with how our websites were created in mind. So I'll hand over to Thibaud to explain and shed some light on llms.txt, similar to robots.txt, but for AI. Thibaud.
Thibaud Colas
Thank you. Hi, I'm Thibaud. I think I'll start with a brief intro. I'm product lead for an open-source project built on Django called Wagtail. Wagtail is a CMS. We have about 20,000 projects out there built on Wagtail. A lot of what I'm going to share today is based on my experience trying to adopt, understand, and use this new standard, llms.txt, on those projects. So, yeah, this is meant to be somewhat interactive to make it more interesting for everyone. At the top of the screen here, wagtail.org/django-ai: you'll have access to this doc we're looking at with all of the links.
This isn't a must, but if you want to follow along on your own, that will definitely help you. So again, wagtail.org/django-ai, and you arrive at this repository. What, not found? Oh, the link is just the link reversed: AI-Django. Yeah, how hard can it be? Django-AI, AI-Django. Well, we're doing it live already. It's Django-AI, right? Yes, thank you. You can tell I'm very prepared for this. Yes.
Sorry, this isn't how we do things on Django, but not on Wagtail either. We'll figure it out. Yes, so, llms.txt: why do we care, and why am I here? I came to Wagtail and Django because I value open source, because I value the community we're building together. I'm coming now to AI because AI is a fundamental paradigm shift to our livelihoods, to open source, to our industry, to our society, really. So I'm here because I think it's an interesting topic. And llms.txt—I want to caveat this upfront—it's a very teeny-tiny part of this paradigm shift.
It's a very specific format. There's not that much to it, but I think it's a really good way for us to explore how our jobs are changing and how I suppose the AI has an impact on how we find and process information. And yeah, just I wanna I want to plug two things that I'm also part of outside of this one workshop. Wacktail, we have a survey running right now on AI and developer experience. If you want to help us understand what developers expect, how our project should adapt to changing expectations, this is the place to be. And tomorrow Laura and I have facilitated
So come to that. And, yes, llms.txt. llms.txt is a file you add to your websites. At a glance, that doesn't sound like much. There's actually quite a bit more to it. But the fundamental change here that is implicit is you're adding this file because you care about how the LLMs, how the AI models, understand the information on your websites. You're no longer structuring the pages of your site for humans; you're structuring the content of your site for
the intermediary, the AI model that's going to digest that content and turn it into a chat answer in someone's AI agent, someone's deep-research prompts. I'm sure you've all heard of ChatGPT before, so I'm not going to demo that. But maybe just briefly, I'll show what llms.txt looks like on a real website. This is Wagtail's user guide website. It's our documentation for users of the CMS, people who spend time in the CMS admin interface, just like Django's admin, but a slightly different tool. In the upper-right area of the page, we have this new copy-page control that's going to add a Markdown version of the page to my clipboard.
I'm going to do something a bit risky and switch over to ChatGPT and paste that in. So there, what I've done is basically given the ChatGPT model the opportunity to answer my query based on the content of this page. That's kind of what llms.txt is about. Except we don't expect every single user of that site to go and copy that thing. They don't have to care about this. Instead, the file is at a standard location. A well-known URL is what it's called: /llms.txt, so that agents can autonomously find the file. And, yeah, it's not just the one file. So if we look back at that dropdown, there's also an llms-
txt with a -full suffix. This is a dump of the whole website's content, all 50 or so pages of the site in one file. So you can imagine, if I want to have an answer to my Wagtail CMS experience question, it would be very good if I could have the answer based on the official docs. Maybe I don't trust the site's search to work well. Maybe I don't search Google. I don't trust Google to find the right source. But I can use this, I can copy this file and get access to the authoritative information. Other platforms have this, so if I look at the Claude docs, for example, they have a similar copy-page control. They have a similar dropdown in the top right.
And they have copy as Markdown, open Markdown, and they have chats in Claude AI. I do not want ChatGPT included. I do not want our sites to be tied to any one provider. I prefer llms.txt because it's an open standard that any open-source tool can consume. So that's the reason why we need this, the ethos. I'll do a brief demo of how we use this, and it's going to be the briefest ever. Who here uses AI to code, like in chat mode, where you chat with ChatGPT: "Hey, how do I do this?" Can I have a show of hands? Who does that? Okay, who does agentic coding, where in your IDE or CLI you're going to ask it, and it's going to do a lot of thinking over time? Yeah, quite a few people still?
So you know how important it is for the AI to be autonomous, that it has access to the relevant information. And as a developer, that means developer docs. You have tools like MCP servers, which you might have heard of, that are there to facilitate your access as a developer to documentation, and maybe quality-assurance tools on projects. So Context7 is one of those tools. It's an MCP server that contains documentation for lots of open-source projects, basically. So they're there in the middle, translating the docs of those projects into a format that is easy to query within an AI agent. And so that's lovely and all, but again, I'd much prefer for us to rely on open standards rather than one specific provider's implementation.
But if you want to try llms.txt, if you want to try documentation hooked into your AI agents, right now this is definitely very convenient and worth a go. There are other options here, so I don't know how to pronounce this: Nia. Another similar MCP server for docs. And more like do-it-yourself, MCP Doc is a command-line MCP server that you can use to have access to the same information with this standard format inside your coding agent. But before we do that, I think it's important to take a step back and talk about why we care about this.
I don't know if anyone here will have seen this before. I'm sure you've all heard of Andrej Karpathy, lead AI researcher at OpenAI. He has since moved on to other ventures, and is very influential in this field. He created this dashboard, which is a visualization of the US job market. It has a filter that I find particularly interesting, which is this digital AI exposure filter. So I'll switch to that. We have this visualization of the US job market when it comes to digital AI exposure, as in which jobs are most likely to be affected by AI. And we are right there.
Software developers. That's our official US Bureau of Statistics information, and we are at nine out of ten digital AI exposure. That is the highest score you can get in the visualization. I'm sure you've all seen to what degree those tools are changing how we do our jobs. That's why I think we should care. That's because, you know, it's not necessarily going to reduce the job market. I don't know that. Maybe some people would say that. But it's definitely going to affect the type of work that we do and how we do it. And so, yeah, we should unpack this a bit. Earlier, I asked who here was using chat AI tools for their coding and who was using agentic tools.
This research here, "Task Completion Time Horizons of Frontier AI Models"—what a mouthful. That basically means: over time, as the degree of AI adoption, diffusion, and refinement increases, and as the degree of model capabilities increases, how long a task can the AI tool do? So you could imagine back in 2022 with ChatGPT, you could do a task with it that's kind of like a web search or information retrieval, about 30 seconds' worth of task done by the AI. A few years later, you start to have connections.
A few years—sorry, what am I, who am I kidding? A few months later, you start to have integrations in the chat interface. You start to have more powerful models. Maybe you can have the AI instead do ten searches at the same time and give a report back to you. That task might now be on the horizon of five minutes' duration. A few months pass again, more powerful models get released, and now you can probably generate a whole page of a website, generate a whole Python module. A few years later, again, you can generate a whole project. So this here is a logarithmic scale. Every increment on the scale is ten times bigger than the previous one.
And we're at the point now, 2026, where, per this research at least, AI models can autonomously do on the order of about ten hours of work. That's not to say that they do it completely correctly, to the equivalent quality as a human would, but it gives you a ballpark. This is the 50% successful completion of tasks. If we look at the 80% success rate, we're only at about an hour. So basically, you have to be mindful of expectations here. But we can clearly see that over time, AIs do more and more complex tasks. And that also means that fewer and fewer people, fewer and fewer developers, actually spend time looking at documentation because they have the AI do that for them.
And I'm not sure this pull request made the rounds a few months ago, weeks ago. This is in the Tailwind repo. I'm sure lots of you will have heard of Tailwind, but it's basically a CSS framework that is well known because of how AI-friendly it is, how well it works with AI tools. They do a great job generating Tailwind code. And, yeah, a few months ago someone said, "Oh, I'm doing lots of work with AI agents. Why don't I propose adoption of this new llms.txt format to the Tailwind docs? Seems like a great idea. It'll be even easier to never have to read the Tailwind docs myself ever again." Except if we look at the replies, Adam Wathan, one of the lead maintainers of Tailwind, said no.
And he said no for a very simple reason, which is that his whole business model depends on people looking at the documentation of Tailwind to find their training, call to action, their paid consultants, call to action, their Tailwind Plus package. Those things aren't necessarily part of the Tailwind experience for everyone, but for them it's their business model. They make base Tailwind available for free; they expect you to look at their websites and hear about their other products. And what they found out is that despite Tailwind being more popular than ever, their documentation website visits were down 50–40% over time, and they said that because of this they had to lay off 75% of their engineering team.
I'm not necessarily saying that AI is replacing those people. That is a foregone consequence. But definitely, right now, we have to be aware of the consequences of this adoption and how disruptive it is to both open source and those business models that sustain open source. Yeah, I'm sure there are lots of Tailwind users here in the room. I am myself, definitely. I definitely haven't seen their website in a while, no matter how much I love the framework. So I do hope Tailwind succeeds. I do expect eventually they might start adopting things like this format, but it does mean they have to reinvent their business model in the meantime. And for someone like me, whose whole job is helping other people make websites, it's obviously also really impactful.
So, these days, people don't really go to Stack Overflow anymore. They go to the AI model yet again. And so it's going to be very important for those reasons that we understand exactly how the AI models find the information and use it. So, yeah, I thought it would be a good time for our first little interactive exercise, which is to ask the AI about a specific page on the internet. This tool is called Jina AI, and if you have your AI tool of choice at hand, now is the time to go to it, like I will here, and start typing H
T P s://r.jina.ai/ like that. And we're going to be able to try out Jina AI's ability to convert HTML pages to Markdown on the fly so that the AI can ingest it better. So all I did here, again, just to be clear, is type the name of their service, then slash, and then the URL of any web page on the internet you want to try this on. And I can ask my AI agent of choice, so here, this is OpenClaw:
Could you recap the contents of this page for me? So, I don't know who here has heard of OpenClaw before. There's a bit of a mindset change here. We are inside Telegram. Telegram, you might not expect it as an AI app; it's a chat app. But OpenClaw is very popular as something that you'll integrate into your existing chat tools rather than dedicated programming tools. The idea here is the AI will be available wherever you are, essentially. It'll find you where you are and adapt how it works to, in this case, your preferred interface, being a chat app.
Bit of a disclaimer. Earlier in the workshop, I was recommending people try out OpenClaw. It's a very dangerous tool. The whole model of how the tool works is that it can do anything that you can do on your computer. It has access to all of your files. It has access to all of your fancy API tokens, all your private keys. So I'm running this inside a virtual private server, completely isolated from my computer. This bot only has access to its own virtual private server, my Telegram channel, and a GitHub bot account. So just be very mindful of that if you were to try the service.
I do highly recommend it because of how transformative it is, in my opinion. So, again, if you're following this at home or in the room, if you want to try OpenClaw, the Kilo platform has something called KiloClaw. And right now they have an offer with a free trial for seven days, which is this OpenClaw plus VPS server, so you can try OpenClaw without having to put it on your own machine, which you definitely should not do, just to be clear. But anyway, this specific demo here, you can do that with any AI agent, really. I think it's worth being clear: the AI will have no problem reading the HTML of that page, but
you can imagine, like, you can kind of relate as a human how unpleasant it would be to want to access the content of this page and have to look at the source code. So the whole point of what we're doing here is to instead have something that's much more optimized to look at the content only. So this is our first taste, I guess, of why we care in practice about llms.txt. We care because it's easier for the AI to extract content out of it. But there's a big difference between what we're doing here and llms.txt, which is that llms.txt would not contain all of the site's navigation here. So, essentially, all of this menu here, the navigation interface, all of the footer.
You don't really want your AI agent to have to look at that. You don't really want to have to pay the cost of processing that content. You only want to look at the actual, interesting bits of the page. So that's why we're not just relying on this one provider. We're not just doing HTML-to-Markdown on the fly. We're publishing another format instead. Just to hammer this point home, I don't know who here has heard of prompt engineering and context windows. If you've used cloud code tools like that, you probably have a good sense of how much input you can provide before it starts hallucinating and going crazy. So the fundamental unit here is called
a token. It's a representation of one bit of information in the model. And the Django docs are way too big to fit in the context window of an AI model. I'm sure no one here has ever read through the entire docs of Django end to end. The AI tools, not even they can do that. If you look at the HTML version of the docs, the whole hundreds of pages in HTML, that's on the order of six million tokens. And flagship models these days are on the order of 200,000 tokens that they can hold in memory reasonably well. The 200,000 budget, that's for your whole task, not just the docs.
So if you're blowing this budget by a few orders of magnitude already, that's not comfortable. So that's why a better format will help us with llms.txt, but also chunking those docs into smaller formats, just like we do for humans. We break it up into separate pages so it's easier to find specific information. I'm going back and forth here between why we care and how the format works. Any questions before I move on to the next thing? How does it make you feel so far? Good? See some thumbs up? I see some frowny faces. Who here has used llms.txt before? Do we have early adopters like me in the room?
Yeah? A couple? Yeah? I'm sure more of you have heard about it, but maybe thought, like, "Oh, why do I care?" Definitely fair. I'm not saying we should care. I definitely expect those formats could come and go. When I mentioned the 200,000-token context window of models, the window size increases over time as models become more and more capable. So some of the techniques that we had to do, like two or three months ago, are no longer relevant anymore, and there's new techniques emerging. Just a bit of a tangent: who has heard of caveman LLMs? Ah, okay. Anyone here using it? You have used it? Wow. Oh, yeah, wow.
So for those who haven't, it's another type of token optimization where you instruct your AI to respond like a caveman. I feel like I'd probably say a cave person, but no, you tell it, "Use terse language. Respond in this very kind of robotic, crude way." Those people say it's like 65% more bang for your buck, so to speak. So, yeah, I don't necessarily want us to do that right now, but my point here is the techniques are changing, and some of them might feel a bit silly right now. I'm not sure if it's temporary or not. Anyway, check it out later. I'm sure it's fun to try. While we go on to the next step, I'll ask my AI, could
you speak like that, please? Give me the same summary as above, but caveman style. See what it makes of it. So, yeah, back to the Django docs. We want to look at those optimizations because of how big the docs are, because of how hard it is to find information. We have to be very aware, though, of the pitfalls of this. So something I have left unspoken for now is how much this mediation of our information consumption by AIs can also be a problem. I'm sure we've all seen plenty of AI slop, but that's not what I'm talking about here.
What I'm talking about is, if you basically leave it up to the AI to explore the projects for you, the AI is gonna make some of the decisions on how to explore things. So this report here that I found very interesting is from a company that specializes in understanding how AI models shape adoption of different products. So they've been trying out Claude Code, asking Claude Code, "What would you use for this project? Which continuous integration service should I use? Which CMS should I be using if I had a need for this or that? If I was on a FastAPI project, which ORM should I be using?" It's very important to be aware that the AI is then making those choices, not just
based on our own needs, but also how it perceives the world, which is affected by how people publish information. For those two, I don't know who here has heard that Claude Code, the kind of flagship agentic coding tool, had its source code leaked a couple weeks ago. Yeah, it's a super big deal for a ton of reasons, and one of them is that those researchers found that Claude Code had 400 different tools hard-coded, saying, like, "Oh, this isn't something you have to be aware of. That is also..." And when I say hard-coded, it's not necessarily nefarious. It's like, "Oh, if the person mentions Django, here is where the Django
docs are." That said, I can definitely expect the ads coming in six months to a year, where some company might be paying to tell Anthropic, "Hey, why don't you push this or that thing I'm using?" And, yeah, so if we compare recommendations with different agents, we see interesting patterns. So, same company, different report. And they have this specific section that I find really interesting. To the right we have Bun. Bun is a Node toolchain for JavaScript bundling, formatting, linting, QA.
Bun is what Claude Code is built with, and Bun was also acquired by Anthropic. I'm sure it makes a lot of business sense to do that, but we definitely see in the report here that Claude Code is suggesting Bun way more than Codex is suggesting Bun. That's interesting, isn't it? I wonder why that is. So just to be clear, Claude Code isn't saying on every single project, "Oh, you should adopt Bun right now." It's if you have a need that Bun might be a good tool for, then Claude Code will pretty much systematically mention Bun as an option.
Okay, and definitely pick it also. Again, not necessarily nefarious right now, but that's the kind of thing I want us to be aware of as open source technologists. Those companies have those hard-coded tools in their integrations with the models. And yeah, we can see it in practice. Just to be clear, it's not just Anthropic and Claude Code. To this side, we have Statsig. I have no idea what Statsig does. All I know is they were acquired by OpenAI, who put the Codex agentic tool in, and Codex again recommends Statsig way more than Claude Code does. So there's clearly a pattern here. You might be interested to hear about
how they recommend frameworks. So we'll try that next. But yeah, this is quite close to home. I'm sure lots of you will have been switching from pip, Poetry to uv, a new package manager. I'm sure lots of you will have been switching from Flake8, which is a very popular linter, to Ruff. Both uv and Ruff are by this company called Astral, who announced a few weeks ago they were joining OpenAI. I'm sure there's plenty of good reasons for that, but it definitely makes me question how much my tooling starts to be controlled by a single company like that. Anyway, this is the next interactive bit that I would like you all to try with your own AI tools.
It's asking the AI, “Which web frameworks would you recommend?” So again, there's no right or wrong answer necessarily here. I just think it's interesting for us to try this specifically. You might have noted a bit of a pattern here, which is that I'm always recommending open source things. So here again we'll use open source AI models. We're inside a platform called OpenRouter. Is it OpenRouter or Router? Can never tell. Yes, so OpenRouter is one of the leading providers of an AI gateway service where you have access to
hundreds, maybe at some point thousands, of different AI models, with very different qualities and sizes. But it makes it very easy to see how different models share the same information. They also have excellent statistics that show you which models out there people are using. If I look all the way to the bottom here, there is this very cool app and agents ranking which shows you, when people use OpenRouter, which tool do they do that with? So that's how I learned about OpenClaw. That's how I learned about Roo Code and so on. I don't have a ton of time to keep up with all of that stuff, so it's just nice to see which ones gain
popularity. And yeah, for this demo I'm using the model fusion, which allows you to ask the same query to multiple models at the same time, and then combines the answer. So here we're going to be on a budget. We're going to be using Gemini 3 from Google, DeepSeek from DeepSeek in China, and Kimi from Moonshot AI. Gemini 3 is a proprietary model. DeepSeek is open weights, or some people say open source. Kimi is also open weights. Which web
framework should I use for a new project? I need an additional DB API layer, good testing capabilities, easy to deploy. Do you think Django will be in the top three options? No? But the PI interest would file. How about if I say, like, “Oh, a website and built-in testing framework”? Maybe that will change things.
You're all quite cynical. Django's been very popular in my testing so far. Okay, so those three models, and then it's going to be fused together thanks to Claude Opus. While we'll let them think, quick shout-out to Kimi K2.5. It's an open source/open-weight model. I find it really interesting because it's pretty much as good as Claude Sonnet, which is one of the flagship Anthropic models, and also because the makers of Claude Sonnet, Anthropic, have been complaining that Kimi was trained on Claude Sonnet
output. I find it very interesting to hear that, knowing how many Django books out there Claude has been trained on. I don't know if anyone knows the answer. It's 165 books. Anthropic had a quite well-known lawsuit about their use of pirated book copies, and there were 165 Django books in that dataset of thousands of books that Claude was trained on. And now they're the ones complaining that the Chinese models are trained on Claude Sonnet. So, yeah, the irony is just—oh, any questions before we look at the results?
Speaker 3
Do you have a memory turned on for your personal account with the ChatGPT? Is there, for example, while you like a request to take these queries?
Thibaud Colas
Do I? No, I don't think I have memory. I don't think this has memory support, but it's a good question. Definitely, what I'm telling you here isn't like, “Trust the results right here”; it's, “Try it on your own computer and see how this will be influenced.” Okay, so top one: Django plus Django REST Framework. See, you're also negative. Ah, no, I mean, the thing is, people are surprised how good AIs are with Django. I mentioned all of the books that this has been trained on. I'm sure you've also heard of SWE-bench. Who here has heard of SWE-bench? Yeah? Do you know what SWE-bench is testing?
Do you know how much Django is testing? Yes. Yeah, yeah. So I'll repeat for people who might not hear, if you're online. SWE-bench is one of the earliest leaderboards or benchmarks of AI models, and the original SWE-bench had on the order of about 500 tasks that AIs would complete to see which one solves them best. And I think that in the original SWE-bench, about 60% of the tasks were Django pull requests. So they literally pulled 300 pull requests from Natalia, Carlton, our fellows, looked at how they would review code, looked at how the pull request was created, and were
training their models, or at least scoring their models based on that. So, yeah, that's part of the reason why those AI tools are so good with Django. And, you know, Python code in general, they're very good at. Django docs are excellent. There's lots of good reasons. It's not just my quirky little snipes that make this good. Anyway, so back to OpenRouter and Claude summarization. So, yeah, Django plus REST framework or Django Ninja. Our motto displayed exactly as is—very great. Django ORM, one of the most mature, definitely fair. API, testing, deployment, very, very nice. FastAPI, huh?
Yeah, definitely something we expect as well. What would be very interesting for me is if at some point it says, “FastAPI, oh, and also you should probably host it on FastAPI Cloud,” because now FastAPI as well has a business model that's not entirely, but dependent on them having their cloud platform succeed. So, yeah, we're not there right now, but something to be aware of. NestJS, Ruby on Rails, ASP.NET, and so on. Honorable mention for Go. I'm a bit surprised to see Rails in here. I feel like Rails AIs haven't really picked up on it too much. I don't know exactly why that is. But, yeah, I feel like it's all worth being aware of.
There's something that's absent here that I'm very surprised about. I don't know who here has a sense of what's the most popular web framework overall right now. Like, the one that every single conversation I have mentions. React? Yeah, React. And do you know what's built on top of React? Next.js. Next.js, yes. Next.js. It was—no, it—yeah. You know, the JS communities, we've run out of names for JavaScript packages, so it's Nest, not Next, but, yeah, anyway, Next.js. Very interesting that it's not mentioned here. Because Next
JS, compared to the FastAPIs and the Djangos, has the support of a venture capital company, Vercel. They have millions of dollars to spend in their marketing budgets to push their framework. So I'm really surprised that this isn't picking it up. Anyway, back to our ecosystem, kind of starting to unpack how the AI makes those choices. And I thought it was worth highlighting Django packages because part of the strength of Django that isn't necessarily shown too much in those outputs is the community and the package ecosystem. And that's something where, in particular, I think there is a lot of room for us to be adopting llms.txt or changing our practices to better fit
those changing expectations. So we're going to look next at how to measure and test llms.txt files, and I would love for you to consider, maybe during the sprints, seeing if you can contribute llms.txt to an existing package, assuming the maintainers are okay with that. I think it'll be a really nice task for you to try out in practice. Okay, measure. I'm going to go through this pretty quick. I definitely think it's worth a look. I just want to show that this is all for real. This isn't just for enthusiasts like me running OpenClaw, that this is relevant.
We're looking at the server logs of our websites. So again, just to recap, the user guide website of Wagtail, which has llms.txt. And the reason we want to look at the server logs is, again, people don't necessarily go to the site themselves anymore. Instead, they have their AI fetch those files. And I'll do something very simple. I'll add a filter here for user agent Claude Code. Oh, maybe I misremember what the agent is called. Well, no, we'll go for one that I know for sure: ChatGPT-User.
So the user agents that those tools are using are not documented anywhere. Oh, now this is definitely something else. Sorry, I don't know why my data fetching is failing, because I did equals. You could have told me. Fox, what are you doing? Sorry, definitely a skill issue right there.
All right, back in action. So if we look at our server logs, if we filter by user agents, we can see the queries coming through. This is a quite small traffic website, a very small audience in the grand scheme of things, but definitely on a daily basis, close to a hundred requests from ChatGPT users. And I can do one further step of filtering and see the paths. No, actually, I don't even need to do that. I can just look at the top pages on the site.
Speaker 4
Thibaud, sorry, can you just
Thibaud Colas
clarify?
Speaker 4
This is visits to the site in response to things that people are doing in ChatGPT. It's not ChatGPT scraping the web for it. Is that right?
Thibaud Colas
Great question. So in this specific case, this will be requests to the site in response to people interacting with ChatGPT. There will be different user agents for OpenAI crawling of the sites. If I look at GPTBot, OpenAI is kind enough to use different user agents per AI integration. GPTBot is their crawler. I'll see here how they index our sites. If I look at ChatGPT-User, this is people inside ChatGPT asking questions. And I can see here that across the top things that this navigates to, there is our llms
txt file. Just like this top one, that's the site homepage. That's also the homepage because there is a redirect. So basically, thing number one that ChatGPT looks at is our homepage. Thing number two is llms.txt. To me, that's pretty clear proof that this is actually used in practice. What I leave implicit here is those providers don't necessarily tell you how they're crawling. That's not necessarily anything nefarious there again. It's also because they are changing how they do things all the time. But there is a lot at stake here in understanding which AI tools look at what, when. Yeah, so, yes? So I think, could you switch back to the
to the box. The crawling one?
Speaker 4
Yes, please.
Thibaud Colas
I wasn't sure how to make this interactive, so this is great.
Speaker 4
So I don't see llms.txt being picked up there.
Thibaud Colas
Yes. So if we look at their crawl pattern, it looks like they've done one big crawl at one specific time. And we might have to filter by path to see whether they load that specific URL.
Speaker 4
And I wonder if you might try it for a different company as well, just to see.
Thibaud Colas
Yeah, so what we can see here, just to be clear, our website GPT bots, LMs, no match. And I know why: it's because they index different content. So something I've glanced over for now is when we say llms.txt, I've shown you the one file, I've shown you the full file. There's a third format, which is a Markdown version of every page of the site, separate. So GPT bots specifically, they only crawl those Markdown versions of every page of the site. Does that make sense? And they do that in one burst.
Yeah, Claude is very guilty of these two. Traffic pattern is very much like hit you and, yeah, 400. Anyone have questions at this stage? Yeah.
Speaker 4
I was, well, five mark a version of your web page.
Thibaud Colas
Yeah, good question. Just repeat after clouds. Yes, thank you. Definitely should. How does Claude find the version? So there are two options that are being floated out there. On our site, if I look at the HTML markup of our site inside the head tag, we have this link meta rel equals alternate that says there is a Markdown version of that same page. And that links from every page to its Markdown version. So there is this. In addition, if you look at the llms.txt of the sites,
it's linking to all those Markdown versions. And there's a third option, which I don't know if it's real or not. I've heard that some tools use HTTP content negotiation, where the tool will say, "Oh, I accept Markdown responses." And if your server supports Markdown responses, then when the tool goes to the page, your server decides, "Do I give it HTML or Markdown?" Does that make sense?
Speaker 2
Yes. So are you maintaining two versions of the docs? If so, how do you then deal with drift a little bit?
Thibaud Colas
With drift? Okay. So the question is, how do we deal with the docs versions being different? And the answer is we code our way out of this by having the one source that is then converted into the two formats. So have a brief peek at the implementation here. Where did I put it? This is how the Markdown version is generated. So we're looking at a template here, just like any other Django template, that renders Markdown rather than HTML. So the content in this case is managed inside the CMS, inside Wagtail, then we create an HTML version and a Markdown version. If you are looking at the documentation website
where the source is in your repository, I'll show you the other tools later. Any more questions? I feel like I'm going a bit too fast. Yes. Yeah, how exactly is and what they have to do. Yeah, yeah. So again, it's like a bit of a black box at the moment. So llms.txt, some tools find that. That's kind of the sitemap version of the format. llms-full.txt, that's another version; that's the full dump of the whole site content.
As far as I know, those two names are driven by convention. So, you know, you can hit those URLs on the site. And also, if you look at the llms.txt, it will link to the other version. So that's how the tools find out about the files. So what I can't tell you is how much of an improvement to the, I guess, answers you get from the AI, how much our content perception is improved by those files. I can tell you 100% that those files are being crawled and used. I can't tell you how they're being used in practice. Yes. Can
Speaker 3
Can you please say, yes, how your backend decides between, distinguishes between the rating version, the Markdown?
Thibaud Colas
Yeah, so how we distinguish. So in the case of our website, it's really simple. Two different URLs. You go to one if you want the Markdown version; you go to the other URL if you want HTML. Okay, how are we doing for time? Okay, so we'll move on a bit to publication. It's gonna be lightning fast. If you want to publish in this format for developer documentation, it's really simple, and there are established tools across the whole Python docs ecosystem. We're looking at an MkDocs configuration file here for one of the Python packages I help maintain. There's literally all
this is here. So we're just saying, for this plugin of MkDocs, configure this, configure that, produce the files, and then everything else is done for you behind the scenes. So in this case, we're looking at this package, and based on those five lines of configuration, we'll have llms.txt, llms-full.txt, and we'll have the Markdown versions of every page of the site, right there, with the same rel equals alternate
meta tag. So it's that simple: publication in that format for developer docs. You take the source docs, you configure the plugin, and it produces it like that. In the Sphinx ecosystem, there is Sphinx dash M, exact same story. If I look at Django, if I look at how the Django docs are built and the configuration of the Sphinx document builder, all I'd have to do is add Sphinx underscore LLM to this list of extensions here, and right there it publishes in this new format.
Some of you at this point might be wondering why bother? Why not just have the LLMs look at the source files that are already in Markdown and reStructuredText? And there's a very simple reason for that, which is that those source files sometimes don't contain what you expect. I'll show you what that means next. So we're now looking at a spreadsheet that has every page in the Django docs. So those are all the pages by path. And then the three numbers, that's the length of the page in tokens across the three versions of the page. So I mentioned six million tokens for the whole Django docs in HTML.
If I look at the source files that are written in reStructuredText, 1.5 million. Markdown version, 1.5 million. But then when we look at it page by page, we see quite big discrepancies. So this one, for example, this page source is tiny, a fake you as well. That's simply because those pages have reStructuredText references to other contents. The documentation content of that page is generated in the documentation build. It's not there in the source. You know, you have your Python docstrings in Python code for a reason. And those tools move them over to the published page on builds. So that's why we want to look at
a specific format, because the docstrings might be missing. If you look at the source, the AI won't know to also have to crawl all the Python files, which is improving our understanding of how agents read this content, not just on token length, but based on other aspects. So if you want to follow along on your devices, please go to this website, agentreadingtest.com, and we'll be able to see how your own AI agent understands content.
So quick disclaimer before you submit this: I'm not sure who here has heard of the term prompt injection. There's some dangers there in telling your agent to do this, do that, from what a website tells you to do. The prompt here on this website, the prompt is, "Hey, AI, please go to that page, do whatever the page says." This is the modern equivalent of curl pipe into bash. Some agents will refuse to do this and will score very badly. Some will happily follow and expose you to some risks.
And yeah, maybe rewards as well. But yeah, we're in OpenClaw, we don't mind. I'm gonna start a new session. Speaking of that, we play this line that is
Speaker 4
If you don't use an actual website, there's quite a few cultural actions, okay, for sponsoring and things like that. Have you added those also to another step? Have you noticed, maybe I'm not the solo making a donation to the light mail?
Thibaud Colas
Emma asks how naughty you have been and whether I'm adding calls to action in my llms.txt. I haven't yet. Yet. I'm thinking about it. Wagtail is open source. Wagtail is backed by many contributors. The biggest contributor is my employer, Torchbox. Torchbox has a good, like, 80% worth of Wagtail's work is done by us. So definitely we have business incentives there. But in our case, we believe that it's important for the product to stand out on its own, and so the only funding we try and get on Wagtail is through sponsorships.
So the sponsorship call to action, I might definitely add it in there at some point. And when we say sponsorships, in the case of Wagtail, it's sponsorships of features that are meant to be beneficial for everyone. So it's kind of a business sense that we think aligns enough with community needs. Yeah, I haven't been too naughty yet, but I definitely want at some point to do something a bit more. Anyway, moving on. Okay, so I have my agent. I have warned you about prompt injection. I'm gonna press enter and see what happens. So while we do this, we mentioned donations.
OpenClaw, I learned recently, you can give it your credit card. And it can use your credit card on your behalf, in theory at least. So I'll definitely at some point try and donate to the Django Software Foundation via OpenClaw. See what happens. It'll be interesting. Oh. We'll switch to something else in the meantime. All right. I do not know what's up with OpenClaw.
We're inside another AI agent called OpenCode that I recommend because it's good, it's open source, it's running Kimi K2.5. I'll give it the exact same instructions, and we'll see which one succeeds first. Hmm. Sure, that would help. Has anyone managed to get this prompt done and see the results? Yes, I didn't get any of the results that would pass anyway. So really? What are you using? No, just not in agent tools, just in Gemini. Okay. Yeah.
Yeah. So Daniele says he doesn't trust agents enough to do this. And Gemini, yeah, so it depends entirely on whether they follow instructions. So OpenClaw is letting us down here. We're gonna look at OpenCode instead. And here it says, "Oh, okay, great, I'll happily fetch all the pages you tell me to look at and process the content per the instructions of the pages." So this site here that we're following along is a reading test for agents. So the idea is to give it different exercises to understand how the agents fetch the content. And if you've been through this, it should give you a list of, I think they call it tokens. So if you click score your results
here, you'll be able to paste those—no, not tokens, sorry, canary strings is what they call it. And you'll be able to see how your agent is scoring. So looks like this here: embedded markers, canary strings found. So I'll copy this over, and it basically gives me a sense of which parts of the doc the agent will have been able to fetch. So this specific agent with this model scores 11 out of 20. So then I can see, through the different exercises that the site has, which one the agent hasn't been able to figure out. Yes?
Speaker 4
This, but it's the general pattern of the things that you're having to do. For example, here it feels like you're triangulating one black box against another black box. You don't know what's happening in either of those black boxes, but all you can do is have them respond to each other so you can get a better fix on the reality of the situation.
Thibaud Colas
Yeah.
Speaker 4
Because we don't know what's going—nobody's telling us what's going on inside those black boxes. And earlier on, when you were showing the kind of comparison matches of the...
Thibaud Colas
different providers
Speaker 4
and AI going round to all the other AIs and getting the other AIs to say what they found, and then the third AI, the other AI, is summarizing it. And everything that we do has to be through some layer of indirection. And does it bother you? Because you feel that we're not ever getting closer to the truth.
Thibaud Colas
Yeah, so I'm gonna try my best to summarize this. Daniele asks how I feel about the layers of indirection we have to jump through to understand how all of this is shaping up and what is going on. Yes, it bothers me, obviously. I wouldn't be here talking about it otherwise. I think from my perspective right now, I don't know where we're heading longer term. The purpose of doing this right now is just to try and get a layer of understanding, like peel back under the surface, see how those things are shaping up. I'm gonna leave judgment for another time. Personally, at least, what bothers me the most is the copyright infringements I had mentioned earlier, and the energy use that those tools have.
But I definitely see the benefits in terms of results you can produce with them. So I think I want to know what's in it for them, what's in it for me, and what's in it for society at large. For now, at least, I feel like it's more important for me to try this than just step back and feel bad about it. Does that make sense? I'm trying hard, but yeah, there are hits and misses. So this one, again, we're back at context window sizes of documents, and we can see the tests that are failing are the ones where the AI has to fetch quite long documents to find information and it's not able to. Doesn't mean the AI
tool is bad; it just means that the AI tool has decided, “I'll try and fetch less,” perhaps as an optimization, so it responds faster. So yeah, just want you to be aware of this, basically.
Speaker 3
Question: Is there a way in OpenCode to expand the thinking process? I find it strange that it didn't decide to just use grab canary.
Thibaud Colas
Yeah, so
Speaker 3
there's the prefix with the same starting category.
Thibaud Colas
Yeah. So the question is whether OpenCode could optimize for this task and find the specific tokens. So the point here is that as part of the exercise, the AI isn't aware that it has to find those tokens until the very last step, to try and understand, on a fair basis, its ability to find information. So obviously, if it was just grepping, if it could fetch the content to grep, yes. But there'll be some content that it can't fetch because it's summarized in another way. There'll be some content that maybe, like in a JavaScript-rendered page, it can't fetch. So that's why it's not necessarily able to, even if it was aware that it's a task that it's doing right now. Okay, yeah, so you got to see the results.
I think it's just worth saying here as well: I tried to compare a bunch of different AI models and the tools around them. It's interesting to see how they compare, but I can't really tell you which ones do well or not well. But it's definitely worth highlighting, when I mentioned some tools refuse to follow instructions, this is one of them. Of all the models out there, I definitely feel like the Claude ones tend to tell me how things should be done rather than follow instructions. Just worth being aware of. And yeah, this reading test, if you're producing documentation for your projects, comes with recommendations on how to get the best results right now. I don't necessarily feel like you should be jumping through all those hoops because
they might be changing over time, but just worth being aware of.
Speaker 4
Because this refused to fall for the prompt injection.
Thibaud Colas
yes
Speaker 4
Okay, so it's not because it did not follow instructions for it.
Thibaud Colas
It didn't follow my instructions, I suppose. Yes. So the low score is because when I told my Claude Code, “Do this,” it was like, “No, I will not.” So when I did that, it basically didn't go anywhere beyond the first page. It didn't come back to mute the results. And I tried multiple times, just to be clear. Yeah, don't let this fool you into thinking that prompt injection is a solved problem. I did a workshop at my company a few months ago, just a one-hour prompt injection 101 workshop. And within the one hour, the first time ever I had tried prompt injection. And
Just like white text on a white page, text added in CSS, having text on the page that's inside an image—all those techniques. The AI would find the instructions and follow them while the text was otherwise invisible to site visitors. So, just like cross-site scripting (XSS) issues, we have to be aware of them. Prompt injections are definitely not a solved problem for any model right now. Okay, I have one more thing to show you, but I appreciate people are also heading off to the break and the other parts of the schedule. So before I show you this one more thing, I'll just do another mention, another shout-out for Laura and my workshop tomorrow.
And on the link you followed earlier, you'll find a link to a little survey. I'm gonna want to have people think ahead of time about which themes they like to discuss in tomorrow's workshop. So just again, this is at the same link, Django-AI. And this is the link right there. So tomorrow's workshop, we want it to definitely be a community discussion driven by the people in the room, this room, but it's a big hairy topic. So just think ahead of time a bit: what themes you want to discuss. There's a form.
If you don't want to follow the form, just think about it in your own mind and come to the workshop prepared with a topic that's interesting to you. All right. So the last thing that I wanted to showcase in this workshop is another way to test how those AI tools are doing and how the models respond to different prompts for information. Who here has heard of eval suites? Yeah, two of us. Okay. So evals or eval suites are kind of unit tests for your AI model or your agentic harness—all the buzzwords there.
It's just basically being able to test in a repeatable fashion how the AI responds to a given query. And I thought it would be an interesting thing to end on, just because I think it's very foreign for a lot of us, but definitely relevant for people to be aware of and potentially try out. So I'm going to run my eval suite. I'm sure this is the best example, but let's see. Yeah. So I'm using this tool called Promptfoo. Promptfoo was recently acquired by OpenAI. It's a bit of a pattern there. But it's open source, so you know.
I'm trying my best. Promptfoo provides a framework for how to create those tests, basically. And this YAML file we were looking at—I'm sure we all love YAML—you can use it to create those test suites, essentially. So you tell Promptfoo which prompts to test. Here, those are essentially Wagtail support prompts, what I do as a living: “You are a professional support helper for Wagtail CMS users.” I'm telling Promptfoo, and via Promptfoo the AI models, “Please fetch the docs here and there.” And then I see, based on my prompt and the docs, how the AI will respond to common questions from our users.
So when it comes to Wagtail, questions like, “How do I recover a document I just deleted?” I'm sure we've all been there. I'm sure lots of you will have wished that Django had a built-in trash or archive feature rather than deletes. Very common thing we can all relate to. It's very crucial to us that when people ask this question to their AI, to our docs eventually, they find the right information. So what we're saying here with Promptfoo is, “Oh, when we ask this, we expect two assertions to pass.” Assertion number one: the results should contain the URL to the page that has this information on our site.
Because we also always want the AI to cite its sources. And assertion number two. Sorry. Assertion number one, that's a regular expression or, like, string match. Very simple. Assertion number two is we have another AI model judging the quality of the answer. So we tell that AI model, “Oh, make sure that whatever the other AI says, it's clear that this is not supported.” Does that make sense? Yeah. So this type of having the AI judge the answer is called LLM as a judge. If you've heard of job interviews or CV submission processes.
Really important to be aware of those LLM-as-a-judge concepts because they are definitely making decisions on behalf of their users about what is and isn't good. You know, you can configure exactly what criteria the AI is judging based on, but only have so much ability to steer that if you don't know what is going on under the hood. Yeah, so the eval has completed. I ran it with three different providers. I mentioned here to Daniele earlier that one of the things that keeps me up at night is the carbon footprint of AI models. So the reason I'm running three providers and three different models is to try and make sure that the smaller models, the much smaller
Mistral Small, performs as well as possible, ideally as well as the flagship Claude Opus. And, yeah, open source—OpenAI has an open-source model. Definitely want to see how that performs as well. So rather than doing it with the one model, I try with a bunch. And I can adjust so that they're all on as much of an equal footing as possible. Does that make sense? Daniele, question?
Speaker 4
I was trying something similar. I had a folder of 30 or so EDFs that I wanted to run very large prompter gates and to get a score for each one, and I was trying to get my local agents to do that. If I gave it to them one by one, each time it would give me a great result. I could not get—this was in Copilot—I could not get it to go more than one or two without leaving context from one to the other or starting to take shortcuts, and so on. So scaling from a prompt or test that works really well once to
a machine that can run that in exactly the way that you're demonstrating eluded me so far.
Thibaud Colas
Yeah. Won't pretend to have the answers, but it's definitely something where—
Speaker 4
How does this avoid that?
Thibaud Colas
Just to recap here, the use case is getting the best results from those prompts by running the prompts on a specific, I guess in this case, document or here, a specific query. So it's all about how you manage the context, essentially. And in this case, every single test is a fully separate context stack. In your unit tests, you'd want to make sure that if they rely on the database, it's all isolated with transactions or features or other fixtures or otherwise. So here, every single row, every single prompt will be fully independent from the other ones. And maybe what I should say as well, when it comes to LLM as a judge, it's a fully separate model that judges the quality of the results.
So we have one AI query to get the answer with one model, and then a separate model, a separate AI query that says, “This was the user's question. This is how you're meant to assess quality. What do you think?” Does that make sense? Okay. Yeah. And assertions are taken by which instruction? Sorry, can you repeat the tests? Yeah, the test of tests, the third test. Oh, yeah, yeah, I mean, with vibe coding these days, you can't really tell anymore which line of code is written by whom.
Yeah, yeah. So here, this is all written by me. All the checks, the quality assessments, this is written by me. But then the type equals LLM rubric here—if you look at the Promptfoo documentation, it will give you a sense of how the actual checks are run. So it's called model-graded in here. And if you do LLM rubric, they basically come with the default prompt that is tailored for, optimized for, the AI to judge from these criteria right below. So they have written a prompt that they give to the model in a very specific way to get the best results.
And the only thing that I have to be in charge of is a definition of done kind of thing, where I say, like, “This is good. This is what you should look for.” Yeah, Emma? So NM up to your computer and this. Yeah, good question. How flaky are the tests? Very flaky. Very flaky, because I really try hard to use local models and small models. If you work with flagship models and your instructions are relying heavily on an LLM as a judge, model-graded, you can have really reliable results. There's this temperature parameter here that configures how much
variation you want between answers. So those aren't tests that I would run in continuous integration necessarily at this point, but definitely some people do if they have enough time to make sure that this is configured in just the right way. So it's flaky, but there's lots of ways to make it more reliable and reproducible. To answer any further questions or just chat about this. So we're inside the Promptfoo visualization of the results. Again, as I mentioned, every row here is a separate prompt, and every column is a separate model
responding to that prompt. And so we have this kind of recap pass rate. We can see here that the smaller model by Mistral, so Mistral Small, 24 billion parameters, only has a 20% pass rate. This second one, 100% pass rate, same model. There's a specific reason why this passes much more than that. Same models, very different answers. This is because one is using the full file, full llms.txt, the other just the index. So this is why
maybe ChatGPT fetches the full file, you get much better results out of it. This is why we care about making sure that the small models work well, because they can definitely work just as well as Claude Opus if you take the time to make sure the formats are just right. A big difference in fundamental capabilities here between the two is how large of a context window they have. So how much information they can fit into their memory. That's why it's crucial for us to chunk this information in just the right size. At least crucial at this point in time, right now. Maybe the models will get better. And so anyway, that's just a recap. Then, so I mentioned the rows and the columns.
Each of the cells here is the result of the specific test scenario. So I can see the response from the AI model, and I can see why it might be failing. So here we have an assertion that's failing about some of the things we expect to be there being missing. This response doesn't mention page types or saving, which are fundamental concepts in Wagtail. So as someone who works with this, I might then decide: do I change the prompt, do I change the test, or do I change our documentation to have better information? This is one of the things I'd love for us to do more of: improve the documentation, find the gaps in
documentation in a way that's much more reproducible. Because we only have so many contributors in our community who know about technical writing and have the kind of expertise to conduct user research. But we definitely have a good sense of which questions people ask the docs or ask themselves. And we can definitely write tests like this. So anyway, I hope that was interesting. There's lots to unpack there. There's definitely lots of very interesting things you can do with that format, with AI tooling generally. Definitely lots of things that are very concerning to me with how it's shaping our industry, society, and our jobs. Don't pretend to have all the answers. I just think it's interesting to explore. And yeah, I hope I'll be seeing some of you at
our workshop with Laura tomorrow. It'll be quite intense. And beyond that workshop, I thought I'd give a plug for the Django AI Research Working Group. I have proposed that we have an ongoing research group in the community. I have struggled tremendously to get this started because of how intense a topic this is. But I really think it's great for us to collectively arrive at more of an answer. Yeah, I definitely think there's lots of value in having those conversations in person with people around you. Keeps us all honest, and yeah, it's important to have that connection when so much of our online universe is being mediated by
those tools.
Speaker 2
Thank you. I must say that's a hell of work that's been done. And I just want to ask one question: how do you keep on top of all the research just going on? Like, it's
Thibaud Colas
How to keep up? There's no way. I think I definitely expect some people will be very happy just staying blissfully unaware of all of this. I'd be very happy to be productive with one or two tools. I think, at least for me, this is all quite a big source of stress. So definitely worth picking your battles and deciding which ones to explore and not explore. As far as what to recommend, I think my personal most useful has been to look at, again, the OpenRouter rankings, not necessarily because it tells you what's the best, but it tells you what other people might be up to.
So there's no bias there. You can just see what's getting traction for what reason. Doesn't say those tools are relevant for you, but it does tell you there's lots of usage. Yeah.
Speaker 2
Are you okay to take one or two questions? Like, if anyone has one. If not, then I've got one question about this LLM: how do you deal with PDFs? On a website where HTML content can be converted to Markdown, how do you do that? Because some websites, like government sites, are PDF-based. How do you push those PDFs to get the best result?
Thibaud Colas
Yeah, so PDFs: first off, friends don't let friends use PDFs. You should never make a PDF if you can help it. And if you can't help it, definitely publish in multiple formats. And if you still have legacy PDFs to work around, definitely that's something AI models are really good at: OCR, optical character recognition, where they can convert the PDFs into more semantic or at least structured information. So this tool called Docling is quite good in my experience. Depending on what the PDF contains, you get different results, but that's a good place to start.
And it'll convert to Markdown or HTML, no problem.
Speaker 2
Okay, thank you.
Thibaud Colas
Sure.
Speaker 2
Thank you.
Speaker 5
Yeah, one small question. You showed that page which had how many tokens each page of the Django docs had, that spreadsheet. I was just curious how you found out the number of tokens. Did you use a tokenizer, or was it in the agent-reading test where they tell you, at the end of it, how many tokens were used?
Thibaud Colas
Yeah, good question. So remember that repository I shared with you earlier? My ambition with this was to try and explore what the format would look like for Django if we were to adopt llms.txt for the Django framework. The scripts folder in there has my code that goes through this. So without looking at the code, the answer is basically using a tokenizer, as you said. So it's an AI model that is meant specifically to give you the count of how many tokens a given document has. And different AI models, different providers have different tokenizers, so not all token counts are equal. But for what we're doing here, this is
clear enough. And so you point the tokenizer at the three different formats, you get the three figures in a spreadsheet, and voilĂ . It's really simple. There's lots of excellent tokenizers out there and wrappers around them that make it more convenient to use them. Just to be clear, this is the English version only, so different languages will have different token counts because different languages tokenize shorter or longer.
Speaker 2
Thank you, Thibaud. That's what we have all have now. Thank you very much again.
Thibaud Colas
Thank you all.
April 15 - 17, 2026
Athens, Greece
Note: We understand that names change, people change, and bodies change. We respect each individual's journey and privacy. If you have any concerns about a video or need us to remove content, please don't hesitate to contact us. We will handle your request with care and promptly address any issues.
Published October 26, 2026
Published October 26, 2026
Published October 26, 2026
Published October 26, 2026
Published October 26, 2026
Published October 26, 2026