Tuning in AI aplications- Google cloud
10:46 18 Nov 2025

im using AI aplications in google cloud and i'm trying to tune my model. It asks for a jsnl corpus file, a jsnl query file and a tag TSV file. When i do the tuning i get this error message:

"Unique positive queries must have at least 9 unique queries. Found 0 instead. Invalid corpus id count: 70. Invalid query id count: 70."

here is how my files are structured:

corpus.json:

{"_id":"1","texto":" [fragment] "}

{"_id":"2","texto":" [Fragment] "}

{.......}

{"_id":"561","texto":" [Fragment] "}

query.json:

{"_id": "query1", "texto": " [query] "}

{....}

{"_id": "query30", "texto": " [query] "}

etiquetas.tsv:

query-id corpus-id score

query1 199 3

query1 178 3

query1 168 2

query1 210 1

query2 85 1

query3 61 1

query4 266 2

query4 40 2

query4 104 2

query4 107 1

query4 90 2

query4 130 2

...

query30 251 3

My question is why am i getting that error, and how to fix the tuning of the model correctly. I'm using the format of the files that they ask for in the tuning screen. using this as guide:

https://docs.cloud.google.com/generative-ai-app-builder/docs/tune-search?_gl=1*198dmcd*_ga*MTY1ODc4MzUyNi4xNzYwODg4MDEw*_ga_WH2QY8WWF5*czE3NjM0ODMxMjckbzI5JGcxJHQxNzYzNDgzMTQ3JGo0MCRsMCRoMA..&hl=es#query

google-cloud-platform artificial-intelligence google-gemini gcp-ai-platform-training