向向量存储添加新文本文档
Last updated
Last updated
vector-store-id
字符串
必需。 要添加文档的向量存储的 ID。
name
string
必填。 文档的名称。
text
string
必填。 文档的文本内容。
此端点需要使用 x-api-key
头中的 API 密钥进行认证。
400
错误请求 - 缺少必需字段或格式无效
401
未授权 - API 密钥无效或缺失
404
未找到 - 找不到向量存储
500
内部服务器错误
此端点允许您直接将文本内容添加到您的向量存储中。它特别适用于存储可能不存在于文件格式中的信息,例如产品描述、知识库文章或自定义内容。文本将自动处理为向量嵌入,使其可以通过语义相似性进行搜索。
Create a new text document in a vector store.
The ID of the vector store.
The API key for authentication.
The name of the document.
The text content of the document.
Document created successfully.