---
title: fastembed_extensions | CodeWeaver Docs
description: API reference for codeweaver.providers.embedding.fastembed_extensions
url: "https://docs.knitli.com/api/providers/embedding/fastembed_extensions"
type: static
generatedAt: "2026-04-17T17:21:09.051Z"
---

# fastembed_extensions
       [Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fembedding%2Ffastembed_extensions%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fembedding%2Ffastembed_extensions%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[View in Markdown](/codeweaver/api/providers/embedding/fastembed_extensions.md)       [Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fembedding%2Ffastembed_extensions%2F)[Share on X](https://x.com/intent/tweet?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fembedding%2Ffastembed_extensions%2F&text=fastembed_extensions)[Share on Threads](https://threads.net/intent/post?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fembedding%2Ffastembed_extensions%2F&text=fastembed_extensions)[Share on Bluesky](https://bsky.app/intent/compose?text=fastembed_extensions%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fembedding%2Ffastembed_extensions%2F)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fembedding%2Ffastembed_extensions%2F)[Share on Reddit](https://reddit.com/submit?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fembedding%2Ffastembed_extensions%2F&title=fastembed_extensions)[Share on Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fembedding%2Ffastembed_extensions%2F&t=fastembed_extensions)[Share on Email](mailto:?subject=fastembed_extensions&body=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fembedding%2Ffastembed_extensions%2F)[Share on WhatsApp](https://wa.me/?text=fastembed_extensions%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fembedding%2Ffastembed_extensions%2F)[Share on Telegram](https://t.me/share/url?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fembedding%2Ffastembed_extensions%2F&text=fastembed_extensions)
# `codeweaver.providers.embedding.fastembed_extensions`
[Section titled “codeweaver.providers.embedding.fastembed_extensions”](#codeweaverprovidersembeddingfastembed_extensions)
Some added models for fastembed provider to modernize the offerings a bit.

## Function: `add_models`
[Section titled “Function: add_models”](#function-add_models)

**

```
add_models()
```

Add custom models to the input cls.

Models are added to the *class*; the function returns the input class, not an instance.

## Function: `get_cross_encoder`
[Section titled “Function: get_cross_encoder”](#function-get_cross_encoder)

**

```
get_cross_encoder()
```

Get the cross encoder with added custom models.

## Function: `get_sparse_embedder`
[Section titled “Function: get_sparse_embedder”](#function-get_sparse_embedder)

**

```
get_sparse_embedder()
```

Get the sparse embedder with added custom models.

TODO: Temporarily disabled until we can work out the bugs on added sparse models in FastEmbed.

## Function: `get_text_embedder`
[Section titled “Function: get_text_embedder”](#function-get_text_embedder)

**

```
get_text_embedder()
```

Get the text embedder with added custom models.

Only adds models that aren’t already in FastEmbed’s native registry to avoid conflicts.