消息

搜索历史对话

Changed on

通过关键词和/或向量相似度搜索历史对话记录,支持关键词、向量、混合三种模式

post/messages/search

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/messages/search
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Request body

limitinteger

Maximum number of results to return (default: 20)

modestring

Search mode: "keyword", "vector", "hybrid" (default: "hybrid")

querystring required

Query text for search

session_idsstring[]

Filter by specific session IDs (optional)

Response

搜索结果

successboolean

Example response

{
  "success": true
}

Changes