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
- application/json
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
- 200
Successful.
- application/json
- Schema
- Example (from schema)
Schema
- SearchDocSetRsp
- ErrorResponse
- Array [
- ]
oneOf
data object
documents object[]
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)
code Error Code (string)
message Error Message (string)
requestId Request Unique ID (string)
{}
Loading...