ym88659208ym87991671
SQL | Документация для разработчиков

SQL

Обновлено 6 марта 2024

One of the most common types of databases that we can build Q&A systems for are SQL databases. LangChain comes with a number of built-in chains and agents that are compatible with any SQL dialect supported by SQLAlchemy (e.g., MySQL, PostgreSQL, Oracle SQL, Databricks, SQLite). They enable use cases such as:

  • Generating queries that will be run based on natural language questions,
  • Creating chatbots that can answer questions based on database data,
  • Building custom dashboards based on insights a user wants to analyze,

and much more.

⚠️ Security note ⚠️

Building Q&A systems of SQL databases requires executing model-generated SQL queries. There are inherent risks in doing this. Make sure that your database connection permissions are always scoped as narrowly as possible for your chain/agent's needs. This will mitigate though not eliminate the risks of building a model-driven system. For more on general security best practices, see here.

SQL usecase

Quickstart

Head to the Quickstart page to get started.

Advanced

Once you've familiarized yourself with the basics, you can head to the advanced guides:

ПАО Сбербанк использует cookie для персонализации сервисов и удобства пользователей.
Вы можете запретить сохранение cookie в настройках своего браузера.