OpenViSTAI · Agents · Blockchain · Crypto
Menu
Data Agents

Langchain Data Agent

Langchain Data Agent is an open-source Python NL2SQL system built with LangGraph and Azure OpenAI. It routes natural-language questions to configured database agents, generates and validates SQL, and returns query results.

Independent OpenViST project profile, based on linked sources.

Langchain Data Agent — OpenViST project profile in Data Agents.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you can configure supported database backends and want a natural-language querying workflow through the CLI or Chainlit interface.

Who it is for

  • Developers setting up natural-language querying over configured database backends.
  • Data teams seeking CLI or web-based interaction with databases through questions rather than hand-written SQL.

Documented uses

  • Ask a database question in plain English and receive query results.
  • Route questions among specialized agents for different data sources.
  • Continue a query conversation with context-aware follow-up questions.
  • Request charts from query results using natural language.
Before you choose

Requirements & limits

The repository is public and identified as MIT-licensed. The documented setup requires an Azure OpenAI deployment and credentials.

  • The README lists six database families and describes routing to specialized agents based on question context.
  • Python 3.12+, uv, and an Azure OpenAI deployment are listed as prerequisites.
  • Users can choose a CLI, Chainlit web interface, or programmatic Python flow; the supplied programmatic example is incomplete.
  • The README describes sqlglot-based dialect validation and query execution, but this profile does not independently assess its safety or performance.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Install the project and prepare its environment

Clone the repository, install its dependencies, and create an environment file for configuration.

Before you start

  • Python 3.12 or later
  • uv package manager
  • Azure OpenAI deployment

Steps

  1. Clone https://github.com/eosho/langchain_data_agent and change into the repository directory.

  2. Run the command below to install dependencies.

    Documented command
    uv sync --all-extras
  3. Copy .env.example to .env and edit it with your values.

  4. Set the Azure OpenAI endpoint, API key, and deployment values described in the README.

Expected outcome

The project files and environment configuration are prepared for using the documented interfaces.

Guide limitations

  • The README's environment-variable example uses placeholder credentials and endpoint values.
  • These setup instructions do not establish that a database connection or query has been tested.
Source-based practical guide

Start the documented Chainlit web interface

Launch the repository's Chainlit interface for interactive data exploration.

Before you start

  • Python 3.12 or later
  • uv package manager
  • Azure OpenAI deployment and configured environment values
  • Project dependencies installed

Steps

  1. Prepare the repository and environment using the documented installation steps.

  2. Set AZURE_OPENAI_ENDPOINT, AZURE_OPENAI_API_KEY, and AZURE_OPENAI_DEPLOYMENT in .env.

  3. Run chainlit run src/data_agent/ui/app.py.

Expected outcome

The documented command starts the Chainlit web interface, which provides profiles for Contoso, Amex, and Adventure Works sample data.

Guide limitations

  • The README does not give a complete database-connection setup for each profile in the supplied documentation.
  • The command and setup are documented instructions, not a verified launch or connection test.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
28 November 2026
Original website title
eosho/langchain_data_agent · Official homepage title · retained in its source language