Search the archive

14,355 indexed articles, 13,283 of them summarised by us.

Articles
14,355
Research papers
91,965
Models priced
2,249
Providers
163

15 results for “sql rag”

Newest and most relevant first

An ontology layer that tells agents what your data means

Teams using AI agents for analytics avoid incorrect data interpretations with NVIDIA's ontology layer.

NVIDIA's open-source tool helps AI systems understand data correctly by creating a shared context, ensuring accurate answers and avoiding errors.

NVIDIA's Auto Ontology reduces analytics errors for enterprises, improving reliability and reducing risks of incorrect data-driven decisions.

Auto Ontology uses Postgres, FastAPI, and LangChain to build semantic catalogs, validate queries against certified definitions, and improve with user feedback.

GitHub Opensource Projects →

Vector similarity search inside Postgres, with ACID and JOINs

Teams with embeddings next to relational data can drop a separate vector database and its sync pipeline entirely, querying similarity with JOINs in plain SQL.

pgvector is a free add-on, version 0.8.6, that lets the popular database Postgres store and search 'embeddings', number lists that represent the meaning of text or images so similar things sit close together. Normally companies must run a separate vector database and keep copies of data synchronized between systems. With pgvector, the embeddings live beside the ordinary data, so one query can both find similar items and filter by user or date. It suits most teams; very large deployments with billions of vectors may still need specialized systems.

pgvector trades some raw search speed for eliminating an entire vector-database service, its sync pipeline and its operational overhead. Because it runs inside Postgres, vectors inherit ACID compliance and point-in-time recovery, and similarity searches can JOIN against existing tables, removing glue code. Teams already on Postgres gain the most; shops running billions of vectors with nothing else should examine scaling and quantization before committing.

