pragunbhutani / dbt-llm-tools

RAG based LLM chatbot for dbt projects
Other
68 stars 15 forks source link

Add the ability to parse macros and include them in the interpretation #10

Open pragunbhutani opened 8 months ago

pragunbhutani commented 8 months ago

Currently, ragstar only reads model and source definitions and uses these to infer dbt compatible documentation for the models. Similarly, we should be able to read macros and include macro definitions in the context provided to the LLM to interpret models.

To do this one would have to:

  1. Include parsing of macros in the DbtProject.parse() method
  2. Scan model definitions for the names of macros that have been used
  3. Add relevant macro definition to the context provided to the DocumentationGenerator