=== POST /datasets/{dataset_id}/retrieve === Request body: { "query": "What as-found bias is recorded on calibration certificate C-77413?" } Status: 200 Response body: { "query": { "content": "What as-found bias is recorded on calibration certificate C-77413?" }, "records": [ { "segment": { "id": "bf7724c1-2b89-4fe9-9cb5-09c6c46ad5b4", "position": 6, "document_id": "9ba90c1b-007a-4b5b-91fd-030f45e73bcb", "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", "sign_content": null, "answer": null, "word_count": 460, "tokens": 85, "keywords": [], "index_node_id": "8efd2764-befa-4d64-af98-b766aa1cb3a4", "index_node_hash": "0580a3b7e28d801a55bc838ea0bc0e98e06d80f3fd10dad6733ccdec698d92fc", "hit_count": 0, "enabled": true, "disabled_at": null, "disabled_by": null, "status": "completed", "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad", "created_at": 1789754309, "indexing_at": 1789754309, "completed_at": 1789754312, "error": null, "stopped_at": null, "document": { "id": "9ba90c1b-007a-4b5b-91fd-030f45e73bcb", "data_source_type": "upload_file", "name": "A10_tolvan_a3_product_overview.md", "doc_type": null, "doc_metadata": { "region": "group" } } }, "child_chunks": [], "score": 0.54985493, "tsne_position": null, "files": [], "summary": null }, { "segment": { "id": "be655143-3a49-4b5f-a130-1ea6abfab1fb", "position": 5, "document_id": "24d8e7b7-2b95-412f-8492-390a47422461", "content": "Drift is a calibration matter, not a defect.\r\n\u2022 Any instrument whose serial number has been removed or altered.\r\n4. Making a claim\r\nA claim is made through the service desk, quoting the serial number and the delivery note. The service\r\ndesk raises a ticket, arranges return carriage and tells the customer within five working days whether the\r\nfailure is covered.", "sign_content": null, "answer": null, "word_count": 363, "tokens": 74, "keywords": [], "index_node_id": "13804d8f-76a5-4980-8544-289d3c32295b", "index_node_hash": "5e26687d25a112c0b0b1552639d9fd7a0ea98678901d405bbef4344c5f4de5a1", "hit_count": 0, "enabled": true, "disabled_at": null, "disabled_by": null, "status": "completed", "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad", "created_at": 1789754298, "indexing_at": 1789754298, "completed_at": 1789754300, "error": null, "stopped_at": null, "document": { "id": "24d8e7b7-2b95-412f-8492-390a47422461", "data_source_type": "upload_file", "name": "A08_warranty_terms_sales_pack.pdf", "doc_type": null, "doc_metadata": { "region": "group" } } }, "child_chunks": [], "score": 0.46607465, "tsne_position": null, "files": [], "summary": null }, { "segment": { "id": "321f07e2-5765-416b-865b-b9170e8286b1", "position": 5, "document_id": "cd32e6aa-7c16-4d60-bff2-bd7250451958", "content": "Drift is a calibration matter, not a defect.\r\n\u2022 Any instrument whose serial number has been removed or altered.\r\n4. Making a claim\r\nA claim is made through the service desk, quoting the serial number and the delivery note. The service\r\ndesk raises a ticket, arranges return carriage and tells the customer within five working days whether the\r\nfailure is covered.", "sign_content": null, "answer": null, "word_count": 363, "tokens": 74, "keywords": [], "index_node_id": "d15c7f3d-1bea-4f13-863c-b458e9f22f74", "index_node_hash": "5e26687d25a112c0b0b1552639d9fd7a0ea98678901d405bbef4344c5f4de5a1", "hit_count": 0, "enabled": true, "disabled_at": null, "disabled_by": null, "status": "completed", "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad", "created_at": 1789754303, "indexing_at": 1789754306, "completed_at": 1789754306, "error": null, "stopped_at": null, "document": { "id": "cd32e6aa-7c16-4d60-bff2-bd7250451958", "data_source_type": "upload_file", "name": "A09_warranty_statement_service_pack.pdf", "doc_type": null, "doc_metadata": { "region": "group" } } }, "child_chunks": [], "score": 0.46607465, "tsne_position": null, "files": [], "summary": null }, { "segment": { "id": "38403981-4749-4253-8ae1-30a5b5eaf666", "position": 5, "document_id": "e04044ec-990a-4bf1-9908-34be00b3fa17", "content": "What the depot does not do\n\nThe depot does not calibrate. An instrument that needs a certificate goes to the laboratory, is booked in under its own job number, and comes back to the depot only once the certificate has been signed.\n\nCommissioning: before travelling", "sign_content": null, "answer": null, "word_count": 264, "tokens": 53, "keywords": [], "index_node_id": "137b3abe-fae4-4e77-a17c-33e93fa7db36", "index_node_hash": "13cdf7935207577a55f0bd797e858af534098afc6f667a3c4f3df2b4ca31ef04", "hit_count": 0, "enabled": true, "disabled_at": null, "disabled_by": null, "status": "completed", "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad", "created_at": 1789752857, "indexing_at": 1789752858, "completed_at": 1789752862, "error": null, "stopped_at": null, "document": { "id": "e04044ec-990a-4bf1-9908-34be00b3fa17", "data_source_type": "upload_file", "name": "A05_depot_and_commissioning_note.md", "doc_type": null, "doc_metadata": { "region": "uk" } } }, "child_chunks": [], "score": 0.4369651, "tsne_position": null, "files": [], "summary": null } ] } === GET /datasets/{dataset_id}/documents (A03 entry) === { "id": "2539b1fb-9263-49b0-9a7b-318f850587d1", "position": 2, "data_source_type": "upload_file", "data_source_info": { "upload_file_id": "f6a118e9-8328-4089-a41a-a23ef4f735a1" }, "data_source_detail_dict": { "upload_file": { "id": "f6a118e9-8328-4089-a41a-a23ef4f735a1", "name": "A03_calibration_certificate_scan.pdf", "size": 208037, "extension": "pdf", "mime_type": "application/pdf", "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad", "created_at": 1789752844.612517 } }, "dataset_process_rule_id": "e419c967-56c4-43cf-8bcc-f9d2cb37f58f", "name": "A03_calibration_certificate_scan.pdf", "created_from": "api", "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad", "created_at": 1789752845, "tokens": 34, "indexing_status": "completed", "error": null, "enabled": true, "disabled_at": null, "disabled_by": null, "archived": false, "display_status": "available", "word_count": 87, "hit_count": 0, "doc_form": "text_model", "doc_metadata": [ { "id": "ea28fe4d-2949-4d40-a58e-c98b251a0ab5", "name": "region", "type": "string", "value": "uk" }, { "id": "built-in", "name": "document_name", "type": "string", "value": "A03_calibration_certificate_scan.pdf" }, { "id": "built-in", "name": "uploader", "type": "string", "value": "Dify" }, { "id": "built-in", "name": "upload_date", "type": "time", "value": "1789752845.0" }, { "id": "built-in", "name": "last_update_date", "type": "time", "value": "1789754366.953213" }, { "id": "built-in", "name": "source", "type": "string", "value": "file_upload" } ], "summary_index_status": null, "need_summary": false } === GET /datasets/{dataset_id}/documents/{document_id}/segments (A03) === { "data": [ { "id": "642ba8da-0dea-4072-99ce-0dc54174dc9f", "position": 1, "document_id": "2539b1fb-9263-49b0-9a7b-318f850587d1", "content": "![image](https://cloud.dify.ai/files/516a105f-bb73-4406-9ada-ae843a284ad8/file-preview)", "sign_content": "![image](https://cloud.dify.ai/files/516a105f-bb73-4406-9ada-ae843a284ad8/file-preview?timestamp=1789931632&nonce=5eba89d7be29d4201a135de542d8543e&sign=NUPYgLzFmvn7sz7-WYbKKz2MGlpEQgCx9cyinRPVPMM=)", "answer": null, "word_count": 87, "tokens": 34, "keywords": null, "index_node_id": "5ead3070-24a4-4c4f-9687-3a10544acc4d", "index_node_hash": "ecfdac89ee89ba2b4a16925862d8a0604972eda10c50c0b7b5b5ce3490089a41", "hit_count": 0, "enabled": true, "disabled_at": null, "disabled_by": null, "status": "completed", "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad", "created_at": 1789752853, "updated_at": 1789752853, "updated_by": null, "indexing_at": 1789752856, "completed_at": 1789752856, "error": null, "stopped_at": null, "child_chunks": [], "attachments": [ { "id": "516a105f-bb73-4406-9ada-ae843a284ad8", "name": "image_files/a49c83a3-8574-4949-992c-2f2e1fd66de8/3a3e9c30-3ff1-4f5e-95f1-6a03a1ce33f8.jpg", "size": 204657, "extension": "jpg", "mime_type": "image/jpeg", "source_url": "https://upload.dify.ai/files/516a105f-bb73-4406-9ada-ae843a284ad8/image-preview?timestamp=1789931632&nonce=095f19ab9062726771a44049f9c0677f&sign=V9qbeEDEf9j-VDPgQjC6Bt1BQ_qsABjkCQMYbrorKRY=" } ], "summary": null } ], "doc_form": "text_model", "total": 1, "has_more": false, "limit": 20, "page": 1 }