pgvector v0.8.6 is a Postgres extension (Postgres 13+) supporting exact and approximate nearest-neighbor search over vector, halfvec, binary and sparse vector types, with L2, inner product, cosine, L1, Hamming and Jaccard distance operators (<->, <#>, <=>, <+>). Inner product returns negated values because Postgres only supports ascending index scans. Quantization is the documented scaling path, and the article admits pgvector is not the fastest dedicated vector database. No benchmark numbers are given.

GitHub Opensource Projects →

Llama Cookbook: official recipes for inference, fine-tuning, and end-to-end use cases

Meta's official recipe repo gives developers copy-paste-ready code for fine-tuning and deploying Llama models, saving them from piecing together tutorials and debugging broken scripts themselves.

Meta maintains an official GitHub repository called the Llama Cookbook, which is a library of ready-made code notebooks for using its Llama AI models (Llama 2, 3 and 3.1). Instead of showing toy examples, it provides complete working recipes for tasks like building chatbots, question-answering systems that search documents, and text-to-SQL tools. Meta's own engineers keep it updated when new models ship, so the code keeps working. It is aimed at developers past the beginner stage who want to build real applications quickly.

Meta's Llama Cookbook reduces the engineering cost of building on Llama models: official, maintained code for quantized inference, LoRA/QLoRA fine-tuning and production patterns like guardrails via Llama Guard, caching and batching. Teams get working examples for chatbots, RAG and text-to-SQL, including a text-to-SQL recipe covering schema serialization and error handling. The main risk of relying on community tutorials, stale code, is reduced, and no pricing or competitive comparison is discussed.

The Llama Cookbook (cloned from github.com/meta-llama/llama-recipes) is organised into inference/fine-tuning recipes and end-to-end use cases, written in Python with Hugging Face Transformers, Accelerate and Peft. Inference recipes cover quantization with bitsandbytes and GPTQ; fine-tuning uses LoRA/QLoRA on custom datasets. Use-case recipes include RAG, agentic workflows, Llama 3.2 Vision multimodal examples and production concerns like Llama Guard guardrails. Recipes are modular, runnable in Colab or Modal without local model downloads. No benchmarks or performance figures are given.

GitHub Opensource Projects →

Building an Analysis AI Agent for Industrial Alarm Management with NVIDIA Nemotron

Industrial sites drowning in alarms could automate triage end-to-end, freeing technicians for complex cases, but it requires buying into NVIDIA's entire stack, not just one model.

NVIDIA published a blueprint for an AI assistant that triages factory machinery alarms. When an alarm fires, the agent pulls up history, repair manuals, and past fixes, checks the sensor data for real problems, and hands the human a summary with a suggested fix. Easy cases are auto-approved; uncertain ones go to people. It uses NVIDIA's Nemotron models and runs in seconds per alarm.

This is a reference design, not a product: NVIDIA shows how to assemble an alarm-triage agent from Nemotron 3 Nano and Super models, cuDF, cuVS, NeMo Retriever, and the NeMo Agent Toolkit, exposed as one HTTP endpoint. Buyers gain a documented path to auto-dispatching high-confidence fixes and escalating low-confidence ones. The cost is stack lock-in, OpenShell sandboxing and NIM containers throughout. No benchmark numbers are given.

The per-alarm agent receives a payload with sensor frame and asset metadata, then runs three phases: evidence gathering via cuDF-filtered SQL and Text-2-SQL (Apache Vanna), RAG over playbooks with NeMo Retriever, and cuVS similarity search over past remedy tickets. Specialist subagents use cuFFT and nv-tesseract. Nemotron 3 Content Safety gates output confidence; NeMo Agent Toolkit handles orchestration and tracing; OpenShell enforces declarative YAML sandbox policies. Latency target is seconds; no measurements reported.

NVIDIA Developer Blog →

Gemini and Agent Platform notebooks to get started on Google Cloud

Google Cloud maintains first-party Gemini and Agent Platform notebooks with runnable RAG, SQL-agent and multimodal examples, so GCP developers can skip setup friction and build working prototypes in minutes.

Google has added a batch of ready-to-run example notebooks to its generative-ai repository on GitHub. They teach developers, step by step, how to use Gemini, Google's AI model that can read text, images and video, and to build assistants that query databases or answer questions about sales data. Anyone with a Google Cloud account, which offers $300 in free credits, can run them in about five minutes.

Google Cloud's generative-ai GitHub repo now includes production-minded notebooks for Gemini and Agent Platform, including a BigQuery natural-language sales-data demo and a support bot that queries databases and updates tickets. It's free to try, with Google's $300 in credits covering testing, but a billing-enabled Google Cloud project is required. First-party maintenance means notebooks update quickly when new Gemini versions ship.

The GoogleCloudPlatform/generative-ai repo contains Jupyter notebooks for Gemini API basics (text, streaming, multimodal inputs, function calling), Agent Platform agents that execute SQL or trigger workflows, and RAG pipelines combining Gemini with LangChain or LlamaIndex. Notebooks include !pip install cells and genai.Client() setup, runnable in Colab or Vertex AI Workbench, with multimodal examples covering PDF parsing and video summarization. Requires Vertex AI API enabled on a billing-active project; the article gives no benchmark figures.

GitHub Opensource Projects →

Agent Memory

Agent memory is being framed as distinct memory types requiring deliberate engineering, and Oracle has shipped a production package (OAMP) practitioners could actually evaluate today.

This article explains that AI chatbots don't actually remember anything, the chat window just resends the whole conversation every time. It argues real 'agent memory' needs several kinds: durable facts, event logs, learned procedures, and short-term notes. It then describes Oracle's new tool, the Oracle AI Agent Memory Package, which stores and retrieves these memories. It affects anyone building AI assistants, especially those using Oracle products.

Oracle has released the Oracle AI Agent Memory Package (OAMP), built on Oracle AI Database 26ai, positioning the database as the memory core for AI agents rather than stitching together separate vector and document stores. For teams already on Oracle, this reduces vendor sprawl; for others, it adds a vendor-locked option in a crowded field. The piece is an explainer by Angie Jones based on an interview with Oracle's Richmond Alaje, not an independent evaluation, no pricing or benchmarks are given.

The article catalogs six memory types, conversational, semantic, episodic, procedural, entity, and working/summary, and argues naive prompt-history appending fails as context bloats. OAMP runs on Oracle AI Database 26ai, storing embeddings, JSON, and SQL-queryable records together, with users/agents scoping ownership, threads for continuity, and compact 'context cards' injected into prompts. It supports automatic fact extraction via LLM and semantic search that retrieves related meaning without exact keyword matches. No performance numbers or comparisons against rivals like Mem0 or LangGraph memory are provided.

Oreilly AI ML Blog →

LlamaIndex: the data framework for building LLM applications over your own data

LlamaIndex lets developers query their own documents with any LLM without building retrieval plumbing, potentially saving weeks of boilerplate on data-connected AI applications.

LlamaIndex is a free, open-source tool that lets you ask questions about your own files, PDFs, databases, Google Docs, using AI chatbots. Normally, an AI model only knows what it was trained on; this tool instead indexes your documents and feeds relevant passages to the AI so its answers come from your data. It supports over 100 data sources and works with many AI providers, from OpenAI to locally-run models. Anyone building an internal tool, customer support bot, or document assistant can benefit.

LlamaIndex (run-llama on GitHub) is an open-source Python framework for retrieval-augmented generation, the dominant pattern for making AI answer from company data. It reduces weeks of integration work, vector databases, embedding pipelines, retrieval logic, to a few lines of code, and offers a managed cloud version, LlamaCloud. There is no vendor lock-in: backends like OpenAI, Anthropic or local models swap with one line. No pricing, benchmark figures or adoption numbers are given in the article.

LlamaIndex structures RAG pipelines as ingestion (100+ connectors including Notion, SQL, Slack, S3), structure-aware chunking (headers, code blocks, paragraphs rather than fixed token splits), and indexing into vector stores for retrieval. Usage is minimal: SimpleDirectoryReader loads files, VectorStoreIndex indexes them, and a query engine returns grounded responses. It supports swapping providers (OpenAI, Anthropic, Llama, Mistral, local models) in one line, custom retrievers, re-ranking, multi-step reasoning, and tracing via Arize, Langfuse or Weights & Biases. No benchmark numbers or version details are given.

GitHub Opensource Projects →

RAGLite: lightweight RAG with DuckDB or PostgreSQL and late chunking

Developers who avoided RAG because of vector database overhead can now run retrieval locally with plain SQL via RAGLite.

RAGLite is a free, open-source Python library for building retrieval-augmented generation (RAG), which means software that answers questions using your own documents. Unlike typical RAG tools, it stores document embeddings (numeric summaries of text) in ordinary databases like DuckDB or PostgreSQL rather than specialized vector databases. It also delays cutting documents into pieces until query time, keeping more context for better answers. This suits individuals and small teams who want question-answering over PDFs, notes or code without cloud setup or extra servers.

RAGLite lowers the cost and setup burden of RAG projects by using DuckDB or PostgreSQL with pgvector instead of a dedicated vector database, and works on a laptop with no cloud API key or Docker. It targets the common case of small document collections, internal docs, notes, code search, and explicitly does not handle millions of documents out of the box. The project is early, so the API may change. Organizations with heavy RAG infrastructure needs gain little; teams prototyping without an AWS bill gain most.

RAGLite implements RAG on DuckDB (single-user, no server) or PostgreSQL with pgvector for similarity search, storing embeddings as BLOBs in SQL rows queryable with joins and filters. Its distinctive feature is late chunking: whole documents or sections are embedded, and chunks are split dynamically at retrieval time, avoiding context loss from fixed-size chunk boundaries. LLM backends include OpenAI, Ollama, or any OpenAI-compatible endpoint, defaulting to a local sentence transformer for embeddings. Limitations: no benchmark numbers given, API instability, and no stated support for million-document scale.

GitHub Opensource Projects →

Building Cost-Efficient Agentic RAG on Long-Text Documents in SQL Tables

This article explains how to create a smart system that combines traditional databases with AI to find and use information from long documents more efficiently. It’s designed to work without changing your existing setup and helps businesses save time and money.

This article presents a method for building a hybrid SQL and vector retrieval system that integrates seamlessly without requiring schema changes, data migration, or performance compromises. It highlights a cost-efficient approach to implementing Agentic RAG (Retrieval-Augmented Generation) for long-text documents stored in SQL tables, enabling enhanced data retrieval and AI-driven insights.

The article introduces a hybrid SQL + vector retrieval system designed for Agentic RAG on long-text documents. It leverages vector embeddings and SQL tables to enable efficient retrieval without schema modifications or data migration, ensuring optimal performance and cost-efficiency.

Towards Data Science Blog →

Building Scalable AI on Enterprise Data with NVIDIA Nemotron RAG and Microsoft SQL Server 2025

Enterprises can now generate vector embeddings and run semantic search directly inside SQL Server 2025 using NVIDIA GPU-backed NIM microservices, without a separate vector database or data leaving their environment.

Microsoft announced SQL Server 2025, a database that can now store and search text as 'vectors', number lists that capture meaning, letting software find similar documents or products. NVIDIA contributed its Nemotron RAG models, pre-packaged in containers called NIM microservices, so the database can call them directly to convert text into these vectors. A demo uses Microsoft's AdventureWorks sample database to generate embeddings for product descriptions. This affects businesses wanting AI search over their own data in the cloud or on their own servers.

SQL Server 2025, announced at Microsoft Ignite 2025, natively stores vectors and calls external AI models via T-SQL functions like AI_GENERATE_EMBEDDINGS, removing the need for a separate vector database. NVIDIA's Nemotron RAG models run as NIM containers on Azure Container Apps with serverless GPU billing scaled to zero, or on-premises via Azure Local for data-sovereignty requirements. Enterprises with SQL Server estates gain a faster path to RAG; vendors of standalone vector databases face more bundled competition. No pricing figures are given beyond per-second serverless billing.

The reference architecture connects SQL Server 2025 to a Llama Nemotron Embed 1B v2 NIM microservice exposing an OpenAI-compatible HTTPS endpoint, using CREATE EXTERNAL MODEL and AI_GENERATE_EMBEDDINGS for embedding generation and VECTOR_DISTANCE for similarity search. Cloud deployment runs on Azure Container Apps with serverless GPUs and HTTP auto-scaling to zero; on-premises uses Azure Local with Windows/Ubuntu mixes, validated on SQL Server 2025 RC 17.0.950.3. TLS mutual encryption secures all traffic. No benchmark numbers or latency figures are reported; deployment scripts live in the NVIDIA/GenerativeAIExamples GitHub repo.

NVIDIA Developer Blog →

Multi-Agent SQL Assistant, Part 2: Building a RAG Manager

This guide compares ways AI searches info for SQL questions using keyword matching, FAISS, or Chroma in a smart SQL helper. It's part of building AI teams for databases. It matters because better search makes AI more accurate with real data.

This hands-on guide compares RAG strategies, Keyword, FAISS, and Chroma, for a multi-agent SQL assistant's RAG manager. Business leaders gain insights to optimize retrieval methods, improving AI accuracy in database queries and operational efficiency. Key takeaway: Selecting the right RAG boosts multi-agent system performance for data-driven decisions.

Hands-on comparison of Keyword, FAISS, and Chroma RAG strategies for building a RAG manager in a multi-agent SQL assistant. Details implementation, retrieval mechanisms, and performance trade-offs for SQL querying tasks.

Towards Data Science Blog →

Graph RAG vs SQL RAG

RAG helps AI get better answers by fetching data from databases before responding. This compares 'Graph RAG' (for connected data like social networks) vs. 'SQL RAG' (for table-based data). It matters because it guides choosing the right setup for accurate AI tools in business.

This article compares Graph RAG and SQL RAG for AI-driven data retrieval, highlighting performance differences on graph versus relational databases. Business leaders should consider Graph RAG for complex, interconnected data to enhance AI accuracy and insights. Key takeaway: Align RAG strategy with data structure to optimize enterprise AI applications and decision-making.

Evaluates Retrieval-Augmented Generation (RAG) implementations on graph and SQL databases, benchmarking Graph RAG against SQL RAG. Focuses on retrieval accuracy, query complexity handling, and integration with LLMs. Provides insights into methodologies for assessing RAG effectiveness in structured vs. networked data environments.

Towards Data Science Blog →

AI for data engineers with Simon Willison

A podcast conversation rather than news, but its practical advice on securing MCP servers and using LLMs for SQL and structured extraction is directly applicable to data engineers today.

Simon Willison appeared on the Talking Postgres podcast in an episode called 'AI for data engineers'. He explains how he uses AI models to write complex SQL queries, such as one that pulled alt text from his blog's images. He also explains jargon like agents, MCP, RAG and tokens, and advises beginners to learn by playing with the models. The episode is a conversation, not a product announcement, and no new tools or prices are released.

This is a podcast interview, not an announcement: Simon Willison discusses AI for data engineers with Talking Postgres host Claire Giordano. The useful takeaways for decision-makers are his security guidance, give AI tools read-only database access, use PostgreSQL permissions, and beware the 'lethal trifecta', and his claim that structured data extraction is the most economically valuable LLM application for data work. There is nothing to buy, deploy or act on.

Willison recounts using LLMs for a complex PostgreSQL query extracting image alt text via regular expressions, noting models have handled SQL well since roughly 2023. He frames 2025 as the year of tool-calling loops ('agentic'), and advises MCP security via read-only access, sandboxing and PostgreSQL permissions to avoid the lethal trifecta. No benchmarks, model versions or quantitative results are given.

Simon Willison’s Weblog →

Serverless Distributed Data Processing with Apache Spark and NVIDIA AI on Azure

Teams generating text embeddings at scale can now rent serverless GPUs on Azure Container Apps to run accelerated Spark, avoiding the cost of always-on GPU clusters.

NVIDIA published a tutorial showing how to run Apache Spark, a system for distributing huge data jobs across many machines, on Microsoft's Azure Container Apps using GPUs that are rented only when needed. The system reads text from a database, turns it into numerical vectors called embeddings that AI models can use, and writes results back. Developers can try it today by cloning NVIDIA's GitHub example code.

This NVIDIA tutorial demonstrates a pay-per-use alternative to always-on GPU clusters for large-scale embedding generation on Azure. Costs drop because worker containers scale to zero when idle, using NVIDIA A100 or T4 GPUs. For production, NVIDIA suggests swapping the open source worker for its supported NIM microservices, which moves spending toward NVIDIA. Requires serverless GPU quota and a SQL Server database.

The architecture splits a Spark controller (CPU, fixed at scale one, ports 8888 and 7077) from GPU worker containers on Azure Container Apps serverless GPUs, sharing data via Azure Files mounts. Workers package the RAPIDS Accelerator for Apache Spark with the all-MiniLM-L6-v2 Hugging Face model; ACA handles NVIDIA drivers and CUDA setup. Jobs run from Jupyter or an HTTP trigger, reading and writing via JDBC to SQL Server. No benchmark numbers are provided; enterprise deployment can substitute the NV-Embed-QA NIM microservice.

NVIDIA Developer Blog →

Accelerating Text-to-SQL Inference on Vanna with NVIDIA NIM for Faster Analytics

Teams deploying Vanna text-to-SQL can now run inference on NVIDIA-hosted Llama 3.1 70B endpoints, cutting query latency and keeping their stack on NVIDIA infrastructure.

NVIDIA published a tutorial showing how to speed up text-to-SQL, a technique that lets anyone ask a database questions in plain English instead of writing SQL code. It connects Vanna, an open-source tool for this task, to NVIDIA NIM, which are pre-built services that run AI models like Llama 3.1 70B faster on NVIDIA hardware. The demo uses Steam video game sales data stored in a SQLite database. Analysts and business users benefit because answers to data questions arrive faster.

This is a tutorial, not a product launch: NVIDIA shows how to pair Vanna's open-source text-to-SQL tooling with its NIM inference services, running Llama 3.1 70B and the llama-3.2-nv-embedqa-1b-v2 embedding model. NIM comes with the NVIDIA AI Enterprise license, so the relevant cost question is whether your organisation already holds that license. Self-hosting keeps IP and customisations in-house, which matters for teams wary of external data processing. No benchmark numbers or latency figures are provided.

The tutorial assembles a Vanna pipeline using Milvus (GPU-accelerated) as the vector store, NVIDIA's llama-3.2-nv-embedqa-1b-v2 NeMo Retriever embeddings for context retrieval, and the nvidia/llama-3.1-70b-instruct NIM endpoint via an OpenAI-compatible wrapper. Accuracy depends on training Vanna with SQLite DDL statements plus table documentation; retrieval returns n_results=2. The demo uses two Kaggle Steam game datasets preprocessed into three CSVs. No latency or accuracy benchmarks are reported.

NVIDIA Developer Blog →