-
Notifications
You must be signed in to change notification settings - Fork 974
chore(wren-ai-service): improve text2sql #1836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis change refactors the handling of JSON fields in the pipeline system. It introduces a new Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant WebService
participant RetrievalPipeline
participant SQLGenerationPipeline
User->>WebService: Submit query
WebService->>RetrievalPipeline: Retrieve schema info
RetrievalPipeline->>WebService: Return {has_calculated_field, has_metric, has_json_field}
WebService->>SQLGenerationPipeline: Generate SQL (includes has_json_field flag)
SQLGenerationPipeline->>WebService: Return SQL
WebService->>User: Return results
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (36)
💤 Files with no reviewable changes (26)
🧰 Additional context used🧠 Learnings (10)📓 Common learnings
wren-ai-service/src/pipelines/generation/intent_classification.py (1)
wren-ai-service/src/web/v1/services/ask.py (1)
wren-ai-service/src/pipelines/common.py (1)
wren-ai-service/src/pipelines/generation/sql_regeneration.py (2)
wren-ai-service/src/pipelines/generation/followup_sql_generation.py (2)
wren-ai-service/src/web/v1/services/question_recommendation.py (1)
wren-ai-service/src/pipelines/generation/utils/sql.py (2)
wren-ai-service/src/pipelines/retrieval/db_schema_retrieval.py (2)
wren-ai-service/src/pipelines/generation/sql_generation.py (1)
🧬 Code Graph Analysis (2)wren-ai-service/src/pipelines/generation/intent_classification.py (1)
wren-ai-service/src/pipelines/retrieval/db_schema_retrieval.py (2)
🔇 Additional comments (12)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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
Bug Fixes
Refactor
Chores