Azure.Search (preview:2025-05-01)

2025/04/30 • 1 updated methods

KnowledgeRetrieval_Retrieve (updated)
Description KnowledgeAgent retrieves relevant data from backing stores.
Reference Link ¶

⚶ Changes

{
  "#id": "KnowledgeRetrieval_Retrieve",
  "$parameters": {
    "@added_4cdcdde15a20473c831c5522f96ab4d8": {
      "#name": "x-ms-query-source-authorization",
      "Description": "Token identifying the user for which the query is being executed. This token is used to enforce security restrictions on documents.",
      "Required": false,
      "Type": "string"
    }
  }
}

⚼ Request

POST:  /retrieve
{
retrievalRequest:
{
messages:
[
{
role: string ,
content:
[
{
type: enum ,
}
,
]
,
}
,
]
,
targetIndexParams:
[
{
indexName: string ,
filterAddOn: string ,
maxDocsForReranker: integer ,
rerankerThreshold: number ,
includeReferenceSourceData: boolean ,
}
,
]
,
}
,
x-ms-client-request-id: string ,
api-version: string ,
x-ms-query-source-authorization: string ,
}

⚐ Response (200)

{
response:
[
{
role: string ,
content:
[
{
type: enum ,
}
,
]
,
}
,
]
,
activity:
[
{
id: integer ,
type: string ,
}
,
]
,
references:
[
{
type: string ,
id: string ,
activitySource: integer ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}