Herodotus, often considered the "Father of Historians," was also a prolific travel journelist. His Histories act as one of the very first travel guides of the Ancient Mediterranean.
This project demonstrates how to create your own travel guide using generative AI hosted on Google Cloud--in effect, your very own Herodotus.
This project uses a three-tier architecture, with a simple web frontend, an application tier, and a data tier.
This project uses the following Google services:
This project also uses the following libraries:
This system allows the usage of three related LLM models:
- The out-of-the-box Gemini 1.5 Flash model
- A tuned version of the Gemini 1.5 Flash model, trained on the Guanaco dataset.
- A Gemma 2 open source model.
These models have been evaluated against the following set of metrics.
The following table shows the evaluation scores for each of these models.
Model | ROUGE | Closed domain | Open domain | Groundedness | Coherence | Date of eval |
---|---|---|---|---|---|---|
Gemini 1.5 Flash | 0.20[1] | 0.0 | 1.0 | 1.0[1] | 3.3 | 2024-11-25 |
Tuned Gemini | 0.21 | 0.4 | 1.0 | 1.0 | 2.4 | 2024-11-25 |
Gemma | 0.05 | 0.6 | 0.4 | 0.8 | 1.4 | 2024-11-25 |
[1]: Gemini 1.5 Flash responses from 2024-11-05 are used as the ground truth for all other models.
These models have been evaluated against the following set of adversarial techniques.
The following table shows the evaluation scores for adversarial prompting.
Model | Prompt injection | Prompt leaking | Jailbreaking | Date of eval |
---|---|---|---|---|
Gemini 1.5 Flash | 0.66 | 0.66 | 1.0 | 2024-11-25 |
Tuned Gemini | 0.33 | 1.0 | 1.0 | 2024-11-25 |
Gemma | 1.0 | 0.66 | 0.66 | 2024-11-25 |