Scaling NL-to-SQL Agents with GraphRAG on AWS

Introduction This article addresses a specific problem in natural language to SQL generation: avoiding context overflow and LLM confusion when generating SQL queries against databases with a large number of tables and complex foreign key dependencies. The described solution uses GraphRAG to improve LLM accuracy by eliminating guesswork and reducing context pollution. The Problem Consider: an RDS PostgreSQL instance […]

Using Core Concepts of Computational Linguistics with RAG

A super colorful infographic ChatGPT created for this article. How linguistic fundamentals shape the design and performance of retrieval-augmented generation systems In a previous article, I discussed the core concepts of computational linguistics that every language model, big and small, needs to have. This article will discuss the core components of retrieval-augmented generation (RAG) models, show […]