{"repo":"kennethleungty/Text-to-SQL-with-KG-Neo4j-GraphRAG","free":true,"listed":false,"github":"https://github.com/kennethleungty/Text-to-SQL-with-KG-Neo4j-GraphRAG","clone":"git clone https://github.com/kennethleungty/Text-to-SQL-with-KG-Neo4j-GraphRAG.git","description":"Text-to-SQL with GraphRAG on Knowledge Graph Semantic Representation of SQL Databases","language":"AGS Script","stars":24,"topics":["generative-ai","graph","graphrag","knowledge-graph","large-language-models","llm","neo4j","sql","text-to-sql","finance"],"license":"MIT","category":"ai-agents","readme_excerpt":"Text-to-SQL with GraphRAG on Knowledge Graph Semantic Representation of SQL Databases Note: Full article write-up coming soon! For now, feel free to browse the code notebook Overview - Large Language Models (LLMs) have ushered in a new era for the use of natural language in question answering over enterprise data, particularly in SQL databases (aka Text-to-SQL). - One powerful approach is the use of Knowledge Graphs, which provide an enriched semantic representation of the databases (beyond basic schemas) that can significantly enhance the accuracy of SQL queries generated. - The notion of “semantic layers” building on longstanding ideas of assigning clear definitions to columns so as to facilitate analytics. - Experiments have shown that a GPT-4 system configured with a zero-shot prompt and connected to a Knowledge Graph representation of an enterprise SQL database yields results up to three times more accurate than those produced with only a raw SQL schema. These results reinforce the critical role domain semantics can play in bridging the gap between complex database structures and effective, user-friendly queries. - Knowledge engineering — the practice of mapping and governing an organization's conceptual understanding of data — often remains an implicit and underappreciated function spread across various roles. Data engineers, data stewards, analytics engineers, and analysts may each apply their own assumptions to data definitions in an ad hoc manner, leading to inconsis","default_branch":null,"files":null,"tree":[],"storefront":"/r/kennethleungty","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kennethleungty/Text-to-SQL-with-KG-Neo4j-GraphRAG/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}