Interface: OntologyRagRequest
@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?
optionalconceptValues: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?
optionalfeatureConfig:FeatureConfigDto|null
Defined in: src/types/rag.ts:186
Feature configuration — allows caller to specify feature names. If not provided, uses defaults.
includeDependents?
optionalincludeDependents:boolean
Defined in: src/types/rag.ts:188
Whether to include dependents (default: true).
includePrerequisites?
optionalincludePrerequisites:boolean
Defined in: src/types/rag.ts:190
Whether to include prerequisites (default: true).
includeRelated?
optionalincludeRelated:boolean
Defined in: src/types/rag.ts:192
Whether to include related concepts (default: true).
maxConcepts?
optionalmaxConcepts:number
Defined in: src/types/rag.ts:194
Maximum concepts to retrieve (default: 10).
minDegree?
optionalminDegree: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?
optionalvalueThreshold:number|null
Defined in: src/types/rag.ts:200
Optional threshold for concept_values to flag items (e.g., gaps below threshold).