> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tokensmind.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# ChatGPT嵌入（Embeddings）

## [嵌入](https://platform.openai.com/docs/api-reference/embeddings)

获取给定输入的向量表示，机器学习模型和算法可以轻松使用该表示。

相关指南：[嵌入](https://platform.openai.com/docs/guides/embeddings)

## [嵌入对象](https://platform.openai.com/docs/api-reference/embeddings/object)

表示嵌入端点返回的嵌入向量。

index/integer

嵌入列表中嵌入的索引。

embedding/array

嵌入向量，它是浮点数列表。矢量的长度取决于[嵌入指南](https://platform.openai.com/docs/guides/embeddings)中列出的模型。

object/string
对象类型，始终是“嵌入”。

```JSON theme={null}
{
  "object": "embedding",
  "embedding": [
    0.0023064255,
    -0.009327292,
    .... (1536 floats total for ada-002)
    -0.0028842222,
  ],
  "index": 0
}
```
