Allows you to set parameters when registering a sentence-transformers object.
Sentence transformer embeddings are normalized by default. It is recommended to use normalized embeddings for similarity search.
Setting trust_remote_code=True allows the model to execute arbitrary code from its HuggingFace repository during loading. Only enable it for repositories you trust, and pin revision to a commit hash. When a table using such a model is opened in a new process, the model must be approved with get_registry().allow_remote_code(...). See Trusting remote code and custom endpoints.
Parameter
Type
Default Value
Description
name
str
all-MiniLM-L6-v2
The name of the model
device
str
cpu
The device to run the model on (can be cpu or gpu)
normalize
bool
True
Whether to normalize the input text before feeding it to the model
trust_remote_code
bool
False
Whether to trust and execute remote code from the model’s HuggingFace repository
revision
str
None
The model revision to load, such as a commit hash
You can also load many other model architectures from the library. For example models from sources such as BAAI, Nomic, Salesforce Research, etc. See this HF hub page for all supported models.
Here is an example that uses the BAAI embedding model from the HuggingFace Hub supported models.
Visit the sentence-transformers HuggingFace Hub page for more information on the available models.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"LanceDB","colors":{"primary":"#FF6B35","light":"#FF8A5C","dark":"#E55A2B"},"logo":{"light":"https://mintcdn.com/lancedb-bcbb4faf/6L0IRVkfdlgMU1Pw/static/assets/logo/dark-lancedb-logo.svg?fit=max\u0026auto=format\u0026n=6L0IRVkfdlgMU1Pw\u0026q=85\u0026s=d0592e59a29df2477080a857e13e341f","dark":"https://mintcdn.com/lancedb-bcbb4faf/t0AGunBr6LulGkIJ/static/assets/logo/light-lancedb-logo.svg?fit=max\u0026auto=format\u0026n=t0AGunBr6LulGkIJ\u0026q=85\u0026s=9b508fcb8d83cbc9bd05e57227d739e9","href":"https://lancedb.com"},"favicon":"https://mintcdn.com/lancedb-bcbb4faf/0sS6vrpmM3KSVyss/static/favicon.ico?fit=max\u0026auto=format\u0026n=0sS6vrpmM3KSVyss\u0026q=85\u0026s=84b9ea3dfc312b7a4dfc99219e229b33","appearance":{"strict":false},"background":{"color":{"light":"#FAF5F0","dark":"#000000"}},"navbar":{"links":[{"href":"https://www.lancedb.com/contact","label":"Support"}]},"footer":{"socials":{"github":"https://github.com/lancedb","linkedin":"https://www.linkedin.com/company/lancedb","x":"https://x.com/lancedb","discord":"https://discord.gg/AUEWnJ7Txb"},"links":[{"items":[{"label":"Cookie settings","href":"#cookie-settings"}]}]},"fonts":{"family":"Inter"},"styling":{"codeblocks":{"theme":{"light":"vitesse-light","dark":"catppuccin-mocha"}},"latex":true},"integrations":{"ga4":{"measurementId":"G-1TMC2PR69E"}},"banner":{"content":"[From the Reverie stage to your screen. Recordings coming soon.](https://www.reveriesummit.com/?utm_campaign=reverie-2026\u0026utm_content=docs\u0026utm_medium=lancedb\u0026utm_source=banner)","dismissible":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"lancedb-bcbb4faf","hasAudioNarration":false,"actualSubdomain":"lancedb-bcbb4faf","customDomains":["docs.lancedb.com"],"gitSource":{"type":"github","owner":"lancedb","repo":"docs","deployBranch":"assembled","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6af512fe0902081a53d8698c"},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af512fe0902081a53d86992","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Documentation","count":366},{"language":"default","tag":"Enterprise","count":340},{"language":"default","tag":"Embedded","count":340},{"language":"default","tag":"API Reference","count":110},{"language":"default","tag":"REST API","count":110},{"language":"default","tag":"Feature Engineering","count":90},{"language":"default","tag":"Table","count":88},{"language":"default","tag":"Integrations","count":84},{"language":"default","tag":"SQL Reference","count":80},{"language":"default","tag":"Geneva","count":68}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"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":"editor-metadata","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}],"googleFontsInlined":false},"customCss":[{"filePath":"static/styles/style.css","content":":root{--banner-left: #e4d8f8;--banner-right: #e55a2b}@font-face{font-family:\"LanceDB KaTeX AMS\";src:url(\"https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/fonts/KaTeX_AMS-Regular.woff2\") format(\"woff2\");font-display:swap;font-style:normal;font-weight:400}.katex .mathbb,.katex .textbb{font-family:\"LanceDB KaTeX AMS\", \"KaTeX_AMS\", serif!important}#banner,:where(.banner,[data-banner],[class*=\"Banner_banner\"]){background:linear-gradient(90deg, var(--banner-left) 0%, var(--banner-right) 100%)!important;color:#1b0f09!important;border:none!important}#banner a,:where(.banner,[data-banner],[class*=\"Banner_banner\"]) a{color:#1b0f09!important;font-size:0.9rem;font-weight:500;text-decoration-color:rgba(27, 15, 9, 0.35)}#banner button,:where(.banner,[data-banner],[class*=\"Banner_banner\"]) button{color:#1b0f09!important}"}],"page":{"pagePath":"oss/v0-41-0/integrations/embedding/sentence-transformers","slug":"/oss/v0-41-0/integrations/embedding/sentence-transformers","pageMetadata":{"title":"Sentence Transformers","sidebarTitle":"Sentence Transformers","description":null,"href":"/oss/v0-41-0/integrations/embedding/sentence-transformers"},"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={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Info,Note,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Allows you to set parameters when registering a `,_jsx(_components.code,{children:`sentence-transformers`}),` object.`]}),`\n`,_jsx(Info,{children:_jsx(_components.p,{children:`Sentence transformer embeddings are normalized by default. It is recommended to use normalized embeddings for similarity search.`})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Setting `,_jsx(_components.code,{children:`trust_remote_code=True`}),` allows the model to execute arbitrary code from its HuggingFace repository during loading. Only enable it for repositories you trust, and pin `,_jsx(_components.code,{children:`revision`}),` to a commit hash. When a table using such a model is opened in a new process, the model must be approved with `,_jsx(_components.code,{children:`get_registry().allow_remote_code(...)`}),`. See `,_jsx(_components.a,{href:`/oss/v0-41-0/embedding#trusting-remote-code-and-custom-endpoints`,children:`Trusting remote code and custom endpoints`}),`.`]})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Default Value`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`str`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`all-MiniLM-L6-v2`})}),_jsx(_components.td,{children:`The name of the model`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`device`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`str`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`cpu`})}),_jsxs(_components.td,{children:[`The device to run the model on (can be `,_jsx(_components.code,{children:`cpu`}),` or `,_jsx(_components.code,{children:`gpu`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`normalize`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bool`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`True`})}),_jsx(_components.td,{children:`Whether to normalize the input text before feeding it to the model`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trust_remote_code`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`bool`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`False`})}),_jsx(_components.td,{children:`Whether to trust and execute remote code from the model’s HuggingFace repository`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`revision`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`str`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`None`})}),_jsx(_components.td,{children:`The model revision to load, such as a commit hash`})]})]})]}),`\n`,`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`You can also load many other model architectures from the library. For example models from sources such as BAAI, Nomic, Salesforce Research, etc. See this HF hub page for all `,_jsx(_components.a,{href:`https://huggingface.co/models?library=sentence-transformers`,children:`supported models`}),`.`]})}),`\n`,_jsxs(Note,{title:`BAAI embeddings example`,children:[_jsxs(_components.p,{children:[`Here is an example that uses the BAAI embedding model from the HuggingFace Hub `,_jsx(_components.a,{href:`https://huggingface.co/models?library=sentence-transformers`,children:`supported models`}),`.`]}),_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`Python`,icon:`python`,numberOfLines:`29`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes vitesse-light catppuccin-mocha`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#1e1e2e`,color:`#393a34`,\"--shiki-dark\":`#cdd6f4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`29`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1E754F`,\"--shiki-dark\":`#CBA6F7`},children:`import`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` tempfile`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1E754F`,\"--shiki-dark\":`#CBA6F7`},children:`from`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` pathlib `}),_jsx(_components.span,{style:{color:`#1E754F`,\"--shiki-dark\":`#CBA6F7`},children:`import`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` Path`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1E754F`,\"--shiki-dark\":`#CBA6F7`},children:`import`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` lancedb`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1E754F`,\"--shiki-dark\":`#CBA6F7`},children:`from`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` lancedb`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`.`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:`embeddings `}),_jsx(_components.span,{style:{color:`#1E754F`,\"--shiki-dark\":`#CBA6F7`},children:`import`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` get_registry`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1E754F`,\"--shiki-dark\":`#CBA6F7`},children:`from`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` lancedb`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`.`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:`pydantic `}),_jsx(_components.span,{style:{color:`#1E754F`,\"--shiki-dark\":`#CBA6F7`},children:`import`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` LanceModel`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`,`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` Vector`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:`db `}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#94E2D5`},children:`=`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` lancedb`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`.`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#89B4FA`},children:`connect`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`(`}),_jsx(_components.span,{style:{color:`#998418`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#CBA6F7`,\"--shiki-dark-font-style\":`italic`},children:`str`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`(`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#89B4FA`},children:`Path`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`(`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:`tempfile`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`.`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#89B4FA`},children:`mkdtemp`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`())`}),_jsx(_components.span,{style:{color:`#AB5959`,\"--shiki-dark\":`#94E2D5`},children:` /`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:` \"`}),_jsx(_components.span,{style:{color:`#B56959`,\"--shiki-dark\":`#A6E3A1`},children:`sentence-transformers`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`))`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:`model `}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#94E2D5`},children:`=`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#89B4FA`},children:` get_registry`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:` .`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#89B4FA`},children:`get`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`(`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`}),_jsx(_components.span,{style:{color:`#B56959`,\"--shiki-dark\":`#A6E3A1`},children:`sentence-transformers`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:` .`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#89B4FA`},children:`create`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`(`}),_jsx(_components.span,{style:{color:`#B07D48`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#EBA0AC`,\"--shiki-dark-font-style\":`italic`},children:`name`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#94E2D5`},children:`=`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`}),_jsx(_components.span,{style:{color:`#B56959`,\"--shiki-dark\":`#A6E3A1`},children:`BAAI/bge-small-en-v1.5`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`,`}),_jsx(_components.span,{style:{color:`#B07D48`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#EBA0AC`,\"--shiki-dark-font-style\":`italic`},children:` device`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#94E2D5`},children:`=`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`}),_jsx(_components.span,{style:{color:`#B56959`,\"--shiki-dark\":`#A6E3A1`},children:`cpu`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#AB5959`,\"--shiki-dark\":`#CBA6F7`},children:`class`}),_jsx(_components.span,{style:{color:`#2E8F82`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#F9E2AF`,\"--shiki-dark-font-style\":`italic`},children:` Words`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`(`}),_jsx(_components.span,{style:{color:`#59873A`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#F9E2AF`,\"--shiki-dark-font-style\":`italic`},children:`LanceModel`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` text`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`:`}),_jsx(_components.span,{style:{color:`#998418`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#CBA6F7`,\"--shiki-dark-font-style\":`italic`},children:` str`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#94E2D5`},children:` =`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` model`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`.`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#89B4FA`},children:`SourceField`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` vector`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`:`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#89B4FA`},children:` Vector`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`(`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:`model`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`.`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#89B4FA`},children:`ndims`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`())`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#94E2D5`},children:` =`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` model`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`.`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#89B4FA`},children:`VectorField`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:`table `}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#94E2D5`},children:`=`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` db`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`.`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#89B4FA`},children:`create_table`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`(`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`}),_jsx(_components.span,{style:{color:`#B56959`,\"--shiki-dark\":`#A6E3A1`},children:`words`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`,`}),_jsx(_components.span,{style:{color:`#B07D48`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#EBA0AC`,\"--shiki-dark-font-style\":`italic`},children:` schema`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#94E2D5`},children:`=`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:`Words`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:`table`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`.`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#89B4FA`},children:`add`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:` [`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:` {`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`}),_jsx(_components.span,{style:{color:`#B56959`,\"--shiki-dark\":`#A6E3A1`},children:`text`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`:`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:` \"`}),_jsx(_components.span,{style:{color:`#B56959`,\"--shiki-dark\":`#A6E3A1`},children:`hello world`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:` {`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`}),_jsx(_components.span,{style:{color:`#B56959`,\"--shiki-dark\":`#A6E3A1`},children:`text`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`:`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:` \"`}),_jsx(_components.span,{style:{color:`#B56959`,\"--shiki-dark\":`#A6E3A1`},children:`goodbye world`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:`query `}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#94E2D5`},children:`=`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:` \"`}),_jsx(_components.span,{style:{color:`#B56959`,\"--shiki-dark\":`#A6E3A1`},children:`greetings`}),_jsx(_components.span,{style:{color:`#B5695977`,\"--shiki-dark\":`#A6E3A1`},children:`\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:`actual `}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#94E2D5`},children:`=`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:` table`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`.`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#89B4FA`},children:`search`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`(`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:`query`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`).`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#89B4FA`},children:`limit`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`(`}),_jsx(_components.span,{style:{color:`#2F798A`,\"--shiki-dark\":`#FAB387`},children:`1`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`).`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#89B4FA`},children:`to_pydantic`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`(`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:`Words`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`)[`}),_jsx(_components.span,{style:{color:`#2F798A`,\"--shiki-dark\":`#FAB387`},children:`0`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#998418`,\"--shiki-light-font-style\":`inherit`,\"--shiki-dark\":`#FAB387`,\"--shiki-dark-font-style\":`italic`},children:`print`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`(`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:`actual`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`.`}),_jsx(_components.span,{style:{color:`#393A34`,\"--shiki-dark\":`#CDD6F4`},children:`text`}),_jsx(_components.span,{style:{color:`#999999`,\"--shiki-dark\":`#9399B2`},children:`)`})]}),`\n`]})})})})]}),`\n`,_jsxs(_components.p,{children:[`Visit the sentence-transformers `,_jsx(_components.a,{href:`https://huggingface.co/sentence-transformers`,children:`HuggingFace Hub`}),` page for more information on the available models.`]})]})}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":{"codeStyling":{"theme":{"light":"vitesse-light","dark":"catppuccin-mocha"}},"config":{},"pageMetadata":{"title":"Sentence Transformers","sidebarTitle":"Sentence Transformers","description":null,"href":"/oss/v0-41-0/integrations/embedding/sentence-transformers"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/lancedb-bcbb4faf/71b64c20a8f631b3/static/scripts/cookie-consent.js"],"subdomain":"lancedb-bcbb4faf","siteName":"LanceDB","title":"Sentence Transformers - LanceDB","navMaps":{"firstHrefInVersion":{"1.12.0":{"href":"/enterprise/v1-12-0","matchLevel":4},"0.41.0":{"href":"/oss/v0-41-0/integrations/embedding/sentence-transformers","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-11-12T01:15:00.466Z","originalFileLocation":"oss/v0-41-0/integrations/embedding/sentence-transformers.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=\"application-name\" content=\"LanceDB\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/lancedb-bcbb4faf/AJCI1CXWoYDPZbb4/_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/lancedb-bcbb4faf/AJCI1CXWoYDPZbb4/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/lancedb-bcbb4faf/AJCI1CXWoYDPZbb4/_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/lancedb-bcbb4faf/AJCI1CXWoYDPZbb4/_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/lancedb-bcbb4faf/AJCI1CXWoYDPZbb4/_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/lancedb-bcbb4faf/AJCI1CXWoYDPZbb4/_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/lancedb-bcbb4faf/AJCI1CXWoYDPZbb4/_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/lancedb-bcbb4faf/AJCI1CXWoYDPZbb4/_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/lancedb-bcbb4faf/AJCI1CXWoYDPZbb4/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Sentence Transformers - LanceDB\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"LanceDB\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.lancedb.com/oss/v0-41-0/integrations/embedding/sentence-transformers\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://lancedb-bcbb4faf.mintlify.site/_mintlify/api/og/v2?division=Embedding+Providers\u0026amp;title=Sentence+Transformers\u0026amp;theme=9d8045ca9469df4ceece463f\u0026amp;signature=bc61f0084e9a5794cc1db94f556be596e647273ad2ae68780354a6971326e0a2\">\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=\"Sentence Transformers - LanceDB\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://lancedb-bcbb4faf.mintlify.site/_mintlify/api/og/v2?division=Embedding+Providers\u0026amp;title=Sentence+Transformers\u0026amp;theme=9d8045ca9469df4ceece463f\u0026amp;signature=bc61f0084e9a5794cc1db94f556be596e647273ad2ae68780354a6971326e0a2\">\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/lancedb-bcbb4faf/AJCI1CXWoYDPZbb4/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"LanceDB\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FF6B35\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.lancedb.com/oss/v0-41-0/integrations/embedding/sentence-transformers\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/oss/v0-41-0/integrations/embedding/sentence-transformers.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.lancedb.com/#organization\",\"name\":\"LanceDB\",\"url\":\"https://docs.lancedb.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/lancedb-bcbb4faf/6L0IRVkfdlgMU1Pw/static/assets/logo/dark-lancedb-logo.svg?fit=max\u0026auto=format\u0026n=6L0IRVkfdlgMU1Pw\u0026q=85\u0026s=d0592e59a29df2477080a857e13e341f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.lancedb.com#website\",\"name\":\"LanceDB\",\"url\":\"https://docs.lancedb.com\",\"publisher\":{\"@id\":\"https://docs.lancedb.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.lancedb.com/oss/v0-41-0/integrations/embedding/sentence-transformers#webpage\",\"url\":\"https://docs.lancedb.com/oss/v0-41-0/integrations/embedding/sentence-transformers\",\"name\":\"Sentence Transformers\",\"dateModified\":\"2026-11-12T01:15:00.466Z\",\"isPartOf\":{\"@id\":\"https://docs.lancedb.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.lancedb.com/oss/v0-41-0/integrations/embedding/sentence-transformers#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.lancedb.com/oss/v0-41-0/integrations/embedding/sentence-transformers#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Embedding Providers\",\"item\":\"https://docs.lancedb.com/oss/v0-41-0/integrations/embedding/huggingface\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sentence Transformers\",\"item\":\"https://docs.lancedb.com/oss/v0-41-0/integrations/embedding/sentence-transformers\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.lancedb.com/oss/v0-41-0/integrations/embedding/sentence-transformers#article\",\"headline\":\"Sentence Transformers\",\"name\":\"Sentence Transformers\",\"url\":\"https://docs.lancedb.com/oss/v0-41-0/integrations/embedding/sentence-transformers\",\"mainEntityOfPage\":{\"@id\":\"https://docs.lancedb.com/oss/v0-41-0/integrations/embedding/sentence-transformers#webpage\"},\"dateModified\":\"2026-11-12T01:15:00.466Z\",\"publisher\":{\"@id\":\"https://docs.lancedb.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.lancedb.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"LanceDB\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"LanceDB\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/oss/v0-41-0/integrations/embedding/sentence-transformers.md","siteName":"LanceDB","nav":{"global":null,"products":[{"product":"Enterprise","icon":"server","description":"Multimodal lakehouse","pages":[{"title":"Enterprise","href":"/enterprise/v1-12-0"}]},{"product":"Embedded","icon":"database","description":"Open-source library","versions":[{"version":"0.41.0","default":true,"tag":"Latest","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/oss/v0-41-0"}]},{"tab":"Integrations","pages":[{"title":"Integrations","sidebarTitle":"Overview","href":"/oss/v0-41-0/integrations"},{"group":"Embedding Registry","pages":[{"title":"Managing Embeddings","sidebarTitle":"Managing Embeddings","icon":"bars","href":"/oss/v0-41-0/embedding/index"},{"title":"Embeddings: Quickstart","sidebarTitle":"Quickstart","icon":"rocket","href":"/oss/v0-41-0/embedding/quickstart"}]},{"group":"Embedding Providers","pages":[{"title":"HuggingFace","sidebarTitle":"HuggingFace","href":"/oss/v0-41-0/integrations/embedding/huggingface"},{"title":"AWS Bedrock","sidebarTitle":"AWS","href":"/oss/v0-41-0/integrations/embedding/aws"},{"title":"Cohere","sidebarTitle":"Cohere","href":"/oss/v0-41-0/integrations/embedding/cohere"},{"title":"ColPali","sidebarTitle":"ColPali","href":"/oss/v0-41-0/integrations/embedding/colpali"},{"title":"Gemini","sidebarTitle":"Gemini","href":"/oss/v0-41-0/integrations/embedding/gemini"},{"title":"IBM watsonx","sidebarTitle":"IBM WatsonX","href":"/oss/v0-41-0/integrations/embedding/ibm"},{"title":"ImageBind","sidebarTitle":"ImageBind","href":"/oss/v0-41-0/integrations/embedding/imagebind"},{"title":"Instructor","sidebarTitle":"Instructor","href":"/oss/v0-41-0/integrations/embedding/instructor"},{"title":"Jina","sidebarTitle":"Jina","href":"/oss/v0-41-0/integrations/embedding/jina"},{"title":"NVIDIA Nemotron","sidebarTitle":"NVIDIA","href":"/oss/v0-41-0/integrations/embedding/nvidia"},{"title":"Ollama","sidebarTitle":"Ollama","href":"/oss/v0-41-0/integrations/embedding/ollama"},{"title":"OpenAI","sidebarTitle":"OpenAI","href":"/oss/v0-41-0/integrations/embedding/openai"},{"title":"OpenCLIP","sidebarTitle":"OpenCLIP","description":null,"href":"/oss/v0-41-0/integrations/embedding/openclip"},{"title":"Sentence Transformers","sidebarTitle":"Sentence Transformers","href":"/oss/v0-41-0/integrations/embedding/sentence-transformers"},{"title":"Voyage AI","sidebarTitle":"Voyage AI","description":null,"href":"/oss/v0-41-0/integrations/embedding/voyageai"},{"title":"Superlinked","sidebarTitle":"Superlinked","href":"/oss/v0-41-0/integrations/embedding/superlinked"}]},{"group":"Rerankers","pages":[{"title":"Answer.AI Rerankers","sidebarTitle":"Answer.AI","href":"/oss/v0-41-0/integrations/reranking/answerdotai"},{"title":"Cohere Reranker","sidebarTitle":"Cohere","href":"/oss/v0-41-0/integrations/reranking/cohere"},{"title":"ColBERT Reranker","sidebarTitle":"ColBERT","href":"/oss/v0-41-0/integrations/reranking/colbert"},{"title":"Jina Reranker","sidebarTitle":"Jina AI","href":"/oss/v0-41-0/integrations/reranking/jina"},{"title":"OpenAI Reranker (Experimental)","sidebarTitle":"OpenAI","href":"/oss/v0-41-0/integrations/reranking/openai"},{"title":"Voyage AI Reranker","sidebarTitle":"Voyage AI","href":"/oss/v0-41-0/integrations/reranking/voyageai"},{"title":"Watsonx Reranker","sidebarTitle":"IBM watsonx.ai","href":"/oss/v0-41-0/integrations/reranking/watsonx"}]},{"group":"Data Platforms \u0026 Frameworks","expanded":true,"pages":[{"title":"Pydantic","sidebarTitle":"Pydantic","href":"/oss/v0-41-0/integrations/data/pydantic"},{"title":"DuckDB","sidebarTitle":"DuckDB","href":"/oss/v0-41-0/integrations/data/duckdb"},{"title":"Pandas and PyArrow","sidebarTitle":"Pandas \u0026 PyArrow","href":"/oss/v0-41-0/integrations/data/pandas_and_pyarrow"},{"title":"Polars","sidebarTitle":"Polars \u0026 Arrow","href":"/oss/v0-41-0/integrations/data/polars_arrow"},{"title":"dlt","sidebarTitle":"DLT","href":"/oss/v0-41-0/integrations/data/dlt"},{"title":"Voxel51","sidebarTitle":"Voxel51","href":"/oss/v0-41-0/integrations/data/voxel51"}]},{"group":"AI Platforms \u0026 Frameworks","expanded":true,"pages":[{"title":"Agno","sidebarTitle":"Agno","href":"/oss/v0-41-0/integrations/ai/agno"},{"title":"Hermes Agent","sidebarTitle":"Hermes Agent","href":"/oss/v0-41-0/integrations/ai/hermes-agent"},{"title":"HuggingFace Hub","sidebarTitle":"HuggingFace","href":"/oss/v0-41-0/integrations/ai/huggingface"},{"title":"LangChain","sidebarTitle":"LangChain","href":"/oss/v0-41-0/integrations/ai/langchain"},{"title":"LlamaIndex","sidebarTitle":"LlamaIndex","href":"/oss/v0-41-0/integrations/ai/llamaIndex"},{"title":"GenKit","sidebarTitle":"GenKit","href":"/oss/v0-41-0/integrations/ai/genkit"},{"title":"Kiln AI","sidebarTitle":"Kiln","href":"/oss/v0-41-0/integrations/ai/kiln"},{"title":"PromptTools","sidebarTitle":"PromptTools","href":"/oss/v0-41-0/integrations/ai/prompttools"},{"title":"Meta Llama Synthetic Data Kit","sidebarTitle":"Synthetic Data Kit","href":"/oss/v0-41-0/integrations/ai/synthetic-data-kit"},{"title":"VS Code extensions","sidebarTitle":"VS Code","href":"/oss/v0-41-0/integrations/ai/vscode"}]}]},{"tab":"Tutorials","pages":[{"title":"Tutorials","href":"/oss/v0-41-0/tutorials"}]},{"tab":"Demos","pages":[{"title":"Demos","href":"/oss/v0-41-0/demos"}]},{"tab":"Datasets","pages":[{"title":"Datasets","href":"/oss/v0-41-0/datasets"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/oss/v0-41-0/api-reference/rest"}]}]}]}]},"basePath":"","title":"Sentence Transformers - LanceDB","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["10e4515597"],"chunks":["BannerMarkdown-DV3Oq1fY.js","dist-C-XZBk9h.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-D3Isdib3.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js"]}