1. Search & Chat
AboAI-Doc
English
  • 中文
  • English
  • Home Page
  • AboAi-API
    • Model
      • Native OpenAI Format
      • Native Gemini Format
    • Chat
      • Native OpenAI Format
      • Native Gemini Format
      • Native Claude Format
      • Responses Request (openai)
    • Audio
      • Native OpenAI Format TTS
      • Native Gemini Format TTS
    • Images
      • Native OpenAI Format Image Generation
      • Native Gemini Format Image Generation
      • Native OpenAI Format Image Editing (JSON)
      • Native OpenAI Format Image Editing (Multipart)
    • Video
      • Seedance2.0 format
        • Create Video Generation Task
        • Query Video Generation Task Status
    • Vector
      • Embeddings
        • Create Embedding
    • Translation
      • Speech Translation
    • Knowledge
      • Knowledge Management
        • List Knowledge Bases
        • Create Knowledge Base
        • Update Knowledge Base
        • Get Knowledge Base Details
        • Delete Knowledge Base
      • Attachments
        • List Attachments
        • Upload Attachment
        • Get Attachment Status
        • Get Attachment Details
        • Delete Attachment
      • Search & Chat
        • Knowledge Search
          POST
        • RAG Chat
          POST
  • AI application
    • AboAI API Integration with Claude Code
    • AboAI API Integration with Cursor
    • AboAI API Integration with Codex-cli
    • AboAI API Integration with Codex Desktop
    • AboAI API Integration with Hermes Agent
  1. Search & Chat

Knowledge Search

POST
/v1/knowledge/search
Search a knowledge base in semantic / hybrid / keyword mode. Returns matched chunks after exact de-duplication and MMR, plus the cost of this search. No LLM is called; keyword mode does not embed the query.

Request

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200Success
application/json
Success (object returned directly, not wrapped in R)
Bodyapplication/json

🟠400Bad Request
🟠401Forbidden
🔴500Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://vipapi.aboai.ai/v1/knowledge/search' \
--header 'Authorization: Bearer {{apiKey}}' \
--header 'Content-Type: application/json' \
--data '{
    "kid": "NkD5Y4RkLGnp",
    "query": "What is new-style dining",
    "searchMode": "semantic",
    "maxResults": 5
}'
Response Response Example
200 - 成功示例
{
    "results": [
        {
            "fid": "frag_001",
            "content": "New-style dining refers to...",
            "docId": "doc_001",
            "docName": "restaurant-faq.txt",
            "score": 0.82,
            "json_style": false
        }
    ],
    "actualCost": "0.0000013",
    "currency": "USD"
}
Modified at 2026-11-04 09:19:19
Previous
Delete Attachment
Next
RAG Chat
Built with