Skip to content

Interface: OntologyRagRequest

@kortexya/reasoninglayer


@kortexya/reasoninglayer / RAG / OntologyRagRequest

Interface: OntologyRagRequest

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

Request body for the Ontology RAG endpoint.

Remarks

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.

Properties

conceptSortId

conceptSortId: string

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

Sort ID for concept terms.


conceptValues?

optional conceptValues: Record<string, unknown> | 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.


featureConfig?

optional featureConfig: FeatureConfigDto | null

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

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


includeDependents?

optional includeDependents: boolean

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

Whether to include dependents (default: true).


includePrerequisites?

optional includePrerequisites: boolean

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

Whether to include prerequisites (default: true).


includeRelated?

optional includeRelated: boolean

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

Whether to include related concepts (default: true).


maxConcepts?

optional maxConcepts: number

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

Maximum concepts to retrieve (default: 10).


minDegree?

optional minDegree: number

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

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


queryText

queryText: string

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

The query text to search for.


valueThreshold?

optional valueThreshold: number | null

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

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