ChatQuery docs: --after continues a listing within one room only
Soul found the wire comment (and the published schema carrying it) still told every caller to narrow with the last hit's ts_end_ms + 1. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
41fa789d6f
commit
556324017e
2 changed files with 4 additions and 3 deletions
|
|
@ -286,8 +286,9 @@ pub const CHAT_ROOMS_MAX: usize = 16;
|
|||
/// [after, before]. `texts` (none to `SOURCE_TEXTS_MAX`) is the meaning match,
|
||||
/// several fused as in a source search; with none the search is a listing:
|
||||
/// chunks oldest first, at most `top_k`, `ChatHits.truncated` saying more
|
||||
/// exist, and the caller narrows with `after_ms` = the last hit's
|
||||
/// `ts_end_ms + 1`.
|
||||
/// exist. Within one room the caller narrows with `after_ms` = the last hit's
|
||||
/// `ts_end_ms + 1`; across rooms spans overlap and that loses chunks, so list
|
||||
/// one room at a time.
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, JsonSchema)]
|
||||
pub struct ChatQuery {
|
||||
pub texts: Vec<Line>,
|
||||
|
|
|
|||
|
|
@ -329,7 +329,7 @@
|
|||
]
|
||||
},
|
||||
"ChatQuery": {
|
||||
"description": "A chat search. The selectors compose as AND. `rooms` are any-of: a value\nbeginning `!` is a room id, `#` a canonical alias. `after_ms` and\n`before_ms` (Unix milliseconds) keep the chunks whose span overlaps\n[after, before]. `texts` (none to `SOURCE_TEXTS_MAX`) is the meaning match,\nseveral fused as in a source search; with none the search is a listing:\nchunks oldest first, at most `top_k`, `ChatHits.truncated` saying more\nexist, and the caller narrows with `after_ms` = the last hit's\n`ts_end_ms + 1`.",
|
||||
"description": "A chat search. The selectors compose as AND. `rooms` are any-of: a value\nbeginning `!` is a room id, `#` a canonical alias. `after_ms` and\n`before_ms` (Unix milliseconds) keep the chunks whose span overlaps\n[after, before]. `texts` (none to `SOURCE_TEXTS_MAX`) is the meaning match,\nseveral fused as in a source search; with none the search is a listing:\nchunks oldest first, at most `top_k`, `ChatHits.truncated` saying more\nexist. Within one room the caller narrows with `after_ms` = the last hit's\n`ts_end_ms + 1`; across rooms spans overlap and that loses chunks, so list\none room at a time.",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"after_ms": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue