First Commit
14
README.md
@@ -41,19 +41,19 @@ O código-fonte pode ser baixado aqui: [app_select_ai.py](./files/app_select_ai.
|
|||||||
- Define **`TNS_ADMIN`**.
|
- Define **`TNS_ADMIN`**.
|
||||||
- `session_callback` ativa o **perfil de IA** (garante SELECT AI pronto em cada sessão).
|
- `session_callback` ativa o **perfil de IA** (garante SELECT AI pronto em cada sessão).
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### run_select_ai
|
### run_select_ai
|
||||||
- Monta a sentença **`SELECT AI 'pergunta' FROM <tabela>`**.
|
- Monta a sentença **`SELECT AI 'pergunta' FROM <tabela>`**.
|
||||||
- Executa e retorna **SQL gerado**, **headers/rows** e usuário/perfil ativos.
|
- Executa e retorna **SQL gerado**, **headers/rows** e usuário/perfil ativos.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### build_chart e format_table
|
### build_chart e format_table
|
||||||
- `build_chart`: heurísticas para inferir gráfico (pizza, barras, linha).
|
- `build_chart`: heurísticas para inferir gráfico (pizza, barras, linha).
|
||||||
- `format_table`: limita registros e devolve `{headers, rows}`.
|
- `format_table`: limita registros e devolve `{headers, rows}`.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
### Front-end (PAGE)
|
### Front-end (PAGE)
|
||||||
@@ -380,7 +380,13 @@ Abra `http://localhost:5001` e faça perguntas como:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
|
||||||
## Reference
|
## Reference
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 123 KiB After Width: | Height: | Size: 123 KiB |
|
Before Width: | Height: | Size: 200 KiB After Width: | Height: | Size: 200 KiB |
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 251 KiB After Width: | Height: | Size: 251 KiB |
BIN
images/img_4.png
Normal file
|
After Width: | Height: | Size: 91 KiB |
BIN
images/img_5.png
Normal file
|
After Width: | Height: | Size: 10 KiB |