Module Values.DocumentSource

Information about a document from a search service such as OpenSearch (self managed). Amazon Kendra Intelligent Ranking uses this information to rank and score on.

Sourcetype nonrec t = {
  1. id : DocumentId.t;
    (*

    The identifier of the document from the search service.

    *)
  2. groupId : GroupId.t option;
    (*

    The optional group identifier of the document from the search service. Documents with the same group identifier are grouped together and processed as one document within the service.

    *)
  3. title : DocumentTitle.t option;
    (*

    The title of the search service's document.

    *)
  4. body : DocumentBody.t option;
    (*

    The body text of the search service's document.

    *)
  5. tokenizedTitle : TitleTokensList.t option;
    (*

    The title of the search service's document represented as a list of tokens or words. You must choose to provide Title or TokenizedTitle. You cannot provide both.

    *)
  6. tokenizedBody : BodyTokensList.t option;
    (*

    The body text of the search service's document represented as a list of tokens or words. You must choose to provide Body or TokenizedBody. You cannot provide both.

    *)
  7. originalScore : Float_.t;
    (*

    The original document score or rank from the search service. Amazon Kendra Intelligent Ranking gives the document a new score or rank based on its intelligent search algorithms.

    *)
}
Sourceval context_ : string
Sourceval make : ?groupId:??? -> ?title:??? -> ?body:??? -> ?tokenizedTitle:??? -> ?tokenizedBody:??? -> id:DocumentId.t -> originalScore:Float_.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Float of Float_.t | `List of [> `String of Tokens.t ] list | `String of DocumentId.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t