POST /chat-messages Request body: { "query": "What is the warranty period on a new Tolvan A3?", "inputs": {}, "user": "r6-tester", "response_mode": "blocking" } Status: 200 Response body: { "event": "message", "task_id": "a1a1cebf-e736-460a-8bb4-fea21f16a5d0", "id": "be4cfa61-c1a2-4fa4-a182-749f716b9726", "message_id": "be4cfa61-c1a2-4fa4-a182-749f716b9726", "conversation_id": "70bfe6e3-90a3-4982-b5eb-1a0ab562ba24", "mode": "chat", "answer": "I\u2019m not sure\u2014some versions list 24 months and others 36 months from the delivery date. Could you share your purchase date or the warranty terms/version from your sales pack so I can confirm the correct period for your instrument?", "metadata": { "annotation_reply": null, "retriever_resources": [ { "position": 1, "dataset_id": "084fc635-481f-4970-bf09-299c83eca3c2", "dataset_name": "R6-managed-rag-ss-v1", "document_id": "cd32e6aa-7c16-4d60-bff2-bd7250451958", "document_name": "A09_warranty_statement_service_pack.pdf", "data_source_type": "upload_file", "segment_id": "febb6e66-78a9-4e65-be6d-0c894dca441b", "retriever_from": "api", "score": 0.72868896, "hit_count": null, "word_count": null, "segment_position": null, "index_node_hash": null, "content": "It\r\ncovers failure arising from a defect in materials or workmanship. Where a covered failure occurs,\r\nFenwake repairs or exchanges the instrument at its own option and bears the cost of carriage in both\r\ndirections.\r\n2. The warranty period\r\nEvery new Tolvan A3 carries a warranty of 36 months from the date the instrument is delivered.", "page": null, "doc_metadata": { "region": "group" }, "title": null, "files": null, "summary": null }, { "position": 2, "dataset_id": "084fc635-481f-4970-bf09-299c83eca3c2", "dataset_name": "R6-managed-rag-ss-v1", "document_id": "24d8e7b7-2b95-412f-8492-390a47422461", "document_name": "A08_warranty_terms_sales_pack.pdf", "data_source_type": "upload_file", "segment_id": "4998bfef-fe6a-4015-8dfa-758bfe58d43b", "retriever_from": "api", "score": 0.7230272, "hit_count": null, "word_count": null, "segment_position": null, "index_node_hash": null, "content": "Where a covered failure occurs,\r\nFenwake repairs or exchanges the instrument at its own option and bears the cost of carriage in both\r\ndirections.\r\n2. The warranty period\r\nEvery new Tolvan A3 carries a warranty of 24 months from the date the instrument is delivered.", "page": null, "doc_metadata": { "region": "group" }, "title": null, "files": null, "summary": null }, { "position": 3, "dataset_id": "084fc635-481f-4970-bf09-299c83eca3c2", "dataset_name": "R6-managed-rag-ss-v1", "document_id": "24d8e7b7-2b95-412f-8492-390a47422461", "document_name": "A08_warranty_terms_sales_pack.pdf", "data_source_type": "upload_file", "segment_id": "7c146fd9-d2b7-467a-b9a3-d4ebe5d35c08", "retriever_from": "api", "score": 0.5775767, "hit_count": null, "word_count": null, "segment_position": null, "index_node_hash": null, "content": "Sales pack Page 1\r\nFenwake Instruments Ltd\r\nWarranty Terms\r\nSales pack - customer-facing warranty terms\r\n1. What is covered\r\nThese are the warranty terms that accompany a new instrument. They apply to every new Tolvan A3\r\nsupplied by Fenwake Instruments Ltd, however it was ordered and wherever it is deployed.\r\nThe warranty covers the instrument, its pressure housing, its connector and any cable supplied with it. It\r\ncovers failure arising from a defect in materials or workmanship.", "page": null, "doc_metadata": { "region": "group" }, "title": null, "files": null, "summary": null }, { "position": 4, "dataset_id": "084fc635-481f-4970-bf09-299c83eca3c2", "dataset_name": "R6-managed-rag-ss-v1", "document_id": "9ba90c1b-007a-4b5b-91fd-030f45e73bcb", "document_name": "A10_tolvan_a3_product_overview.md", "data_source_type": "upload_file", "segment_id": "bf7724c1-2b89-4fe9-9cb5-09c6c46ad5b4", "retriever_from": "api", "score": 0.5770018, "hit_count": null, "word_count": null, "segment_position": null, "index_node_hash": null, "content": "Calibration\n\nEvery instrument leaves the laboratory with a signed certificate recording the as-found and as-left bias at four reference points across the working range. The recommended recalibration interval for the Tolvan A3 is 22 months from the date of the last certificate. An instrument returned early because of a suspected drift is checked as found before anything is adjusted, so that the drift can be quantified rather than merely corrected.\n\nFirmware", "page": null, "doc_metadata": { "region": "group" }, "title": null, "files": null, "summary": null } ], "usage": { "prompt_tokens": 408, "prompt_unit_price": "1.25", "prompt_price_unit": "0.000001", "prompt_price": "0.00051", "completion_tokens": 798, "completion_unit_price": "10", "completion_price_unit": "0.000001", "completion_price": "0.00798", "total_tokens": 1206, "total_price": "0.00849", "currency": "USD", "latency": 10.227120494004339, "time_to_first_token": null, "time_to_generate": null }, "reasoning": {} }, "created_at": 1789934301 } App configuration actually applied (read live from the R6-managed-rag-chatbot app's Orchestrate panel -- no API endpoint exposes this, per reference/api-dify.md, so this is a UI-sourced fact, not assumed -- same app as TC94/TC97, config confirmed once and applies to all three): Generation model: gpt-5 (Chat mode). Corroborated by the usage block above: prompt_unit_price 1.25 / completion_unit_price 10 (per 1M tokens) match OpenAI's published gpt-5 pricing. Retrieval config (Orchestrate -> Knowledge -> Retrieval Setting): - Strategy: multi-path retrieval (default) -- retrieved from R6-managed-rag-ss-v1, then reranked - Rerank setting: Weighted Score -- Semantic 1.0 / Keyword 0.0 (fully semantic weighting, no keyword component) - Top K: 4 - Score Threshold: disabled (off; the 0.7 field value shown is not applied) This is the configuration that produced the four scores/ordering above -- both conflicting warranty documents (A09 36mo, A08 24mo) ranking 1st/2nd is a consequence of fully-semantic weighting with no keyword or threshold cutoff, not a passed-in retrieval parameter.