forSemanticSimilarity method

GoogleLLMBuilder forSemanticSimilarity({
  1. int? dimensions,
})

Configure for semantic similarity tasks

Implementation

GoogleLLMBuilder forSemanticSimilarity({int? dimensions}) {
  embeddingTaskType('SEMANTIC_SIMILARITY');
  if (dimensions != null) {
    embeddingDimensions(dimensions);
  }
  return this;
}