Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Embedding size mismatch error

I'm working through the example VerteX AI doc matching

and am getting an embedding size mismatch error.  Is this related to the approximateNeighborscount in the index_metadata being much higher than the documents specified?

 

nearestNeighborSearchOperationMetadata:

    contentValidationStats:

    - invalidRecordCount: '5'

      partialErrors:

      - embeddingId: '0'

        errorMessage: Embedding field is missing

        errorType: EMBEDDING_SIZE_MISMATCH

0 1 1,042
1 REPLY 1


@ghostwhowalks wrote:  livetheorangelife

I'm working through the example VerteX AI doc matching

and am getting an embedding size mismatch error.  Is this related to the approximateNeighborscount in the index_metadata being much higher than the documents specified?

 

nearestNeighborSearchOperationMetadata:

    contentValidationStats:

    - invalidRecordCount: '5'

      partialErrors:

      - embeddingId: '0'

        errorMessage: Embedding field is missing

        errorType: EMBEDDING_SIZE_MISMATCH


Yes, the "Embedding Size Mismatch" error likely arises due to a disparity between the specified embeddingSize in the index_metadata and the actual size of the embeddings in the documents.