Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .agents/skills/pipeline-composer/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,10 @@ See [the I/O boundary](../../../doc/dev_guide/business_onboarding.md#输入输

A new Profile is optional; explicit `--biz`, `--config` and `--dataset` also work. Use the
original Profile alone only when its configuration already points to the intended Pipeline.
Demo uses the selected Pipeline defaults. The compatibility flag `--no-default-control`
is unnecessary and conflicts with `--example-control`. Use `--example-control` only for
the built-in update demonstration, and provide a
Control file only when it is part of the requested scenario. Verify
request IDs, status and expected output fields in `results.jsonl` and `summary.json`.
Demo uses the selected Pipeline defaults (by default, no example Control is sent). Use
`--example-control` only for the built-in update demonstration, and provide a Control file
only when it is part of the requested scenario. Verify request IDs, status and expected
output fields in `results.jsonl` and `summary.json`.

For human composition, use `./show --web` or `./show <pipeline.json> --web`. For AI and automation, use `alg_pipeline_tool` and consume its versioned JSON output.

Expand Down
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ endif()
set(LLM_EDGEFLOW_GENERATED_INCLUDE_DIR
"${PROJECT_BINARY_DIR}/generated/include")
file(MAKE_DIRECTORY "${LLM_EDGEFLOW_GENERATED_INCLUDE_DIR}/edgeflow")
# An earlier build generated this name; it must not shadow the compatibility
# forwarding header after the canonical version changes.
file(REMOVE "${LLM_EDGEFLOW_GENERATED_INCLUDE_DIR}/company_alg_version.h")
configure_file(
"${PROJECT_SOURCE_DIR}/cmake_ext/edgeflow_version.h.in"
"${LLM_EDGEFLOW_GENERATED_INCLUDE_DIR}/edgeflow/version.h"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ cmake --build build --target alg_sdk alg_demo alg_pipeline_tool alg_show --paral
- `results/quickstart/keyword_match_rules/results.jsonl`:逐条请求的状态与匹配结果。
- `results/quickstart/keyword_match_rules/summary.json`:样本数、成功数、失败数与耗时。

`keyword_match_rules` 是 Demo 预设名称,这个方案使用真实规则节点。Demo 默认使用 Pipeline 中的规则;`--no-default-control` 保留为兼容选项。需要体验内置规则热更新时显式添加 `--example-control`。
`keyword_match_rules` 是 Demo 预设名称,这个方案使用真实规则节点。Demo 默认使用 Pipeline 中的规则;需要体验内置规则热更新时显式添加 `--example-control`。

### 3. 查看与编辑流程

Expand Down Expand Up @@ -104,7 +104,7 @@ flowchart TD

| 职责 | 何时扩展 | 主要入口 |
| :--- | :--- | :--- |
| 接入适配层 | 宿主程序增加新的输入输出结构或调用约定 | `include/adapter/`、`include/operator/`、`src/adapter/` |
| 接入适配层 | 宿主程序增加新的输入输出结构或调用约定 | `include/adapter/`、`include/edgeflow/operator/`、`src/adapter/` |
| 流程编排层 | 现有校验、调度或上下文机制无法满足需求 | `include/core/`、`src/core/` |
| 能力节点层 | 增加领域算法、数据处理或模型调用组合 | `src/custom_nodes/`;通用操作位于 `src/common_nodes/` |
| 模型执行层 | 增加模型语义或接入新的推理运行时 | `src/engine/models/`、`src/engine/backends/` |
Expand Down
4 changes: 0 additions & 4 deletions cmake_ext/LayerHeaderViews.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ set(public_headers
include/edgeflow/c_api.h include/edgeflow/c_api.hpp
include/edgeflow/export.h include/edgeflow/log.h
include/edgeflow/operator/interface.h include/edgeflow/operator/types.h
include/company_alg_interface.h include/company_alg_cpp.hpp
include/company_alg_export.h include/company_alg_log.h
include/company_alg_version.h
include/operator/operator_interface.h include/operator/company_operator_types.h
${platform_mock_headers})
edgeflow_header_view(public ${public_headers})

Expand Down
16 changes: 9 additions & 7 deletions configs/pipeline_audio_asr_cpu.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@
"model_paths": {
"asr_model_v1": "models/ggml-base.bin"
},
"mem_que": {
"type": "audio_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"transcribed_text": 511,
"intent_slot_json": 1023
"outputs": {
"audio_out": {
"type": "audio_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"transcribed_text": 511,
"intent_slot_json": 1023
}
}
}
}
Expand Down
12 changes: 7 additions & 5 deletions configs/pipeline_cross_rerank_cpu.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
"model_paths": {
"rerank_model_v1": "./models/ms_marco_tinybert_l2_v2_quantized.onnx"
},
"mem_que": {
"type": "rerank_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {}
"outputs": {
"rerank_out": {
"type": "rerank_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {}
}
}
}
}
18 changes: 10 additions & 8 deletions configs/pipeline_dialogue_audit_default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
"rerank_model_v1": "./models/ms_marco_tinybert_l2_v2_quantized.onnx",
"audit_llm_v1": "./models/qwen2.5-0.5b-instruct-q4_k_m.gguf"
},
"mem_que": {
"type": "audit_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"risk_level": 31,
"matched_policy_clause": 255,
"audit_verdict_json": 1023
"outputs": {
"audit_out": {
"type": "audit_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"risk_level": 31,
"matched_policy_clause": 255,
"audit_verdict_json": 1023
}
}
}
}
Expand Down
18 changes: 10 additions & 8 deletions configs/pipeline_dialogue_audit_kite.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
"rerank_model_v1": "models/ms_marco_tinybert_l2_v2_quantized.onnx",
"audit_llm_v1": "models/qwen2.5-0.5b-instruct-q4_k_m.gguf"
},
"mem_que": {
"type": "audit_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"risk_level": 31,
"matched_policy_clause": 255,
"audit_verdict_json": 1023
"outputs": {
"audit_out": {
"type": "audit_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"risk_level": 31,
"matched_policy_clause": 255,
"audit_verdict_json": 1023
}
}
}
}
Expand Down
16 changes: 9 additions & 7 deletions configs/pipeline_doc_qa_cpu.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
"embed_model_onnx": "./models/bge_base_zh_v1.5.onnx",
"llm_model_llamacpp": "./models/qwen2.5-0.5b-instruct-q4_k_m.gguf"
},
"mem_que": {
"type": "doc_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"intent_name": 63,
"answer_text": 1023
"outputs": {
"doc_out": {
"type": "doc_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"intent_name": 63,
"answer_text": 1023
}
}
}
}
Expand Down
16 changes: 9 additions & 7 deletions configs/pipeline_doc_qa_default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
"embed_model_v1": "./models/bge_base_zh_v1.5.onnx",
"llm_model_v1": "./models/qwen2.5-0.5b-instruct-q4_k_m.gguf"
},
"mem_que": {
"type": "doc_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"intent_name": 63,
"answer_text": 1023
"outputs": {
"doc_out": {
"type": "doc_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"intent_name": 63,
"answer_text": 1023
}
}
}
}
Expand Down
16 changes: 9 additions & 7 deletions configs/pipeline_doc_qa_kite.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
"embed_model_v1": "models/bge_base_zh_v1.5.onnx",
"llm_model_v1": "models/qwen2.5-0.5b-instruct-q4_k_m.gguf"
},
"mem_que": {
"type": "doc_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"intent_name": 63,
"answer_text": 1023
"outputs": {
"doc_out": {
"type": "doc_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"intent_name": 63,
"answer_text": 1023
}
}
}
}
Expand Down
16 changes: 9 additions & 7 deletions configs/pipeline_doc_qa_kite_generated_embeddings.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
"embed_model_v1": "models/qwen2.5-0.5b-instruct-q4_k_m.gguf",
"llm_model_v1": "models/qwen2.5-0.5b-instruct-q4_k_m.gguf"
},
"mem_que": {
"type": "doc_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"intent_name": 63,
"answer_text": 1023
"outputs": {
"doc_out": {
"type": "doc_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"intent_name": 63,
"answer_text": 1023
}
}
}
}
Expand Down
16 changes: 9 additions & 7 deletions configs/pipeline_doc_qa_rerank_cpu.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
"rerank_model_onnx": "./models/ms_marco_tinybert_l2_v2_quantized.onnx",
"llm_model_llamacpp": "./models/qwen2.5-0.5b-instruct-q4_k_m.gguf"
},
"mem_que": {
"type": "doc_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"intent_name": 63,
"answer_text": 1023
"outputs": {
"doc_out": {
"type": "doc_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"intent_name": 63,
"answer_text": 1023
}
}
}
}
Expand Down
16 changes: 9 additions & 7 deletions configs/pipeline_doc_qa_rerank_default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
"rerank_model_v1": "./models/ms_marco_tinybert_l2_v2_quantized.onnx",
"llm_model_v1": "./models/qwen2.5-0.5b-instruct-q4_k_m.gguf"
},
"mem_que": {
"type": "doc_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"intent_name": 63,
"answer_text": 1023
"outputs": {
"doc_out": {
"type": "doc_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"intent_name": 63,
"answer_text": 1023
}
}
}
}
Expand Down
16 changes: 9 additions & 7 deletions configs/pipeline_doc_qa_rerank_kite.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@
"rerank_model_onnx": "models/ms_marco_tinybert_l2_v2_quantized.onnx",
"llm_model_llamacpp": "models/qwen2.5-0.5b-instruct-q4_k_m.gguf"
},
"mem_que": {
"type": "doc_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"intent_name": 63,
"answer_text": 1023
"outputs": {
"doc_out": {
"type": "doc_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"intent_name": 63,
"answer_text": 1023
}
}
}
}
Expand Down
14 changes: 8 additions & 6 deletions configs/pipeline_entity_extract_cpu.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"model_paths": {
"entity_llm": "./models/qwen2.5-0.5b-instruct-q4_k_m.gguf"
},
"mem_que": {
"type": "entity_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"entities_json": 2047
"outputs": {
"entity_out": {
"type": "entity_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"entities_json": 2047
}
}
}
}
Expand Down
14 changes: 8 additions & 6 deletions configs/pipeline_entity_extract_default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"model_paths": {
"entity_llm": "./models/qwen2.5-0.5b-instruct-q4_k_m.gguf"
},
"mem_que": {
"type": "entity_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"entities_json": 2047
"outputs": {
"entity_out": {
"type": "entity_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"entities_json": 2047
}
}
}
}
Expand Down
14 changes: 8 additions & 6 deletions configs/pipeline_entity_extract_kite.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
"model_paths": {
"entity_llm": "models/qwen2.5-0.5b-instruct-q4_k_m.gguf"
},
"mem_que": {
"type": "entity_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"entities_json": 2047
"outputs": {
"entity_out": {
"type": "entity_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"entities_json": 2047
}
}
}
}
Expand Down
14 changes: 8 additions & 6 deletions configs/pipeline_keyword_match_rules.conf
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"data": {
"pipe_path": "configs/pipeline_keyword_match_rules.json",
"mem_que": {
"type": "keyword_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"match_result_json": 2047
"outputs": {
"keyword_out": {
"type": "keyword_out",
"meta_num": 0,
"metadata_type_id": 0,
"capacities": {
"match_result_json": 2047
}
}
}
}
Expand Down
Loading
Loading