Files
lancedb/docs/web/integrations/embedding/imagebind.mdx
T
Jack Ye b21fb2a4dc docs: bring the open-source documentation into this repository
The pages describing this code lived in lancedb/docs, a repository with ten
stars that neither contributing guide mentioned. A user who hit a wrong page
while reading the source had to find a separate, near-invisible repository to
fix it. These 102 pages now sit beside the code, and a documentation fix is a
pull request in the repository the reader already had open.

`docs/web` is a complete Mintlify site: `cd docs/web && mint dev` serves it with
no other checkout. Enterprise pages stay private and are merged in when the
published site is assembled, so links into them do not resolve here — every
open-source page does.

`docs/web-tests` holds the tests the code examples are extracted from. They ran
against a published wheel before; here they can run against this repository's
own SDK, so an example that stops compiling fails the pull request that broke
it rather than being noticed later.

Both directories sit beside `docs/src` and are invisible to it: mkdocs reads
`docs_dir: src`, so the SDK reference builds and deploys exactly as before.
2026-09-02 21:09:30 -07:00

55 lines
1.8 KiB
Plaintext

---
title: ImageBind
sidebarTitle: ImageBind
---
import {
PyEmbeddingImagebindSetup,
PyEmbeddingImagebindImageSearch,
PyEmbeddingImagebindAudioSearch,
PyEmbeddingImagebindTextSearch,
} from '/snippets/integrations.mdx';
We have support for [imagebind](https://github.com/facebookresearch/ImageBind) model embeddings. You can download our version of the packaged model via - `pip install imagebind-packaged==0.1.2`.
This function is registered as `imagebind` and supports Audio, Video and Text modalities(extending to Thermal,Depth,IMU data):
| Parameter | Type | Default Value | Description |
|---|---|---|---|
| `name` | `str` | `"imagebind_huge"` | Name of the model. |
| `device` | `str` | `"cpu"` | The device to run the model on. Can be `"cpu"` or `"gpu"`. |
| `normalize` | `bool` | `False` | set to `True` to normalize your inputs before model ingestion. |
Below is an example demonstrating how the API works:
<CodeGroup>
<CodeBlock filename="Python" language="Python" icon="python">
{PyEmbeddingImagebindSetup}
</CodeBlock>
</CodeGroup>
Now, we can search using any modality:
#### image search {#image-search}
<CodeGroup>
<CodeBlock filename="Python" language="Python" icon="python">
{PyEmbeddingImagebindImageSearch}
</CodeBlock>
</CodeGroup>
#### audio search {#audio-search}
<CodeGroup>
<CodeBlock filename="Python" language="Python" icon="python">
{PyEmbeddingImagebindAudioSearch}
</CodeBlock>
</CodeGroup>
#### Text search {#text-search}
You can add any input query and fetch the result as follows:
<CodeGroup>
<CodeBlock filename="Python" language="Python" icon="python">
{PyEmbeddingImagebindTextSearch}
</CodeBlock>
</CodeGroup>
If you have any questions about the embeddings API, supported models, or see a relevant model missing, please raise an issue [on GitHub](https://github.com/lancedb/lancedb/issues).