### ----------------------------------------------------
### -- WWW::Gemini
### -- Licenses: Artistic-2.0
### -- Authors: Anton Antonov
### -- File: xt/05-Gemini-embeddings.rakutest
### ----------------------------------------------------
use v6.d;

use lib '.';
use lib './lib';

use WWW::Gemini;
use Test;

my $method = 'tiny';

plan *;

## 1
my $query = 'make a classifier with the method RandomForeset over the data dfTitanic; show precision and accuracy; plot True Positive Rate vs Positive Predictive Value.';


is gemini-embed-content($query, format => "values", :$method).WHAT ∈ (Array, Positional, Seq), True;

## 2
my @queries = [
        'make a classifier with the method RandomForeset over the data dfTitanic',
        'show precision and accuracy',
        'plot True Positive Rate vs Positive Predictive Value',
        'what is a good meat and potatoes recipe'
];

is gemini-embed-content(@queries, format => "values", :$method).WHAT ∈ (Array, Positional, Seq), True;

## 3
is gemini-embed-content(@queries, format => "values", :$method).elems, @queries.elems;

done-testing;


