SearchContext
Searches the context.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:SearchContext |
list |
*ContextStore
|
None | None |
Request syntax
POST /workspace/{workspace}/contextstore/{contextStoreName}/context/search HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspace |
string |
Yes |
The workspace ID. |
workspace-test |
| contextStoreName |
string |
Yes |
The context store name. |
test-context-store |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| query |
string |
Yes |
The query content. |
How is the cost for consuming SLS logs in Flink calculated? |
| formatted |
boolean |
No |
Specifies whether to format the output. |
true |
| filter |
object |
No |
The filter conditions. |
{"metadata.serviceName":"sls-sop-daily","metadata.taskType":{"in":["troubleshooting","knowledge_retrieval"]}} |
|
any |
No |
The filter conditions. |
{ "metadata.serviceName": "sls-sop-daily", "metadata.taskType": { "in": ["troubleshooting", "knowledge_retrieval"] } |
|
| limit |
integer |
No |
The maximum number of results to return. |
100 |
| threshold |
number |
No |
The similarity threshold. |
0.3 |
| retrievalOption |
string |
No |
The retrieval options. |
reranker,llm_rank |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| requestId |
string |
The request ID. |
123-0F43-23423-AC43-34234 |
| results |
array<object> |
The results. |
|
|
object |
The results. |
{"key":"{}"} |
|
|
any |
The return value. |
{} |
Examples
Success response
JSON format
{
"requestId": "123-0F43-23423-AC43-34234",
"results": [
{
"key": "{}"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.