Skip to content

NlqGraphExtract

Extract graph relationships from natural language query

Endpoint: /api/nlq/nlqgraphextract

Tags: NLQ

API Details

GET /api/nlq/nlqgraphextract
schema: z.object({
// tenantId is no longer exposed in the API - it's always derived from the API key
input: Str({ description: "Natural language query to process" }),
}),

Returns the extracted entities and relationships

schema: z.object({
success: Bool(),
entities: z.array(z.object({
id: Str(),
name: Str(),
type: Str(),
description: Str().nullable()
})),

Bad request

schema: z.object({
success: Bool(),
error: Str(),
}),

Unauthorized

schema: z.object({
success: Bool(),
error: Str(),
}),

View Source