Struct DocumentContext (0.5.0)

Document context.

Fields

page_identifier

Page identifier.

content

Document content to be used for answer generation.

Implementations

new

 fn new() -> Self

set_page_identifier

 fn set_page_identifier<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

Sets the value of [page_identifier][crate::model::answer_query_request::search_spec::search_result_list::search_result::unstructured_document_info::DocumentContext::page_identifier].

set_content

 fn set_content<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

Sets the value of [content][crate::model::answer_query_request::search_spec::search_result_list::search_result::unstructured_document_info::DocumentContext::content].