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

# types
       [Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Ftypes%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%2Fconfig%2Ftypes%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[View in Markdown](/codeweaver/api/providers/config/types.md)       [Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Ftypes%2F)[Share on X](https://x.com/intent/tweet?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Ftypes%2F&text=types)[Share on Threads](https://threads.net/intent/post?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Ftypes%2F&text=types)[Share on Bluesky](https://bsky.app/intent/compose?text=types%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Ftypes%2F)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Ftypes%2F)[Share on Reddit](https://reddit.com/submit?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Ftypes%2F&title=types)[Share on Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Ftypes%2F&t=types)[Share on Email](mailto:?subject=types&body=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Ftypes%2F)[Share on WhatsApp](https://wa.me/?text=types%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Ftypes%2F)[Share on Telegram](https://t.me/share/url?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Ftypes%2F&text=types)
# `codeweaver.providers.config.types`
[Section titled “codeweaver.providers.config.types”](#codeweaverprovidersconfigtypes)
Shared types for providers configurations.

## Class: `AzureOptions`
[Section titled “Class: AzureOptions”](#class-azureoptions)
Azure-specific options.

## Class: `Bm25Config`
[Section titled “Class: Bm25Config”](#class-bm25config)
CodeWeaver’s BM25 configuration for Qdrant vector store.

### Method: `serialize_for_upsert`
[Section titled “Method: serialize_for_upsert”](#method-serialize_for_upsert)

**

```
serialize_for_upsert()
```

Serialize the BM25 config for Qdrant upsert, updating avg_len.

## Class: `CohereRequestOptionsDict`
[Section titled “Class: CohereRequestOptionsDict”](#class-cohererequestoptionsdict)
Additional request options for the Cohere API.

## Class: `DocumentRepr`
[Section titled “Class: DocumentRepr”](#class-documentrepr)
A shell representation of a `qdrant_client.models.Document`. Document itself requires text for embedding, and a model name, which in our case is always `Qdrant/Bm25`, but this representation only includes the fields necessary for configuration purposes.

We don’t currently allow users to set these options directly — we want to experiment and identify optimal configuration for general and specific code search use cases, so we need to control these settings internally.

### Method: `serialize_for_upsert`
[Section titled “Method: serialize_for_upsert”](#method-serialize_for_upsert-1)

**

```
serialize_for_upsert()
```

Serialize the document representations for Qdrant upsert.

## Class: `HttpxClientParams`
[Section titled “Class: HttpxClientParams”](#class-httpxclientparams)
Parameters for configuring an httpx client.

Note: Type annotations use Any to avoid httpx import at initialization. At runtime, these accept the corresponding httpx types.