GenkitG
Genkit11mo ago
8 replies
military-pink

Hi! I'm using the Vertex AI plugin.

Hi! I'm using the Vertex AI plugin. After the 1.1 update, I've noticed that groundingMetadata contains an empty retrievalMetadata object even though the answer was grounded. Is this a Genkit issue or a Vertex AI one?

I'm using it like this:

const { text, custom } = await ai.generate({
            model: gemini20ProExp0205,
            prompt: input.question,
            config: {
            temperature: 0,
            vertexRetrieval: {
                datastore: {
                dataStoreId: //..dataStore ID,
                location: 'global',
                projectId: // .. projectID,
                },
                disableAttribution: true,
            },
            },
        })


And here is part of custom:

groundingMetadata: {
retrievalMetadata: {
}
}
index: 0
}
Was this page helpful?