向向量存儲添加新文本文檔
Last updated
Last updated
vector-store-id
字串
必填。 要將文件添加到的向量存儲的 ID。
name
字串
必填。 文件的名稱。
text
字串
必填。 文件的文本內容。
此端點需要使用 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.