Notebooks
E
Elastic
From Image Idea To Kibana Dashboard Using Ai

From Image Idea To Kibana Dashboard Using Ai

openai-chatgptlangchain-pythonchatgptgenaifrom-image-idea-to-kibana-dashboard-using-aielasticsearchelasticopenaiAIchatlogvectordatabasePythonsearchgenaistacksupporting-blog-contentvectorelasticsearch-labslangchainapplications

From image idea to Kibana dashboard using AI

This notebook is based on the article From image idea to Kibana dashboard using AI. With the following code, we can generate a Kibana dashboard from an image.

Note: This notebook was done to be executed in Google Colab.

Install dependencies

[ ]
[115]

Defining the dashboard schema

[105]

Defining the dashboard schema

[106]

Loading the json templates

There are 3 templates for each visualization type:

  • pie
  • bar
  • metric

The templates are in the following format:

  • insBar.json
  • insPie.json
  • insMetric.json

You can find the templates in the /templates folder on the repository. Download the templates and upload them using the following code (Click on the upload button and load all the files together).

[ ]

Defining the dashboard schema

Retrieve index mappings for the index that the dashboard is based on.

[94]

Loading image

You can load an image from your local machine and use it to generate a dashboard. In the /imgs folder on the repository, you can find images to use as examples.

[30]
[ ]

Filling the template with the values generated by the LLM:

[116]
[ ]

Generate the dashboard

Here is called the API /api/generate-dashboard. The templates with the values generated by the LLM are sent to the API.

[ ]

Generating a dashboard image from Kibana

[ ]