ChatBGC #311
matinnuhamunada
started this conversation in
Ideas
ChatBGC
#311
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
With the advancement of better LLMs, it is now possible to interact with BGCFlow results through chatbot-like interface. This is possible by converting natural language into SQL queries.
Option to interact with BGCFlow duckdb result with LLMs:
Direct interaction with DuckDB
Direct interaction with the DuckDB database can be achieved using Langchain and other stacks. This gives flexibility to run open source LLMs such as the latest Mistral model. Example project: https://github.com/kyaukyuai/chatDuck. There are many experimental open repository out there, but it uses this stacks:
Challenges
While of course interacting with the database with natural language is convenient, this technology is still in its infancy. For SQL experts, it will be much faster to directly write queries than using the chatbots. Another big challenge is to include the context of the database schema into the model. I think this is doable by parsing the schema constraints and descriptions of the tables to the LLMs. Current schema and description are not optimal for this purpose yet: https://github.com/NBChub/bgcflow_dbt-duckdb/blob/main/models/raw/schema.yml
Another promising alternative
I think using knowledge graphs instead of SQL database is the way forward as it fits well with how the LLM works. An example project is https://github.com/neo4j/NaLLM
Beta Was this translation helpful? Give feedback.
All reactions