How to pass user data in the user question? #280
Replies: 1 comment 5 replies
-
Vanna is designed to be an AI Data Analyst as laid out here: https://vanna.ai/docs/vision/ My sense is that the specific thing you're trying to do is to build a chatbot that happens to be able to look up ancillary information in a SQL database. That's somewhat outside of the scope of what we're trying to accomplish because the data analysis use case has different requirements than a generic chatbot. That being said, what I've seen others do in your situation is silently add information about the user to the question to the question.
|
Beta Was this translation helpful? Give feedback.
-
If a user asks a question like "what is my address?" then I should be able to send user id in the question so that only my data is fetched. this can be done by replacing 'my' with user id and send it to generate_sql. This works. But what if the question doesnt have any such prononon that can replaced then how to send user identifier in the question to LLM.
Also, def generate_sql(self, question: str, **kwargs) -> str: has **kwargs. How to use these?
Beta Was this translation helpful? Give feedback.
All reactions