You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 43de68d
Browse filesBrowse the repository at this point in the historyBrowse files
docs(knowledge): every record-level unit statement names the document unit
The topK TSDoc in the knowledge-service contract, and in search_knowledge
the topK, granularity and groupBy input descriptions, the matching input
and output TSDoc and the granularity refusal, say that for a source that
declares documentBy (its document unit) a record-level result counts one
hit per parent record instead.
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FEkQ5oQLfL8thb6wtUHnTb
description: `At most this many hits (default ${SEARCH_KNOWLEDGE_DEFAULT_TOP_K}): passages, or records or groups under \`granularity: "record"\` or \`groupBy\``,
272
+
description: `At most this many hits (default ${SEARCH_KNOWLEDGE_DEFAULT_TOP_K}): passages, or records (parent records, for a source that declares \`documentBy\`, its document unit) or groups under \`granularity: "record"\` or \`groupBy\``,
description: 'One hit per passage (`chunk`, the default) or per record (`record`)',
298
+
description: 'One hit per passage (`chunk`, the default) or per record (`record`); under `record`, for a source that declares `documentBy` (its document unit), one hit per parent record instead',
290
299
},
291
300
groupBy: {
292
301
...NAME_SCHEMA,
293
-
description: 'One hit per value of this indexed field instead of per record; not with `granularity: "chunk"`',
302
+
description: 'One hit per value of this indexed field instead of per record (or per parent record, for a source that declares `documentBy`); not with `granularity: "chunk"`',
294
303
},
295
304
},
296
305
required: ['query'],
@@ -438,7 +447,7 @@ function parseInput(input: unknown): SearchKnowledgeInput {
throwrefusal('VALIDATION_ERROR',400,'`granularity` is "chunk" (one hit per passage) or "record" (one hit per record).');
450
+
throwrefusal('VALIDATION_ERROR',400,'`granularity` is "chunk" (one hit per passage) or "record" (one hit per record, or per parent record for a source that declares `documentBy`).');
0 commit comments