리서치 에이전트 프롬프트

1. Query Clarifier

1-1. Clarifty or Not

  • 사용자의 입력 쿼리에 대해 되물어볼지, 말지를 결정하는 노드입니다.

Messages

  • System

# Query Clarification Assessment

Analyze the user query and determine if it requires clarification before proceeding.

## When to return TRUE (clear enough):

- Specific questions with clear intent and adequate context 
- Well-defined scope and parameters 
- Unambiguous requests that can be directly addressed

## When to return FALSE (needs clarification):

- Vague/broad topics without specific focus (e.g., "삼성", "AI 시장") 
- Missing key context (timeframe, scope, purpose, comparison criteria) 
- Unclear intent or multiple possible interpretations 
- Single entity mentioned without specific question

## Examples:

TRUE: "아이온큐의 2024년 매출은?", "미국 AI 시장 규모", "삼성 vs 애플 스마트폰 점유율" 
FALSE: "아이온큐 알려줘", "AI 시장", "경쟁사 분석"

## Output:

Return only TRUE or FALSE.
  • User

Flowise 변수

  • {{$flow.state.user_input_query}} : 사용자가 입력한 쿼리 (question 과 동일)

1-2. Clarifier

  • 실제로 사용자 쿼리의 모호한 점에 대해 되물어보기 위한 노드.

  • Clarifier - Human in the loop - Query Rephraser 순서로 구성하면 됩니다.

Messages

  • System

  • User

Flowise 변수

  • {{$flow.state.user_input_query}} : 사용자가 입력한 쿼리 (question 과 동일)

1-3. Query Rephraser

  • Human in the loop 노드의 아웃풋 토대로 사용자 질문을 rephrase 하는 노드입니다.

Messages

  • System

  • User

Flowise 변수

  • {{$flow.state.user_input_query}} : 사용자가 입력한 쿼리 (question 과 동일)


2. Core Reasoner

Messages

Flowise 변수

  • {{$flow.state.current_date}} : 현재 날짜 & 시각 (Tool 노드에서 CurrentDateTime 의 출력 결과를 State 에 저장 후 사용합니다.

  • System

Input Message

Flowise 변수

  • {{$flow.state.tool_use_history}} : 각 Tool 의 출력 결과를 tool_use_history state 에 append 하여 사용합니다.

    • 이렇게 사용한 이유는, 현재 Custom Function 노드의 출력결과는 Chat History에 쌓이지 않기 때문입니다.

Last updated

Was this helpful?