chore(wren-ai-service): refine intent classification for time related questions#1067
Conversation
WalkthroughThe pull request introduces a modification to the intent classification system prompt in the Wren AI service. The change focuses on enhancing the prompt's instructions by adding a specific guideline for handling time and date-related queries. The new instruction directs the system to include time/date formats (such as YYYY-MM-DD) when rephrasing user questions that involve temporal information, thereby improving the clarity and precision of query processing. Changes
Poem
Tip CodeRabbit's docstrings feature is now available as part of our Early Access Program! Simply use the command 🪧 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 (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
wren-ai-service/src/pipelines/generation/intent_classification.py (1)
34-34: Consider providing more detailed date/time formats for broader coverage.Currently, the step references “YYYY-MM-DD” specifically. Providing additional examples (e.g., “MM/DD/YYYY,” “YYYY-MM-DD HH:MM”) would help address a wider variety of time/date queries.
- - Third, if the user's question is related to time/date, add time/date format(such as YYYY-MM-DD) in the rephrased_question output. + - Third, if the user's question is related to time/date, add one or more time/date formats (e.g., YYYY-MM-DD, MM/DD/YYYY, or YYYY-MM-DD HH:MM) in the rephrased_question output.
Summary by CodeRabbit