Skip to content

Interface: OntologyRagRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / OntologyRagRequest

Defined in: src/types/rag.ts:174

Request body for the Ontology RAG endpoint.

Performs True Ontology RAG combining embedding search with feature unification. The caller provides feature names via feature_config and is responsible for interpreting the results in a domain-specific context.

conceptSortId: string

Defined in: src/types/rag.ts:176

Sort ID for concept terms.


optional conceptValues?: Record<string, number> | null

Defined in: src/types/rag.ts:181

Optional map of concept_id to numeric value (e.g., mastery, score, confidence). The interpretation of these values is domain-specific.


optional featureConfig?: FeatureConfigDto | null

Defined in: src/types/rag.ts:186

Feature configuration – allows caller to specify feature names. If not provided, uses defaults.


optional includeDependents?: boolean

Defined in: src/types/rag.ts:188

Whether to include dependents (default: true).


optional includePrerequisites?: boolean

Defined in: src/types/rag.ts:190

Whether to include prerequisites (default: true).


optional includeRelated?: boolean

Defined in: src/types/rag.ts:192

Whether to include related concepts (default: true).


optional maxConcepts?: number

Defined in: src/types/rag.ts:194

Maximum concepts to retrieve (default: 10).


optional minDegree?: number

Defined in: src/types/rag.ts:196

Minimum similarity degree (0.0-1.0, default: 0.7).


queryText: string

Defined in: src/types/rag.ts:198

The query text to search for.


optional valueThreshold?: number | null

Defined in: src/types/rag.ts:200

Optional threshold for concept_values to flag items (e.g., gaps below threshold).