Defines the structure of the embeddings results returned by the Google Vertex AI API. It extends GoogleBasePrediction and contains the embeddings and their statistics.

interface BaseGoogleEmbeddingsResults {
    embeddings: {
        statistics: {
            token_count: number;
            truncated: boolean;
        };
        values: number[];
    };
}

Properties

Properties

embeddings: {
    statistics: {
        token_count: number;
        truncated: boolean;
    };
    values: number[];
}