Menu
Debug Retrieve Passage Alpha
Allow to debug passage(s) retrieval.
POST
/rest/search/alpha/passages/retrieve/debugUse it in a workflow
- Add a step and choose the Coveo connector.
- Pick the Debug Retrieve Passage Alpha action (under Search).
- Fill in the fields below, then reference the result from later steps as
{{debugRetrievePassageAlpha.response.data}}.
Request
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"localization": {
"locale": "en-CA",
"timezone": "America/Montreal"
},
"query": "What are the benefits of using solar energy?",
"additionalFields": [
"clickableuri"
],
"analytics": {
"capture": false,
"clientId": "string",
"userAgent": "string"
},
"context": {
"userAgeRange": "25-35",
"userRoles": [
"PremiumCustomer",
"ProductReviewer"
]
},
"filter": "@source==\"acme\"\n",
"maxPassages": 5,
"pipeline": "CustomerQueryPipeline",
"searchHub": "Main"
}
Response
Returns 200 with an object. Read it in later steps with {{debugRetrievePassageAlpha.response.data.<field>}}.
{
"firstStageRetrievalResults": [
{
"primaryid": "#AVUVKMCSIZLEYVLVMNLGQ4JQK4XDMNBQGY4C4ZDFMZQXK3DU",
"score": 460
},
{
"primaryid": "BVUVKMCSIZLEYVLVMNLGQ4JQK4XDMNBQGY4C4ZDFMZQXK3DU",
"score": 120
},
{
"primaryid": "CVUVKMCSIZLEYVLVMNLGQ4JQK4XDMNBQGY4C4ZDFMZQXK3DU",
"score": 60
}
],
"passages": [
{
"document": {
"primaryid": "bDMzdA",
"title": "The Benefits of Solar Energy"
},
"relevanceScore": 0.85,
"text": "Solar energy has several benefits including reducing electricity bills, providing a renewable energy source, and lowering carbon footprint.\""
}
],
"responseId": "c0857557-5579-4f5e-8958-9befd7d1d4a8",
"warnings": [
"No index items matched your query, therefore no passages could be retrieved. Try rephrasing your query or checking whether the query pipeline filters are too restrictive.",
"No passages were retrieved for the query. Review whether your passage retrieval model is up-to-date and is trained on the documents relevant to your query."
]
}
Need more? See the Coveo guide for connection setup and behaviour shared by every action.
Was this page helpful?