forDocumentRetrieval method

GoogleLLMBuilder forDocumentRetrieval({
  1. String? title,
  2. int? dimensions,
})

Configure for document retrieval

Implementation

GoogleLLMBuilder forDocumentRetrieval({String? title, int? dimensions}) {
  embeddingTaskType('RETRIEVAL_DOCUMENT');
  if (title != null) {
    embeddingTitle(title);
  }
  if (dimensions != null) {
    embeddingDimensions(dimensions);
  }
  return this;
}