LLM for data analytics: text-to-sql 3 architecture patterns

preview_player
Показать описание
This is the first video in a series exploring how to work with structured data using Large Language Models (LLMs).

In this video, I explain the three main architectural patterns for building Text-to-SQL pipelines:

1. Prompt engineering & manual metadata retrieval (BASE)
2. BASE + RAG for metadata retrieval
3. 1 or 2 using the fine-tuned model

Stay tuned for more videos in this series on leveraging LLMs for structured data tasks!
Рекомендации по теме
Комментарии
Автор

Great video. A few questions:

1) In the Final Prompt, we are including a lot of things. Question is how big a prompt can be?
2) In the base architecture, how is table/schema data fetched?
3) In the RAG method, are we doing semantic search to fetch only the relevant table/schema definition or do we fetch everything?

sarthak
Автор

A nice video, I just wondering in the part that checks if the query is validated. How I can do that?

Emiliano_Dev
Автор

Really good illustration Denys! Just one question, will this architecture still function well when you have too many tables with bad naming? I only see some products like AskYourDatabase work well with this situation. How should the solution fit in this architecture?

Jocob-Beller
Автор

Where can I find the flow diagram that you showed in the video?

utkarshshukla
welcome to shbcf.ru