Table of Contents

Enum QueryGenerationMode

Namespace
LMKit.Retrieval
Assembly
LM-Kit.NET.dll

Specifies how retrieval queries are generated from user input before semantic search.

[Obfuscation(Exclude = true)]
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum QueryGenerationMode

Fields

Original = 0

The user input is used directly as the retrieval query without any transformation.

Contextual = 1

The user input is automatically reformulated into a self-contained query using the available conversation context, improving retrieval accuracy for follow-up questions in multi-turn interactions.

MultiQuery = 2

Multiple query variants are generated from the user input and searched independently. Results are merged using score fusion to improve recall across different phrasings. Conversation context is used to resolve references in multi-turn interactions.

HypotheticalAnswer = 3

A hypothetical answer is generated from the user input and used as the retrieval query, bridging the gap between question phrasing and document phrasing. Conversation context is used to resolve references in multi-turn interactions.

Share