Find the k closest matching records for a given query record
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Cube AI Docs","colors":{"primary":"#4B56D2","light":"#82A0F6","dark":"#3644B5"},"favicon":"/favicon.svg","logo":{"light":"https://mintlify.s3.us-west-1.amazonaws.com/cube/logo/logo_light.png","dark":"https://mintlify.s3.us-west-1.amazonaws.com/cube/logo/logo_dark.png"},"navbar":{"links":[{"label":"Support","href":"mailto:contact@getcube.ai"}],"primary":null},"footer":{"socials":{"x":"https://x.com/getcubeai","linkedin":"https://www.linkedin.com/company/cubelogistics/"}},"navigation":{"global":{"anchors":[{"anchor":"Site","href":"https://getcube.ai","icon":"globe"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cube","hasAudioNarration":false,"actualSubdomain":"cube","customDomains":["docs.getcube.ai"],"gitSource":{"type":"github","owner":"retab-inc","repo":"mintlify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a20c619016d95c09d0e9483","collectionId":"a234e788-ea5f-4a51-b82c-5730d1c4b7bd","schemaVersion":"v2"},"entitlements":{},"buildId":"6ae922a287612784d2fcb122:success","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"default","tag":"API Reference","count":5},{"language":"default","tag":"Endpoints","count":3},{"language":"default","tag":"API Documentation","count":2},{"language":"default","tag":"Documentation","count":1},{"language":"default","tag":"Get Started","count":1}]},"assistantConfig":{},"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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":"assistant-v5","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/endpoint/sample_match","slug":"/api-reference/endpoint/sample_match","pageMetadata":{"title":"Sample Match","description":"Find the k closest matching records for a given query record","openapi":"POST /custom/sample/match","href":"/api-reference/endpoint/sample_match"},"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: \"Find the k closest matching records for a given query record\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Sample Match","description":"Find the k closest matching records for a given query record","openapi":"POST /custom/sample/match","href":"/api-reference/endpoint/sample_match"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"cube","siteName":"Cube AI Docs","title":"Sample Match - Cube AI Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/endpoint/sample_match.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=\"Find the k closest matching records for a given query record\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cube AI Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/cube/_generated/favicon/apple-touch-icon.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/cube/_generated/favicon/favicon-32x32.png?v=3\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/cube/_generated/favicon/favicon-16x16.png?v=3\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"https://mintlify.s3.us-west-1.amazonaws.com/cube/_generated/favicon/favicon.ico?v=3\">\u003cmeta data-mint-head property=\"og:title\" content=\"Sample Match - Cube AI Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Find the k closest matching records for a given query record\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cube AI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.getcube.ai/api-reference/endpoint/sample_match\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cube.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Sample+Match\u0026amp;description=Find+the+k+closest+matching+records+for+a+given+query+record\u0026amp;theme=be7d7a556947cd40c6d288d5\u0026amp;signature=3fce7a74d9827081fafa55be224c709f8fdcb27ab3478e32b5bb8abb48162c94\">\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=\"Sample Match - Cube AI Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Find the k closest matching records for a given query record\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cube.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Sample+Match\u0026amp;description=Find+the+k+closest+matching+records+for+a+given+query+record\u0026amp;theme=be7d7a556947cd40c6d288d5\u0026amp;signature=3fce7a74d9827081fafa55be224c709f8fdcb27ab3478e32b5bb8abb48162c94\">\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=\"https://mintlify.s3.us-west-1.amazonaws.com/cube/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cube AI Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4B56D2\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.getcube.ai/api-reference/endpoint/sample_match\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/sample_match.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.getcube.ai/#organization\",\"name\":\"Cube AI Docs\",\"url\":\"https://docs.getcube.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintlify.s3.us-west-1.amazonaws.com/cube/logo/logo_light.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.getcube.ai#website\",\"name\":\"Cube AI Docs\",\"url\":\"https://docs.getcube.ai\",\"publisher\":{\"@id\":\"https://docs.getcube.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.getcube.ai/api-reference/endpoint/sample_match#webpage\",\"url\":\"https://docs.getcube.ai/api-reference/endpoint/sample_match\",\"name\":\"Sample Match\",\"description\":\"Find the k closest matching records for a given query record\",\"isPartOf\":{\"@id\":\"https://docs.getcube.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.getcube.ai/api-reference/endpoint/sample_match#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.getcube.ai/api-reference/endpoint/sample_match#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.getcube.ai/api-reference/endpoint/extraction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sample Match\",\"item\":\"https://docs.getcube.ai/api-reference/endpoint/sample_match\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.getcube.ai/api-reference/endpoint/sample_match#apireference\",\"headline\":\"Sample Match\",\"name\":\"Sample Match\",\"description\":\"Find the k closest matching records for a given query record\",\"url\":\"https://docs.getcube.ai/api-reference/endpoint/sample_match\",\"mainEntityOfPage\":{\"@id\":\"https://docs.getcube.ai/api-reference/endpoint/sample_match#webpage\"},\"publisher\":{\"@id\":\"https://docs.getcube.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.getcube.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cube AI Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Cube AI Docs","nav":{"global":{"anchors":[{"anchor":"Site","href":"https://getcube.ai","icon":"globe"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":null,"href":"/api-reference/integration"}]},{"group":"Endpoints","pages":[{"title":"Extraction Endpoint","openapi":"POST /custom/sample/extractions","href":"/api-reference/endpoint/extraction"},{"title":"Sample Agencies","description":"Fetch a list of available agencies","openapi":"GET /custom/sample/agencies","href":"/api-reference/endpoint/sample_agencies"},{"title":"Sample Match","openapi":"POST /custom/sample/match","href":"/api-reference/endpoint/sample_match"}]}]}]},"basePath":"","title":"Sample Match - Cube AI Docs","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["b0f84f53ff"],"chunks":["Page-CxAy5y67.js","ApiExamples-1-a5UQKQ.js","utils-C2HkQgW0.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","cloneDeep-izs3Hzxb.js","utils-8rSppmTv.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C541m7wZ.js","shallow-CWELCZ77.js","snippetPresets-DwrSAONL.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","getApiPlaygroundDisplay-CTo5Zn03.js","CodeSnippet-D--dzvnl.js","CodeSnippets-DM3cXEDh.js","getPastedJson-C-VECgcL.js","icon-BPq2-Mg3.js","MethodPill-D9J5cUHd.js","DuplicateIcon-BqHaxUnD.js","createIcon-CIbcZHp9.js","DynamicMarkdown-BKiHAm_d.js","addUniqueKeysToSchema-B6MjiCFm.js","SectionHeading-DstQXt3H.js","axios-vUo_bRtp.js"]}