Preparing Django documentation for LLMs
python django llm ai
2025-02-21
I've been using files-to-prompt recently to help query large codebases with LLMs, but I realised this would work just as well for documentation sets. Here's how to generate a complete documentation set for Django; I've been uploading this to a ChatGPT Project as a supporting document, and getting really good results.
$ git clone git@github.com:django/django
$ files-to-prompt django/docs/ \
--ignore *.css \
--ignore *.svg \
--ignore *.graffle \
--ignore *.pdf \
--ignore *.png \
--ignore *.eot \
--ignore *.ttf \
--ignore *.woff \
--ignore *.woff2 > /tmp/django-docs.txt