Ghost not generating llms.txt

Hiya

I’ve turned on “Enable structured data for LLMs and AI search engines” for my blog on my self hosted instance of ghost but it doesn’t seem to make an llms.txt or any related files. Running ghost 6.64
Any idea why or how I can fix this?

root@satindar:/opt/ghost# podman exec ghost-ghost-1 ghost version

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org

- Inspecting operating system
- Checking for deprecations

Ghost-CLI version: 1.32.5
Ghost version: 6.64.0 (at /var/lib/ghost)

Looks like it’s working. I just opened blog.satindar.is-a.dev/llms.txt and got the file back, with your About page listed and a link to llms-full.txt.

Two things that might explain the confusion. Ghost doesn’t write these files to disk, it generates them on request like the sitemap, so you won’t find anything inside the container. And the Posts section says no public content because the site has no published posts yet. Publish one and it should show up there, and at the post URL with .md on the end.

Were you getting a 404 earlier, or were you looking for the file on the server?

Am I trying to access the file at the wrong URL? I opened it on an incognito tab so cache shouldn’t be an issue.

Remove the trailing slash, then it should work:

https://blog.satindar.is-a.dev/llms.txt

1 Like

Ah, thank you. I didn’t know trailing slash would mess that up.