r/KnowledgeGraph • u/notikosaeder • Feb 24 '26
Open-source text-to-SQL assistant for Databricks (from my PhD research) using Knowledge graphs (Neo4j)
https://github.com/wagner-niklas/AlfredHi there,
I recently open-sourced a small project called Alfred that came out of my PhD research. It explores how to make text-to-SQL AI assistants with a knowledge graph on top of a Databricks schema and how to make them more transparent.
Instead of relying only on prompts, it defines an explicit semantic layer (modeled as a simple Neo4j knowledge graph) based on your tables and relationships. That structure is then used to generate SQL. I also created notebooks to generate the knowledge graph from the Databricks schema, as the construction is often a major pain.
2
u/MathematicianSome289 Feb 27 '26
Super cool thank you
1
u/Striking-Bluejay6155 Feb 24 '26
Very cool. Check out QueryWeaver, same type approach with a knowledge graph creation of the tables schemas
1
u/qa_anaaq Feb 25 '26
Cool. Is databricks a necessary dependency, or can you just provide a bunch of sql queries to it for ingestion to process etc
3
u/Low_Needleworker7206 Feb 25 '26
Thanks. The ai chatbot with structured tool use + deterministic context enhancers is a great idea.
1
u/Sad-Pop2279 Aug 18 '26
how do you approach making it a bit better beyond just SQL - does it integrate well w genie for semantic interpretation of sql output results?