TaskConfig.RetrievalDocument

class TaskConfig.RetrievalDocument : 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 properties

String?

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

Public constructors

RetrievalDocument

RetrievalDocument(title: String? = null)

Public properties

title

val title: String?

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