Need suggestions on training vanna with enums. #276
-
So I can't find a neat way to give the llm context on the enums. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
For now documentation is the way to do this. I agree that it's clumsy but there's a reason for it. This was a legacy choice made by us 6 months ago when people didn't have trusted ways to run an LLM so we used to make an explicit choice that the Vanna package would never automatically crawl the contents of a database. We made a conscious decision to not feed query results back into the LLM responses, which is what would be necessary to achieve what you're talking about. However, based on feedback now that people trust LLMs more in general and/or have ways of running LLMs in a trusted manner, we are incrementally adding functionality like this that will allow the system to introspect the database as necessary. We will always put this behind an explicit flag ( In the near-ish future we will make it so that we can do multi-stage queries where a question could first produce an introspection-type query to find out the distinct values of a particular field before proceeding to write the "actual" query that would give the response. |
Beta Was this translation helpful? Give feedback.
-
Hey, thanks for the response. It makes quite sense. |
Beta Was this translation helpful? Give feedback.
For now documentation is the way to do this. I agree that it's clumsy but there's a reason for it.
This was a legacy choice made by us 6 months ago when people didn't have trusted ways to run an LLM so we used to make an explicit choice that the Vanna package would never automatically crawl the contents of a database. We made a conscious decision to not feed query results back into the LLM responses, which is what would be necessary to achieve what you're talking about.
However, based on feedback now that people trust LLMs more in general and/or have ways of running LLMs in a trusted manner, we are incrementally adding functionality like this that will allow the system to introspect the d…