rlm.search.query
Search documents in a session using BM25, regex, or literal matching. Control result limit and context characters around matches.
Instructions
Search documents. BM25 index is lazy-built on first use.
Args: session_id: Session to search query: Search query string method: Search method (bm25, regex, literal) doc_ids: Optional list of doc IDs to limit search limit: Max matches to return context_chars: Characters of context around each match
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| query | Yes | ||
| method | No | bm25 | |
| doc_ids | No | ||
| limit | No | ||
| context_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||