Repository navigation
feat(#251): metadata enrichment — entity, category, meta CLI flags - #262
Conversation
- New CLI flags on remember: --entity, --category, --meta key:value,... - Metadata stored as JSON in existing metadata column (no schema change) - --meta parses key:value pairs with auto type detection (number, bool, string) - recall --entity/--category: post-filter results by metadata fields - list --entity/--category: filter listed memories by metadata fields - JSON output includes metadata when present - Human-readable output shows entity/category when set Fixes: #251
|
Warning Review limit reached
More reviews will be available in 29 minutes and 15 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
✨ 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 |
🔍 Cora AI Code Review❌ Blocked — critical issues found. 🔴 Error (3)
Review powered by cora-cli · BYOK · MIT |
* fix: address Cora review critical issues (7 items) FTS5 (from PR #261): - Fix BM25 score conversion: rank is negative unbounded, clamping to 0..1 produced 0.0 for all results. Now uses rank-based scoring (placeholder 1.0) since actual ranking is done by RRF in hybrid. - Fix RRF normalization: denominator calculation was correct but .min(1.0) was misleading. Replaced with explicit .clamp(0.0, 1.0). - Replace memories.remove().unwrap() with expect() for clearer panic msg. Metadata (from PR #262): - Replace as_object_mut().unwrap() with if-let pattern to prevent panic. - Server-mode remember now includes entity/category/meta in request body instead of silently ignoring them. * style: cargo fmt
) * feat(#251): metadata enrichment — entity, category, meta CLI flags - New CLI flags on remember: --entity, --category, --meta key:value,... - Metadata stored as JSON in existing metadata column (no schema change) - --meta parses key:value pairs with auto type detection (number, bool, string) - recall --entity/--category: post-filter results by metadata fields - list --entity/--category: filter listed memories by metadata fields - JSON output includes metadata when present - Human-readable output shows entity/category when set Fixes: #251 * style: cargo fmt
* fix: address Cora review critical issues (7 items) FTS5 (from PR #261): - Fix BM25 score conversion: rank is negative unbounded, clamping to 0..1 produced 0.0 for all results. Now uses rank-based scoring (placeholder 1.0) since actual ranking is done by RRF in hybrid. - Fix RRF normalization: denominator calculation was correct but .min(1.0) was misleading. Replaced with explicit .clamp(0.0, 1.0). - Replace memories.remove().unwrap() with expect() for clearer panic msg. Metadata (from PR #262): - Replace as_object_mut().unwrap() with if-let pattern to prevent panic. - Server-mode remember now includes entity/category/meta in request body instead of silently ignoring them. * style: cargo fmt
Summary
Enrich memory entries with structured metadata via new CLI flags.
New CLI flags on
rememberNew filter flags on
recallandlistuteke recall "staging" --entity staging-server uteke list --category infrastructureImplementation
--entity <name>— entity identifier in metadata JSON--category <cat>— category classification in metadata JSON--meta key:value,...— arbitrary key-value pairs with auto type detection (number, bool, string)metadatacolumn (no schema change)Verification
cargo clippy --all-targets -- -D warnings— cleancargo test— 107/107 passFixes: #251