Ragit uses json to interact with the world. This module defines json schema
of ragit objects. Some objects are valid json schema by themselves. For example,
a chunk is just a json file. There’s no need to define a new schema for it. So
it’s just a type alias: type ChunkSchema = Chunk;.
There’s a Prettify trait, which makes ragit needlessly complex. Please read the
doc of the trait.
Ragit supports multi-turn conversations. Since the pipeline
can handle only 1 query at a time, a multi-turn conversation
has to be rephrased into a single query. Ragit uses a
prompt to do that. This struct is a result of the prompt.
If is_query is set, the rephrasing is successful and you
can find the query in query. Otherwise, the last turn of
the conversation is not a query.
If you want to do something with chunks, use LoadMode::QuickCheck.If you have nothing to do with chunks, use LoadMode::OnlyJson.If something’s broken and you don’t want it to crash, use LoadMode::Minimum. It can still crash, though.If you want to be very sure that nothing’s broken and you don’t care about init-time, use LoadMode::Check.