Jump to content
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×