Kütüphane / Yapay Zekâ Ajanları ve Asistanlar
Yapay Zekâ Ajanları ve Asistanlar
OpenAI ve QuickChart kullanarak SQL Agent yanıtlarından grafik oluşturun
Başka bir iş akışı tarafından çağrılan alt iş akışı; OpenAI yapılandırılmış çıktısıyla görselleştirme isteklerini algılar ve SQL Agent sonuçlarıyla birlikte QuickChart.io üzerinden grafikler oluşturur.
Ne yapar
### Overview - This workflow aims to provide data visualization capabilities to a native SQL Agent. - Together, they can help foster data analysis and data visualization within a team. - It uses the native SQL Agent that works well and adds visualization capabilities thanks to OpenAI’s Structured Output and Quickchart.io. ### How it works 1. Information Extraction: - The Information Extractor identifies and extracts the user's question. - If the question includes a visualization aspect, the SQL Agent alone may not respond accurately. 2. SQL Querying: - It leverages a regular SQL Agent: it connects to a database, queries it, and translates the response into a human-readable format. 3. Chart Decision: - The Text Classifier determines whether the user would benefit from a chart to support the SQL Agent's response. 4. Chart Generation: - If a chart is needed, the sub-workflow dynamically generates a chart and appends it to the SQL Agent’s response. - If not, the SQL Agent’s response is output as is. 5. Calling OpenAI for Chart Definition: - The sub-workflow calls OpenAI via the HTTP Request node to retrieve a chart definition. 6. Building and Returning the Chart: - In the "Set Response" node, the chart definition is appended to a Quickchart.io URL, generating the final chart image. - The AI Agent returns the response along with the chart. ### How to use it - Use an existing database or create a new one. - For example, I've used this Kaggle dataset.
Adımlar
- OpenAI Chat Model
- Execute Workflow
- Execute "Generate a chart" tool
- OpenAI - Generate Chart definition with Structured Output
- Set response
- When chat message received
- Set Text output
- Set Text + Chart output
- AI Agent
- Window Buffer Memory
- OpenAI Chat Model Classifier
- Text Classifier - Chart required?
- User question + Agent initial response
- Information Extractor - User question
Benzer otomasyonlar
Veri Senkronizasyonu ve ETLMicrosoft SQL Server'da SQL Sorgusu Çalıştırma2 adımVeri Senkronizasyonu ve ETLMicrosoft SQL Server'da SQL sorgusu çalıştırma3 adımRaporlar, Analitik ve PanolarOpenAI ve QuickChart ile SQL Aracısı Sorgu Sonuçlarını Grafiğe Dökme14 adımRaporlar, Analitik ve PanolarQuickChart Çizgi Grafiği Oluşturma ve Drive'a Kaydetme6 adım