TaskConfig.RetrievalDocument

public final class TaskConfig.RetrievalDocument extends TaskConfig


Task type for documents to be indexed or retrieved.

Optimized for representing the content of a document (e.g., an article, book, or web page) to be searched against queries embedded with RetrievalQuery, QuestionAnswering, FactVerification, or CodeRetrieval.

Summary

Public constructors

Public methods

final String

The optional title of the document, or null if not provided.

Public constructors

RetrievalDocument

public RetrievalDocument(String title)

Public methods

getTitle

public final String getTitle()

The optional title of the document, or null if not provided. Providing a title can improve retrieval quality.