chore(wren-ai-service): fix followup ask#1256
Conversation
WalkthroughThe changes update the intent classification process to focus on SQL queries instead of natural language questions. The placeholder in the user prompt template was renamed from "User's previous questions" to "User's previous SQLs." The Changes
Sequence Diagram(s)sequenceDiagram
participant UI as User Interface
participant IC as IntentClassification
participant PB as PromptBuilder
participant H as History (Optional)
UI->>IC: Call prompt(query, schema, prompt_builder, history, configuration)
alt History provided
IC->>H: Retrieve history.sql
else No history
IC->>IC: Use empty SQL list
end
IC->>PB: Pass query and SQL history to prompt_builder.run
PB-->>IC: Return generated prompt
IC-->>UI: Return prompt output
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (3)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Refactor