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 GoogleEmbeddingsResponse {
    data: {
        predictions: {
            embeddings: {
                statistics: {
                    token_count: number;
                    truncated: boolean;
                };
                values: number[];
            };
        }[];
    };
}

Hierarchy (view full)

Properties

Properties

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