First Commit

This commit is contained in:
2025-08-23 06:45:07 -03:00
parent 399380625c
commit b6d93b6541
7 changed files with 10 additions and 4 deletions

View File

@@ -41,19 +41,19 @@ O código-fonte pode ser baixado aqui: [app_select_ai.py](./files/app_select_ai.
- Define **`TNS_ADMIN`**.
- `session_callback` ativa o **perfil de IA** (garante SELECT AI pronto em cada sessão).
![img_1.png](img_1.png)
![img_1.png](images/img_1.png)
### run_select_ai
- Monta a sentença **`SELECT AI 'pergunta' FROM <tabela>`**.
- Executa e retorna **SQL gerado**, **headers/rows** e usuário/perfil ativos.
![img_2.png](img_2.png)
![img_2.png](images/img_2.png)
### build_chart e format_table
- `build_chart`: heurísticas para inferir gráfico (pizza, barras, linha).
- `format_table`: limita registros e devolve `{headers, rows}`.
![img_3.png](img_3.png)
![img_3.png](images/img_3.png)
### Front-end (PAGE)
@@ -380,7 +380,13 @@ Abra `http://localhost:5001` e faça perguntas como:
---
![img.png](img.png)
![img.png](images/img.png)
![img_4.png](images/img_4.png)
![img_5.png](images/img_5.png)
## Reference

View File

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 123 KiB

View File

Before

Width:  |  Height:  |  Size: 200 KiB

After

Width:  |  Height:  |  Size: 200 KiB

View File

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 79 KiB

View File

Before

Width:  |  Height:  |  Size: 251 KiB

After

Width:  |  Height:  |  Size: 251 KiB

BIN
images/img_4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

BIN
images/img_5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB