forDocumentRetrieval method
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;
}