# TitanTakeoffEmbed

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/embeddings/titan_takeoff/TitanTakeoffEmbed)

Interface with Takeoff Inference API for embedding models.

Use it to send embedding requests and to deploy embedding
readers with Takeoff.

## Signature

```python
TitanTakeoffEmbed(
    self,
    base_url: str = 'http://localhost',
    port: int = 3000,
    mgmt_port: int = 3001,
    models: List[ReaderConfig] = [],
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `base_url` | `str` | No | The base url where Takeoff Inference Server is (default: `'http://localhost'`) |
| `listening. Defaults to "http` | `unknown` | Yes | //localhost". |
| `port` | `int` | No | What port is Takeoff Inference API listening on. (default: `3000`) |
| `mgmt_port` | `int` | No | What port is Takeoff Management API listening on. (default: `3001`) |
| `models` | `List[ReaderConfig]` | No | Any readers you'd like to spin up on. (default: `[]`) |

## Extends

- `Embeddings`

## Constructors

```python
__init__(
    self,
    base_url: str = 'http://localhost',
    port: int = 3000,
    mgmt_port: int = 3001,
    models: List[ReaderConfig] = [],
)
```

| Name | Type |
|------|------|
| `base_url` | `str` |
| `port` | `int` |
| `mgmt_port` | `int` |
| `models` | `List[ReaderConfig]` |


## Properties

- `base_url`
- `port`
- `mgmt_port`
- `client`
- `embed_consumer_groups`

## Methods

- [`embed_documents()`](https://reference.langchain.com/python/langchain-community/embeddings/titan_takeoff/TitanTakeoffEmbed/embed_documents)
- [`embed_query()`](https://reference.langchain.com/python/langchain-community/embeddings/titan_takeoff/TitanTakeoffEmbed/embed_query)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/4b280287bd55b99b44db2dd849f02d66c89534d5/libs/community/langchain_community/embeddings/titan_takeoff.py#L41)