GoogleCloudPlatform / GoogleCloudPlatform/generative-ai

[Bug]: Infinite credit spend in grounding_with_vais example

Open
#1,925 1 comment 0 reactions 1 assignee Claimed by @undertwig View on GitHub
Dominant language
Jupyter Notebook
Stars
17.7k
Forks
4.5k
Avg merge
12h 38m
Merged PRs (30d)
42

Description

### File Name

gemini/grounding/grounding_with_vais.ipynb

### What happened?

Infinite credit spend in one of two examples for the Vertex Search feature. Not a fun surprise.

This code is missing a break condition and encourages the end user to let it run unattended, which will result in an infinite loop of queries that incur costs.

https://github.com/GoogleCloudPlatform/generative-ai/blob/312646ea8151720d2e65d7e37f0b20268262fb61/gemini/grounding/grounding_with_vais.ipynb#L420-L434

### Relevant log output

```shell

```

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.