VectorStoreFile interface
附加到向量存储的文件的说明。
属性
| chunking |
用于对文件进行分块的策略。 |
| created |
创建矢量存储文件时的 Unix 时间戳(以秒为单位)。 |
| id | 可以在 API 终结点中引用的标识符。 |
| last |
与此矢量存储文件关联的最后一个错误。 如果没有错误,则为 |
| object | 始终为 |
| status | 矢量存储文件的状态,可以是 |
| usage |
总矢量存储使用量(以字节为单位)。 请注意,这可能不同于原始文件大小。 |
| vector |
附加文件的矢量存储的 ID。 |
属性详细信息
chunkingStrategy
用于对文件进行分块的策略。
chunkingStrategy: VectorStoreChunkingStrategyResponseUnion
属性值
createdAt
创建矢量存储文件时的 Unix 时间戳(以秒为单位)。
createdAt: Date
属性值
Date
id
可以在 API 终结点中引用的标识符。
id: string
属性值
string
lastError
与此矢量存储文件关联的最后一个错误。 如果没有错误,则为 null。
lastError: null | VectorStoreFileError
属性值
null | VectorStoreFileError
object
始终为 vector_store.file 的对象类型。
object: "vector_store.file"
属性值
"vector_store.file"
status
矢量存储文件的状态,可以是 in_progress、completed、cancelled 或 failed。 状态 completed 指示矢量存储文件可供使用。
status: VectorStoreFileStatus
属性值
usageBytes
总矢量存储使用量(以字节为单位)。 请注意,这可能不同于原始文件大小。
usageBytes: number
属性值
number
vectorStoreId
附加文件的矢量存储的 ID。
vectorStoreId: string
属性值
string