POST /datasets/{dataset_id}/retrieve Request body: { "query": "How many days of paid time off do employees get each year?" } Status: 200 Response body: { "query": { "content": "How many days of paid time off do employees get each year?" }, "records": [ { "segment": { "id": "434c06a2-0f8b-4be1-8612-1bdee92582e3", "position": 6, "document_id": "4c1c336c-11c5-423f-bf1e-71d339564495", "content": "Anything beyond five days is carried over only where leave could not be taken because of a business requirement, and only with the written agreement of a director.\n3.3 Leave on leaving\nOn termination, accrued and untaken annual leave is paid in the final salary payment. Where more leave has been taken than accrued, the balance is deducted from that payment.\n4. Sickness absence\nReport sickness to your line manager before 09:00 on the first day, by telephone rather than by message.", "sign_content": null, "answer": null, "word_count": 484, "tokens": 100, "keywords": [], "index_node_id": "34e1b0ec-8706-4cea-8748-e7cd73de9c0c", "index_node_hash": "9560e060d58c544a5baad0febb30576358b2a3d3f383d5ea6159aa5aef1a0a6a", "hit_count": 0, "enabled": true, "disabled_at": null, "disabled_by": null, "status": "completed", "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad", "created_at": 1789752869, "indexing_at": 1789752891, "completed_at": 1789752896, "error": null, "stopped_at": null, "document": { "id": "4c1c336c-11c5-423f-bf1e-71d339564495", "data_source_type": "upload_file", "name": "A04_employee_handbook.docx", "doc_type": null, "doc_metadata": { "region": "group" } } }, "child_chunks": [], "score": 0.46944642, "tsne_position": null, "files": [], "summary": null }, { "segment": { "id": "9eaf86cb-bcce-4545-8f30-d5e6cd4db0f7", "position": 7, "document_id": "4c1c336c-11c5-423f-bf1e-71d339564495", "content": "Absence of seven calendar days or fewer is self-certified on return. Longer absence requires a fit note. Company sick pay is paid at normal salary for the first four weeks of a continuous absence and at half salary for the following four weeks, after which statutory sick pay alone applies.\n4.1 Return to work\nEvery absence is followed by a return-to-work conversation with the line manager. The conversation is recorded in one paragraph on the personnel file.", "sign_content": null, "answer": null, "word_count": 460, "tokens": 91, "keywords": [], "index_node_id": "92c4f676-1613-4940-9216-b14c0bf741eb", "index_node_hash": "b3cad0103c0022456c6ea4d5203c609f2e30ff12422d2b519d80abbd73aea675", "hit_count": 0, "enabled": true, "disabled_at": null, "disabled_by": null, "status": "completed", "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad", "created_at": 1789752869, "indexing_at": 1789752891, "completed_at": 1789752896, "error": null, "stopped_at": null, "document": { "id": "4c1c336c-11c5-423f-bf1e-71d339564495", "data_source_type": "upload_file", "name": "A04_employee_handbook.docx", "doc_type": null, "doc_metadata": { "region": "group" } } }, "child_chunks": [], "score": 0.46814263, "tsne_position": null, "files": [], "summary": null }, { "segment": { "id": "a2399686-e1bc-453b-bcfd-ce26faa9dc08", "position": 3, "document_id": "4c1c336c-11c5-423f-bf1e-71d339564495", "content": "A job number is required for chargeable work, for internal projects and for training. Corrections are made by the line manager rather than by editing a submitted week.\n3. Annual leave\nFull-time employees accrue 26 days of annual leave in each complete leave year, which runs from 1 April to 31 March. Part-time employees accrue pro rata.", "sign_content": null, "answer": null, "word_count": 337, "tokens": 74, "keywords": [], "index_node_id": "f91121a3-e5f4-45a0-b500-abac05b64d76", "index_node_hash": "9ff9d77d07469e4b455ac1135f0867de42f38f218441ae9657ec2fee94b8b5d8", "hit_count": 0, "enabled": true, "disabled_at": null, "disabled_by": null, "status": "completed", "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad", "created_at": 1789752869, "indexing_at": 1789752891, "completed_at": 1789752896, "error": null, "stopped_at": null, "document": { "id": "4c1c336c-11c5-423f-bf1e-71d339564495", "data_source_type": "upload_file", "name": "A04_employee_handbook.docx", "doc_type": null, "doc_metadata": { "region": "group" } } }, "child_chunks": [], "score": 0.46400315, "tsne_position": null, "files": [], "summary": null }, { "segment": { "id": "911d0feb-05d7-4086-b9db-452d0204af85", "position": 4, "document_id": "4c1c336c-11c5-423f-bf1e-71d339564495", "content": "Part-time employees accrue pro rata. Leave accrues from the first day of employment and may be taken during the probation period with the line manager's agreement.\n3.1 Booking leave\nAnnual leave is requested in the rota system and confirmed by the line manager. Requests are considered in the order they are received.", "sign_content": null, "answer": null, "word_count": 317, "tokens": 65, "keywords": [], "index_node_id": "4cb1f7d1-a120-4483-822b-9c2a5e24c8e4", "index_node_hash": "6fa0927ae302e46f8b63c1de8306cbcbfce85250efba5e9cc96207a42fd666d6", "hit_count": 0, "enabled": true, "disabled_at": null, "disabled_by": null, "status": "completed", "created_by": "f1034bbd-04df-4592-ba22-56dac49ae8ad", "created_at": 1789752869, "indexing_at": 1789752891, "completed_at": 1789752896, "error": null, "stopped_at": null, "document": { "id": "4c1c336c-11c5-423f-bf1e-71d339564495", "data_source_type": "upload_file", "name": "A04_employee_handbook.docx", "doc_type": null, "doc_metadata": { "region": "group" } } }, "child_chunks": [], "score": 0.44551182, "tsne_position": null, "files": [], "summary": null } ] } Dataset retrieval config actually applied (read back live via GET /datasets/{dataset_id}, not assumed from docs -- this is the config that produced the four scores above): GET /datasets/084fc635-481f-4970-bf09-299c83eca3c2 { "embedding_model": "text-embedding-3-small", "embedding_model_provider": "langgenius/openai/openai", "indexing_technique": "high_quality", "retrieval_model_dict": { "search_method": "semantic_search", "reranking_enable": false, "reranking_mode": null, "reranking_model": { "reranking_provider_name": "", "reranking_model_name": "" }, "weights": null, "top_k": 4, "score_threshold_enabled": false, "score_threshold": null } } This confirms: 4 records is not a fluke or a passed-in param -- it's the dataset's own top_k default. No reranker is applied -- the printed scores are raw semantic_search cosine-style scores from the text-embedding-3-small embedding, not rerank scores.