{"api_version":2,"name":"conet_rag_retrieve","version":"1.0","role":"transform","type":"sdk","description":"Reranked evidence and BM25 scores.","icon":{"path":"M6 3h9l3 3v15H6zM9 10h6m-6 4h6m-6 4h4"},"inputs":{"source":{"representations":["records"],"formats":[]}},"outputs":{"result":{"view":"records"}},"parameters":{"type":"object","properties":{"stage":{"type":"string","enum":["retrieve"],"description":"Selects the implementation of this operator."},"question":{"type":"string","minLength":1,"maxLength":500,"description":"Question used for retrieval and evidence assembly."},"top_k":{"type":"integer","minimum":1,"maximum":8,"description":"Maximum number of retrieved passages."}},"required":["stage","question","top_k"],"additionalProperties":false},"execution":{"executor":"python","entrypoint":"rag","config":{}},"runtime":{"image":"sha256:40db7fee594f1452790d1cc99c2e5429e187eb64633c716b8c6f903c47576975","archive":{"sha256":"e1844833e35390f2eaf9fc9ec7b67057ad0305ad713c0da6c8b055980a66946c","size":73825792,"filename":"python-arrow-2.0-runtime.tar"}},"source_public":true,"provenance":{"source_archive":{"sha256":"42d9fbad7f58b35bdf26c9a89c6921d990967bd920e2ecf3959b3f90a3ef364b","size":3693,"filename":"conet-rag-sources.zip"},"license":"Apache-2.0"},"documentation":{"inputs":{"source":"Indexed passages"},"outputs":{"result":"Reranked evidence and BM25 scores"},"parameters":{"stage":{"description":"Selects the implementation of this operator.","help":"Selects the implementation of this operator.","example":"retrieve"},"question":{"description":"Question used for retrieval and evidence assembly.","help":"Question used for retrieval and evidence assembly.","example":"解析、分块和建索引时，RAG 可能怎样丢失信息？"},"top_k":{"description":"Maximum number of retrieved passages.","help":"Maximum number of retrieved passages.","example":3}},"example_job":"name: RAG 文档问答与引用溯源\nsteps:\n- id: read\n  title: 读取语料\n  operator: item_source@1.0\n  inputs: {}\n  params:\n    uri: context:/rag-demo/corpus.jsonl\n    view: bytes\n- id: parse\n  title: 解析文档\n  operator: conet_rag_parse@1.0\n  inputs:\n    source: read:result\n  params:\n    stage: parse\n- id: clean\n  title: 清洗与结构化\n  operator: conet_rag_clean@1.0\n  inputs:\n    source: parse:result\n  params:\n    stage: clean\n- id: chunk\n  title: 划分重叠片段\n  operator: conet_rag_chunk@1.0\n  inputs:\n    source: clean:result\n  params:\n    stage: chunk\n    chunk_size: 240\n    overlap: 40\n- id: index\n  title: 建立关键词索引\n  operator: conet_rag_index@1.0\n  inputs:\n    source: chunk:result\n  params:\n    stage: index\n- id: retrieve\n  title: 检索与重排\n  operator: conet_rag_retrieve@1.0\n  inputs:\n    source: index:result\n  params:\n    stage: retrieve\n    question: 解析、分块和建索引时，RAG 可能怎样丢失信息？\n    top_k: 3\n- id: context\n  title: 组装引用上下文\n  operator: conet_rag_context@1.0\n  inputs:\n    source: retrieve:result\n  params:\n    stage: context\n    question: 解析、分块和建索引时，RAG 可能怎样丢失信息？\n- id: generate\n  title: 生成摘录答案\n  operator: conet_rag_generate@1.0\n  inputs:\n    source: context:result\n  params:\n    stage: generate\n- id: cite\n  title: 核对并附上出处\n  operator: conet_rag_cite@1.0\n  inputs:\n    source: generate:result\n  params:\n    stage: cite\n- id: receive\n  title: 返回结果\n  operator: client_sink@1.0\n  inputs:\n    result: cite:result\n  params: {}\n"},"artifact":{"sha256":"bbf58df37a2896ef115ca1ee76bc77958f9b2764c812c40ba294d5ddab8f6300","size":10016,"filename":"operator.zip"},"categories":["RAG"],"trust":{"score":3,"assessed_by":"administrator","reviewed_at_ms":1794984294214},"publication":{"author":"dacp-examples","submitted_at_ms":1794984278739,"approved_at_ms":1794984294214,"last_submitted_at_ms":1794984278739,"last_approved_at_ms":1794984294214},"download_count":2}