Module Values.CitationSource

Contains information about a citation that references a specific source document. Citations provide traceability between the model's generated response and the source documents that informed that response.

Sourcetype nonrec t = {
  1. title : String_.t option;
    (*

    The title or identifier of the source document being cited.

    *)
  2. source : String_.t option;
    (*

    The source from the original search result that provided the cited content.

    *)
  3. sourceContent : CitationSourceContentList.t option;
    (*

    The specific content from the source document that was referenced or cited in the generated response.

    *)
  4. location : CitationLocation.t option;
    (*

    The precise location within the source document where the cited content can be found, including character positions, page numbers, or chunk identifiers.

    *)
}
Sourceval make : ?title:??? -> ?source:??? -> ?sourceContent:??? -> ?location:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of String_.t ]) list ] list | `String of String_.t | `Structure of (string * [> `Structure of (string * [> `Integer of DocumentCharLocationDocumentIndexInteger.t | `String of String_.t ]) list ]) list ]) 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