Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mitigate "finish_reason": "RECITATION" error in VertexAI queries. #381

Open
DonggeLiu opened this issue Jun 25, 2024 · 2 comments
Open

Mitigate "finish_reason": "RECITATION" error in VertexAI queries. #381

DonggeLiu opened this issue Jun 25, 2024 · 2 comments
Labels

Comments

@DonggeLiu
Copy link
Collaborator

Some VertexAI queries fail due to citation filter, i.e., "finish_reason": "RECITATION".

image

There is no good mitigation except increasing the temperature or prompt engineering.
We might be able to avoid it later if the model allows us to configure the threshold.

@naourass
Copy link

I tried increasing the temperature and several prompt engineering "hacks" like inserting a long random phrase between short segments, but still getting tons for recitation errors.

@DonggeLiu
Copy link
Collaborator Author

I tried increasing the temperature and several prompt engineering "hacks" like inserting a long random phrase between short segments, but still getting tons for recitation errors.

Yep, I reckon that's from Gemini internal so the external hacks won't prevent this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants