Skip to main content

Knowledge Base Retrieval Document

POST 

/v1/knowledge/search

Supports retrieving the most similar text information by specifying a file name. Supports retrieving the most similar text information using a file name combined with a Filter expression for scalar fields of file metadata. Supports retrieving the most similar text information using only a Filter expression for scalar fields of file metadata.

Request

Body

    collectionView Knowledge Base ID (string)
    search object
    content Search Content (string)
    documentSetName File Name to Search (string)[]
    options object
    chunkExpand Chunk Expansion Length (integer)[]
    filter Filter Index (string)
    limit Top K Value (integer)

Responses

Successful.

Schema
    oneOf
    data object
    documents object[]
  • Array [
  • score float
    data object
    text Document Content (string)
    startPos int32
    endPos int32
    pre Preceding Content of Match (string)[]
    next Following Content of Match (string)[]
    paragraphTitle Matched Paragraph Title (string)
    allParentParagraphTitles All Parent Paragraph Titles of the Match (string)[]
    documentSet object
    documentSetId Document Set ID (string)
    documentSetName Document Set Name (string)
    author Document Set Author (string)
    fileTitle Document Set Title (string)
    fileMetaData Document Set Metadata (string)
  • ]
  • requestId Request Unique ID (string)
Loading...