Jump to content
Registration disabled at the moment Read more... ×
david berneda

TeeBI and AI, chart and grid from Google Gemini

Recommended Posts

New TeeBI demo, one line of code calls the Google Gemini api and imports the results into normal TeeBI structures.

 

These data then can be simple visualized or queried.  

The idea is to add more AI agents (ChatGPT etc) transparently in the near future.

 

https://github.com/Steema/TeeBI/tree/master/demos/3rd_party/AI

 

uses
   BI.AI, BI.DataItem;
   
procedure TForm_AI_Demo.Button1Click(Sender: TObject);
var Data1 : TDataItem;
begin
  // One line of code, call Gemini and get a data structure:
  Data1:=TBIAI.From('your key', 
  
      'Give me the list of the highest 10 mountains by elevation in csv format, just the list', 
      
      TBIAI.GoogleGemini);

  // Visualize it:
  BIGrid1.Data:=Data1;   // in the grid
  BIChart1.Data:=Data1;  // in the chart
end;

TeeBI_AI_Google_Gemini_api.png

  • Like 2

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×