Repository navigation
feat(memory): configure semantic embedding schema - #647
Conversation
|
Warning Review limit reached
More reviews will be available in 47 minutes and 42 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds semantic memory configuration support to the Helm chart (new Semantic Memory Configuration
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@coding-agent/src/coding_agent/core/app.py`:
- Around line 311-315: Update the memory semantic config validation in app.py so
whitespace-only overrides are treated as blank, not valid values. In the helper
that validates the [memory.semantic].{key} setting, keep the string type check
but change the non-empty check to use strip() so inputs like " " raise the
same ValueError as other blank values. This should be applied in the validation
path around the existing return value logic for the memory.semantic schema
override.
- Around line 291-301: The payload builder in app.py should stop returning all
three embedding fields whenever any one differs from defaults. Update the
schema-to-dict logic around the existing default comparison so it emits only the
individual fields in schema.embedding_provider_id, schema.embedding_model, and
schema.embedding_dim that actually differ from default_schema, returning an
empty dict only when all match. Keep the behavior localized to this
serialization helper so defaults are not written back as explicit config.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: e90a0380-efc1-49b4-9703-5e9f09cf36ab
📒 Files selected for processing (5)
coding-agent/helm/templates/configmap-agent-config.yamlcoding-agent/helm/values.yamlcoding-agent/src/coding_agent/core/app.pycoding-agent/tests/coding_agent/test_memory_switch.pycoding-agent/tests/deploy/test_helm_chart.py
Summary
[memory.semantic]config when explicitly enabledTests
uv run pytest tests/coding_agent/test_memory_switch.py::test_semantic_enabled_lancedb_backend_uses_configured_embedding_schema tests/deploy/test_helm_chart.py::test_helm_semantic_memory_enabled_renders_config -quv run pytest tests/coding_agent/test_memory_switch.py tests/coding_agent/test_memory_index_backend_contract.py tests/deploy/test_helm_chart.py -quv run pytest tests/ui/test_session_manager_runtime.py::test_sqlite_durable_semantic_rebuild_recalled_by_later_build_context_without_backend_hit_text tests/coding_agent/test_semantic_recall.py tests/coding_agent/test_semantic_sync.py tests/coding_agent/test_semantic_maintenance.py -quv run ruff check src/coding_agent/core/app.py tests/coding_agent/test_memory_switch.py tests/deploy/test_helm_chart.pyNotes
This prepares o6n semantic-memory dogfood by allowing the existing LanceDB backend to use the same OpenAI-compatible embedding settings as the deployed KB path, for example SiliconFlow
BAAI/bge-m3at 1024 dimensions. It does not enable semantic memory by default or change SRE values.Summary by CodeRabbit
New Features
Bug Fixes
Tests