Leveraging ADK raw docs to feed LLMs to help coding #3499
Replies: 1 comment 1 reply
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: This is an excellent idea! The recommended approach is to use ADK's built-in tools for Retrieval-Augmented Generation (RAG) to create an agent that can answer questions based on the ADK documentation. ADK provides tools that connect to services like Vertex AI Search to make this process straightforward. Hello! You've accurately identified a powerful way to use LLMs. Feeding documentation to an LLM to help with coding is a common and effective pattern, often called Retrieval-Augmented Generation (RAG). Your intuition that the raw markdown files are well-suited for this is spot on. ADK is actually designed to facilitate this exact scenario. Instead of building a scraping and data processing pipeline from scratch, you can leverage ADK's built-in tool for RAG. [2] Here’s a general approach you can take using ADK:
This approach allows the LLM to access and cite specific, up-to-date information from the documentation, making its coding assistance much more accurate and reliable. For simpler, one-off questions, you could manually copy-paste the content of a specific raw markdown file into the LLM's context window, but the RAG approach is far more scalable and powerful. References [1] |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys,
Every page in the doc has its raw version which is very LLM friendly. And I would guess they're conceived for this exactly purpose, maybe?
How could I leverage these pages to feed a LLM to help me code? Any scrapping-like or other approach?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions