docs: add usage example for retrieval_core #20#39
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughAdds Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
docs/usage/retrieval_core.md (1)
7-24:⚠️ Potential issue | 🟡 MinorFix the Markdown code fence delimiter mismatch.
The block starts with three backticks at Line 7 and closes with four at Line 24, which can break rendering.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/usage/retrieval_core.md` around lines 7 - 24, The Markdown code block in the example usage for RetrievalCore has a mismatched fence (starts with ``` but ends with ````); fix the closing fence to exactly three backticks so the snippet for RetrievalCore and task.solve renders correctly.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@docs/usage/retrieval_core.md`:
- Around line 8-23: Update the example to match the real RetrievalCore API:
replace the incorrect import with the actual module import for RetrievalCore,
replace the call to task.solve(...) with the real runner method used by
RetrievalCore (e.g., task.run(...) or task.execute(...)) and adjust result
access to the actual return structure (do not use result['matches'] or
result['confidence']; instead index into the returned results list/dict — e.g.,
result['results'][0]['id'] and the corresponding score field such as
result['results'][0]['score'] or result['results'][0]['confidence'] depending on
the actual keys). Locate and update the lines referencing RetrievalCore, solve,
matches, and confidence in the snippet.
---
Outside diff comments:
In `@docs/usage/retrieval_core.md`:
- Around line 7-24: The Markdown code block in the example usage for
RetrievalCore has a mismatched fence (starts with ``` but ends with ````); fix
the closing fence to exactly three backticks so the snippet for RetrievalCore
and task.solve renders correctly.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 9350592b-69fa-4da5-9af7-652103acac3b
📒 Files selected for processing (1)
docs/usage/retrieval_core.md
4ff78c6 to
ec16a13
Compare
|
Please don't resolve conversation as it the maintainer are supposed to mark them as resolved if they are satisfied. |
|
Please mention the output in the file too. And the CI checks are failing please resolve them. |
|
This is strange, in the screenshot in your PR description I can see that you ran the command but activated the virtual environment later. I doubt the correctness of the output generated, please look into it. |
|
|
Thanks for the PR! Looks good to me |
|
Just one last thing, the CI checks are failing please resolve them |
|
Looks Good! Thanks |

Description
This PR adds a usage example for the retrieval_core task as requested in #20. It includes a Python code snippet, input/output structures, and documentation on the task's probabilistic nature.
Changes
Added docs/usage/retrieval_core.md
Included example script and data formats.
Screenshots

Closes #20
Summary by CodeRabbit