[vectordb](../README.md) / [Exports](../modules.md) / MetricType

# Enumeration: MetricType

Distance metrics type.

## Table of contents

### Enumeration Members

- [Cosine](MetricType.md#cosine)
- [Dot](MetricType.md#dot)
- [L2](MetricType.md#l2)

## Enumeration Members

### Cosine

• **Cosine** = ``"cosine"``

Cosine distance

#### Defined in

[index.ts:1041](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L1041)

___

### Dot

• **Dot** = ``"dot"``

Dot product

#### Defined in

[index.ts:1046](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L1046)

___

### L2

• **L2** = ``"l2"``

Euclidean distance

#### Defined in

[index.ts:1036](https://github.com/lancedb/lancedb/blob/c89d5e6/node/src/index.ts#L1036)
