Returns the top-K matching sections ranked by vector similarity over Gemini embeddings. Current production search is scoped to owned Disks only.Search responses follow the same redaction policy as Disk reads. Owner-private hits include section_text; redacted hits include snippet.
Request
string
required
Natural language query. Trimmed to the first 1000 characters before embedding.
integer
default:"10"
Maximum number of section hits returned. Capped at 25.
Example
curl -X POST https://skilldiscs.com/api/v1/search \ -H "Authorization: Bearer sk_your_key_here" \ -H "Content-Type: application/json" \ -d '{"query": "how does diffusion work in transformers", "limit": 5}'
Response
array
Each hit references a single section inside one of your Disks.
Show Section hit
string
Short URL-safe ID of the parent Disk.
string
Title of the parent Disk.
integer
Zero-based section position within the Disk.
string
Full matched section text. Present only when redacted is false.
string
Bounded excerpt around the match. Present only when redacted is true.
string[]
AI-extracted key points for the matched section.
boolean
Whether verbatim section text was withheld.
number
Cosine similarity score, 0.0–1.0.
{ "results": [ { "disk_public_id": "abc123", "disk_title": "Attention Is All You Need — Annotated", "section_index": 4, "snippet": "Self-attention computes a weighted sum...", "key_points": ["Self-attention lets each token attend to every other token."], "redacted": true, "similarity": 0.91 } ]}
For an owner-private Disk, the same hit shape uses section_text:
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SkillDiscs","colors":{"primary":"#F5A623","light":"#FBBF24","dark":"#D97706"},"logo":{"light":"https://mintcdn.com/theaiwhisperer/ljv4wrvj22yAxbpD/logo/light.svg?fit=max\u0026auto=format\u0026n=ljv4wrvj22yAxbpD\u0026q=85\u0026s=5ef510712f58b3bdf60cdcb32e071f2f","dark":"https://mintcdn.com/theaiwhisperer/ljv4wrvj22yAxbpD/logo/dark.svg?fit=max\u0026auto=format\u0026n=ljv4wrvj22yAxbpD\u0026q=85\u0026s=93c57f43862affc0bbc5b34572169cb8"},"favicon":"https://mintcdn.com/theaiwhisperer/ljv4wrvj22yAxbpD/favicon.svg?fit=max\u0026auto=format\u0026n=ljv4wrvj22yAxbpD\u0026q=85\u0026s=1177bb2871a83f431cdc31286018a582","navbar":{"links":[{"href":"https://skilldiscs.com/settings","label":"Settings"}],"primary":{"type":"button","label":"Open App","href":"https://skilldiscs.com"}},"footer":{"socials":{"github":"https://github.com/Caohung77/skilldisc"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"App","icon":"browser","href":"https://skilldiscs.com"},{"anchor":"GitHub","icon":"github","href":"https://github.com/Caohung77/skilldisc"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"theaiwhisperer","hasAudioNarration":false,"actualSubdomain":"theaiwhisperer","customDomains":["docs.skilldiscs.com"],"gitSource":{"type":"github","owner":"aiwhisp","repo":"skilldisc","deployBranch":"main","contentDirectory":"docs-site","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae956d6a79c9948d24b7b27:success","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"API Reference","count":6},{"language":"default","tag":"Reference","count":6},{"language":"default","tag":"Documentation","count":6},{"language":"default","tag":"Get Started","count":3},{"language":"default","tag":"Guides","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/search","slug":"/api-reference/search","pageMetadata":{"title":"Search Knowledge","api":"POST /api/v1/search","description":"Semantic search across every section of every owned Disk.","href":"/api-reference/search"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Semantic search across every section of every owned Disk.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,ResponseField,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Returns the top-K matching sections ranked by vector similarity over Gemini embeddings. Current production search is scoped to `,_jsx(_components.strong,{children:`owned Disks only`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Search responses follow the same redaction policy as Disk reads. Owner-private hits include `,_jsx(_components.code,{children:`section_text`}),`; redacted hits include `,_jsx(_components.code,{children:`snippet`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`request`,children:`Request`}),`\n`,_jsx(ParamField,{body:`query`,type:`string`,required:true,id:`param-query`,children:_jsx(_components.p,{children:`Natural language query. Trimmed to the first 1000 characters before embedding.`})}),`\n`,_jsx(ParamField,{body:`limit`,type:`integer`,default:`10`,id:`param-limit`,children:_jsx(_components.p,{children:`Maximum number of section hits returned. Capped at 25.`})}),`\n`,_jsx(Heading,{level:`3`,id:`example`,children:`Example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://skilldiscs.com/api/v1/search`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer sk_your_key_here\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"query\": \"how does diffusion work in transformers\", \"limit\": 5}'`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(ResponseField,{name:`results`,type:`array`,id:`param-results`,children:[_jsx(_components.p,{children:`Each hit references a single section inside one of your Disks.`}),_jsxs(Expandable,{title:`Section hit`,children:[_jsx(ResponseField,{name:`disk_public_id`,type:`string`,id:`param-disk-public-id`,children:`Short URL-safe ID of the parent Disk.`}),_jsx(ResponseField,{name:`disk_title`,type:`string`,id:`param-disk-title`,children:`Title of the parent Disk.`}),_jsx(ResponseField,{name:`section_index`,type:`integer`,id:`param-section-index`,children:`Zero-based section position within the Disk.`}),_jsxs(ResponseField,{name:`section_text`,type:`string`,id:`param-section-text`,children:[`Full matched section text. Present only when `,_jsx(_components.code,{children:`redacted`}),` is `,_jsx(_components.code,{children:`false`}),`.`]}),_jsxs(ResponseField,{name:`snippet`,type:`string`,id:`param-snippet`,children:[`Bounded excerpt around the match. Present only when `,_jsx(_components.code,{children:`redacted`}),` is `,_jsx(_components.code,{children:`true`}),`.`]}),_jsx(ResponseField,{name:`key_points`,type:`string[]`,id:`param-key-points`,children:`AI-extracted key points for the matched section.`}),_jsx(ResponseField,{name:`redacted`,type:`boolean`,id:`param-redacted`,children:`Whether verbatim section text was withheld.`}),_jsxs(ResponseField,{name:`similarity`,type:`number`,id:`param-similarity`,children:[`Cosine similarity score, `,_jsx(_components.code,{children:`0.0`}),`–`,_jsx(_components.code,{children:`1.0`}),`.`]})]})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"results\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"disk_public_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"disk_title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Attention Is All You Need — Annotated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"section_index\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`4`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"snippet\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Self-attention computes a weighted sum...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"key_points\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Self-attention lets each token attend to every other token.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"redacted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.91`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`For an owner-private Disk, the same hit shape uses `,_jsx(_components.code,{children:`section_text`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"results\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"disk_public_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"abc123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"disk_title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Private Research Notes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"section_index\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"section_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Self-attention computes a weighted sum...\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"key_points\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Self-attention combines token representations by learned relevance.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"redacted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"similarity\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.91`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Status`}),_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`400`})}),_jsx(_components.td,{children:`—`}),_jsxs(_components.td,{children:[`Missing `,_jsx(_components.code,{children:`query`}),` field`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`401`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`unauthorized`})}),_jsx(_components.td,{children:`Bad / missing API key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`429`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`rate_limit_exceeded`})}),_jsx(_components.td,{children:`>100 req/min`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`500`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`search_failed`}),` / `,_jsx(_components.code,{children:`internal_error`})]}),_jsx(_components.td,{children:`Embedding or RPC failed`})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Search Knowledge","api":"POST /api/v1/search","description":"Semantic search across every section of every owned Disk.","href":"/api-reference/search"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request","slug":"request","depth":2,"children":[{"title":"Example","slug":"example","depth":3,"children":[]}]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{},"endpoint":{"title":"Search Knowledge","path":"/api/v1/search","method":"post","request":{"security":[],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"query":[{"type":"string","description":"Natural language query. Trimmed to the first 1000 characters before embedding.","required":true}],"limit":[{"type":"integer","description":"Maximum number of section hits returned. Capped at 25."}]}}],"examples":{"example":{"value":{"query":"\u003cstring>","limit":123}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"results":[{"type":"array","items":[{"type":"object","properties":{"disk_public_id":[{"type":"string","description":"Short URL-safe ID of the parent Disk."}],"disk_title":[{"type":"string","description":"Title of the parent Disk."}],"section_index":[{"type":"integer","description":"Zero-based section position within the Disk."}],"section_text":[{"type":"string","description":"Full matched section text. Present only when `redacted` is `false` ."}],"snippet":[{"type":"string","description":"Bounded excerpt around the match. Present only when `redacted` is `true` ."}],"key_points":[{"type":"array","items":[{"type":"string"}],"description":"AI-extracted key points for the matched section."}],"redacted":[{"type":"boolean","description":"Whether verbatim section text was withheld."}],"similarity":[{"type":"number","description":"Cosine similarity score, `0.0` – `1.0` ."}]}}],"description":"Each hit references a single section inside one of your Disks."}]}}],"examples":{"example":{"value":{"results":[{"disk_public_id":"\u003cstring>","disk_title":"\u003cstring>","section_index":123,"section_text":"\u003cstring>","snippet":"\u003cstring>","key_points":["\u003cstring>"],"redacted":true,"similarity":123}]}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"theaiwhisperer","siteName":"SkillDiscs","title":"Search Knowledge - SkillDiscs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-06T18:41:29.132Z","originalFileLocation":"api-reference/search.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Semantic search across every section of every owned Disk.\">\u003cmeta data-mint-head name=\"application-name\" content=\"SkillDiscs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/theaiwhisperer/NUE01h0vNrF9PHdt/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/theaiwhisperer/NUE01h0vNrF9PHdt/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/theaiwhisperer/NUE01h0vNrF9PHdt/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/theaiwhisperer/NUE01h0vNrF9PHdt/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/theaiwhisperer/NUE01h0vNrF9PHdt/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/theaiwhisperer/NUE01h0vNrF9PHdt/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/theaiwhisperer/NUE01h0vNrF9PHdt/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/theaiwhisperer/NUE01h0vNrF9PHdt/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/theaiwhisperer/NUE01h0vNrF9PHdt/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Search Knowledge - SkillDiscs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Semantic search across every section of every owned Disk.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SkillDiscs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.skilldiscs.com/api-reference/search\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://theaiwhisperer.mintlify.site/_mintlify/api/og/v2?division=Reference\u0026amp;title=Search+Knowledge\u0026amp;description=Semantic+search+across+every+section+of+every+owned+Disk.\u0026amp;theme=60c2e83289ab976ebb1f8cef\u0026amp;signature=25d240b3ddae9fab4d06278cb8896844934c5428ed6e61052c153d45089bc16f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Search Knowledge - SkillDiscs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Semantic search across every section of every owned Disk.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://theaiwhisperer.mintlify.site/_mintlify/api/og/v2?division=Reference\u0026amp;title=Search+Knowledge\u0026amp;description=Semantic+search+across+every+section+of+every+owned+Disk.\u0026amp;theme=60c2e83289ab976ebb1f8cef\u0026amp;signature=25d240b3ddae9fab4d06278cb8896844934c5428ed6e61052c153d45089bc16f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/theaiwhisperer/NUE01h0vNrF9PHdt/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SkillDiscs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F5A623\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.skilldiscs.com/api-reference/search\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/search.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.skilldiscs.com/#organization\",\"name\":\"SkillDiscs\",\"url\":\"https://docs.skilldiscs.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/theaiwhisperer/ljv4wrvj22yAxbpD/logo/light.svg?fit=max\u0026auto=format\u0026n=ljv4wrvj22yAxbpD\u0026q=85\u0026s=5ef510712f58b3bdf60cdcb32e071f2f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.skilldiscs.com#website\",\"name\":\"SkillDiscs\",\"url\":\"https://docs.skilldiscs.com\",\"publisher\":{\"@id\":\"https://docs.skilldiscs.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.skilldiscs.com/api-reference/search#webpage\",\"url\":\"https://docs.skilldiscs.com/api-reference/search\",\"name\":\"Search Knowledge\",\"description\":\"Semantic search across every section of every owned Disk.\",\"dateModified\":\"2026-06-06T18:41:29.132Z\",\"isPartOf\":{\"@id\":\"https://docs.skilldiscs.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.skilldiscs.com/api-reference/search#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.skilldiscs.com/api-reference/search#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Reference\",\"item\":\"https://docs.skilldiscs.com/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Search Knowledge\",\"item\":\"https://docs.skilldiscs.com/api-reference/search\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.skilldiscs.com/api-reference/search#apireference\",\"headline\":\"Search Knowledge\",\"name\":\"Search Knowledge\",\"description\":\"Semantic search across every section of every owned Disk.\",\"url\":\"https://docs.skilldiscs.com/api-reference/search\",\"mainEntityOfPage\":{\"@id\":\"https://docs.skilldiscs.com/api-reference/search#webpage\"},\"dateModified\":\"2026-06-06T18:41:29.132Z\",\"publisher\":{\"@id\":\"https://docs.skilldiscs.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.skilldiscs.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SkillDiscs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SkillDiscs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/search.md","siteName":"SkillDiscs","nav":{"global":{"anchors":[{"anchor":"App","icon":"browser","href":"https://skilldiscs.com"},{"anchor":"GitHub","icon":"github","href":"https://github.com/Caohung77/skilldisc"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Reference","pages":[{"title":"Introduction","description":"REST and MCP endpoints for searching and retrieving your SkillDiscs library.","href":"/api-reference/introduction"},{"title":"Search Knowledge","api":"POST /api/v1/search","href":"/api-reference/search"},{"title":"List Disks","api":"GET /api/v1/disks","description":"List, search, and filter owned and active-saved Disks.","href":"/api-reference/list-disks"},{"title":"Get Disk","api":"GET /api/v1/disks/{id}","href":"/api-reference/get-disk"},{"title":"Batch Get Disks","api":"POST /api/v1/disks/batch","href":"/api-reference/batch"},{"title":"MCP Server","href":"/api-reference/mcp"}]}]}]},"basePath":"","title":"Search Knowledge - SkillDiscs","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-C6Z1vAfX.js","snippetPresets-Bjd6OXRM.js","utils-QL6OhUyF.js","style-to-object-BY3JEAdk.js","utils-Dsq-HLeF.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CEYfmkoV.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CHgPjMM8.js","_Uint8Array-IXRJ_ueo.js","isObject-FP1Yky1u.js","ApiExamples-pq4ns9YA.js","usePlaygroundInputsStore-D-gnigmo.js","shallow-DIfWGPrf.js","isEqual-DDFuixlH.js","CodeSnippets-8g5rilZj.js","CodeSnippet-C_J7pouP.js","use-playground-group-access-bkOyfPao.js","Page-B_smDgrp.js","api-description-markdown-DtcP2u3s.js","DynamicMarkdown-DOefW1_8.js","SectionHeading-Cg4lfWZw.js","MethodPill-BnqygvYm.js","getPastedJson-BGXYEZ3P.js","Check2Icon-BBeO3TOS.js","axios-CsQoIw0U.js"]}