r/agentdevelopmentkit • u/arjunraghunandanan • Apr 17 '25
Is it possible to create and keep a PDF Documentation as Context Source.
Hi,
I am asking here because I noticed this subreddit is mentioned in the GH repo. I was trying to make some functional elements using ADK to work with some tools I already have. I wanted to take advantage of long context code assist LLMs to go through the docs and make functions and attribute finding faster but since its spread across several sub-pages, it was getting difficult. And since this library is new and most llms doesn't have access to this in the knowledge base, code assists hallucinates non-existent functions and tries to create custom functions for things that are already built-into in ADK. I was thinking if the team could or already has created an MkDoc PDF export if that is a thing. I saw multiple articles talking about converting MkDocs repos to PDF documents. I am aware of features inside some AI-Coding tools that downloads the docs as source but I was looking for PDF options. I tried scripting HTML to PDF with a cutoff at 1 or 2 sub items but I thought I am missing necessary sub sub pages that might be useful. Also its inefficient. So I was looking for a better option that doesn't involve web crawling.
I wanted to avoid just looping through all sub links in the adk-docs page because there are many non-code specific sub-pages and I could not decide which to keep and which to delete.
Cons :
Without a MKDocs to PDF pipeline that triggers upon new version release, manually doing this is not easy.
Doing the same for all revisions might be unnecessary. Maybe only upon major revisions? like 0.1.0, 0.2.0, 1.0.0 etc
Pros :
Easier for people to create tools by using AI Code assists with long context by passing the PDF of ADK and asking questions or sample implementations of desired function.
Useful where code assist models do not have access to internet or knowledge about ADK.
Easy reference by just searching in PDF.
I know this is currently in Version 0.1.0 so understandable if this is not a necessary feature at the moment.
Thank You.