Module Values.HierarchicalChunkingConfigurationSource

Settings for hierarchical document chunking for a data source. Hierarchical chunking splits documents into layers of chunks where the first layer contains large chunks, and the second layer contains smaller chunks derived from the first layer.

Sourcetype nonrec t = {
  1. levelConfigurations : HierarchicalChunkingLevelConfigurations.t;
    (*

    Token settings for each layer.

    *)
  2. overlapTokens : HierarchicalChunkingConfigurationOverlapTokensInteger.t;
    (*

    The number of tokens to repeat across chunks in the same layer.

    *)
}
Sourceval context_ : string
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of HierarchicalChunkingConfigurationOverlapTokensInteger.t | `List of [> `Structure of (string * [> `Integer of HierarchicalChunkingLevelConfigurationMaxTokensInteger.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