基于 Electron + Vue3 + TypeScript + LanceDB 的本地化 RAG 问答桌面应用。 仅支持 Linux(Kylin V10 / Ubuntu),适配 ER160(揽月 M50 NPU)和 ER25(芯动力 RPP)计算卡。 服务进程管理委托给 er_backend(HTTP 17700),前端专注 RAG 逻辑与用户交互。 包含: - src/elec_rag_ui 前端工程(Electron + Vue3) - models/ 本地嵌入模型(bge-small/base/large,ASR,标点恢复,onnx 文件由 Git LFS 管理) - docs/ 示例文档(用于测试索引与问答)
47 lines
810 B
YAML
47 lines
810 B
YAML
model: CTTransformer
|
||
model_conf:
|
||
ignore_id: 0
|
||
embed_unit: 256
|
||
att_unit: 256
|
||
dropout_rate: 0.1
|
||
punc_list:
|
||
- <unk>
|
||
- _
|
||
- ,
|
||
- 。
|
||
- ?
|
||
- 、
|
||
punc_weight:
|
||
- 1.0
|
||
- 1.0
|
||
- 1.0
|
||
- 1.0
|
||
- 1.0
|
||
- 1.0
|
||
sentence_end_id: 3
|
||
|
||
encoder: SANMEncoder
|
||
encoder_conf:
|
||
input_size: 256
|
||
output_size: 256
|
||
attention_heads: 8
|
||
linear_units: 1024
|
||
num_blocks: 4
|
||
dropout_rate: 0.1
|
||
positional_dropout_rate: 0.1
|
||
attention_dropout_rate: 0.0
|
||
input_layer: pe
|
||
pos_enc_class: SinusoidalPositionEncoder
|
||
normalize_before: true
|
||
kernel_size: 11
|
||
sanm_shfit: 0
|
||
selfattention_layer_type: sanm
|
||
padding_idx: 0
|
||
|
||
tokenizer: CharTokenizer
|
||
tokenizer_conf:
|
||
unk_symbol: <unk>
|
||
|
||
|
||
|