Files
myWiki/concepts/query-intent-analyzer.md

37 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: "Query Intent Analyzer"
created: 2026-05-15
updated: 2026-05-15
type: concept
tags: [nlp, llm, interface, database]
sources: [raw/papers/zeng-neurida-2025.md]
---
# Query Intent Analyzer
**Query Intent Analyzer** 是 NeurIDA 的入口组件将自然语言查询转化为结构化的任务画像Task Profile和数据画像Data Profile
## 两步流程
### 1. Task Parser
- **输入**NLQ + DB Catalogschema 级元数据)
- **方法**LLM 驱动的分析代理,通过精心设计的 prompt含示例指导输出
- **输出**JSON 格式任务画像(目标表、任务类型、时间窗口等)
- **验证**JSON Parser + Rule Checker 确保语法和 schema 对齐
### 2. Data Profiler
- **输入**:任务画像 + DB Catalog
- **方法**LLM 代理采用 Chain-of-Thought 多轮交互策略
- 第一轮:识别目标表和相关表
- 第二轮:过滤不相关/冗余列
- **输出**SQL 片段形式的数据画像,定义 [[data-slice|Data Slice]]
## 设计要点
- **零人工特征工程**:完全自动化从 NLQ 到结构化画像的转换
- **DB schema 感知**grounded 在真实 schema 上,避免幻觉
## 来源
- [[zeng-neurida-2025|NeurIDA 论文]]