fix(wren-ai-service): fix sql expansion latency and retrieval issue#1469
Conversation
WalkthroughThis pull request integrates additional parameters into the retrieval configuration across two modules. In the service container initialization, a new flag from the settings controls whether database schemas may be used without pruning. In the SQL expansion service, a historical context parameter is added to the retrieval run call. These changes adjust how retrieval components are instantiated and how historical data is passed without altering the overall function flow. Changes
Sequence Diagram(s)sequenceDiagram
participant Container as Service Container
participant Settings
participant Retrieval
Container->>Settings: Retrieve allow_using_db_schemas_without_pruning
Container->>Retrieval: Instantiate ask_service & sql_expansion_service with new flag
sequenceDiagram
participant Request
participant SQLService
participant Retrieval
Request->>SQLService: Send SQL expansion request with histories
SQLService->>Retrieval: Call run(histories=[history])
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (2)
✨ Finishing Touches
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:
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 (
|
…Canner#1469) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary by CodeRabbit