-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDify_AI.yml
More file actions
2046 lines (1987 loc) · 66 KB
/
Dify_AI.yml
File metadata and controls
2046 lines (1987 loc) · 66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
app:
description: ''
icon: 🤖
icon_background: '#FFEAD5'
mode: workflow
name: 北京市水体抗生素污染空间分布及生态风险评估: 人工智能增效关键数据提取与分析
use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
type: marketplace
value:
marketplace_plugin_unique_identifier: langgenius/openai:0.1.0@539dc0dde8ecaa84e61b8eeb154c3bb7fbc9caa80afd83763dd5860a725d2742
- current_identifier: null
type: marketplace
value:
marketplace_plugin_unique_identifier: langgenius/deepseek:0.0.6@dd589dc093c8084925858034ab5ec1fdf0d33819f43226c2f8c4a749a9acbbb2
kind: app
version: 0.3.0
workflow:
conversation_variables: []
environment_variables: []
features:
file_upload:
allowed_file_extensions:
- .JPG
- .JPEG
- .PNG
- .GIF
- .WEBP
- .SVG
allowed_file_types:
- image
allowed_file_upload_methods:
- local_file
- remote_url
enabled: false
fileUploadConfig:
audio_file_size_limit: 50
batch_count_limit: 5
file_size_limit: 15
image_file_size_limit: 10
video_file_size_limit: 100
workflow_file_upload_limit: 10
image:
enabled: false
number_limits: 3
transfer_methods:
- local_file
- remote_url
number_limits: 3
opening_statement: ''
retriever_resource:
enabled: true
sensitive_word_avoidance:
enabled: false
speech_to_text:
enabled: false
suggested_questions: []
suggested_questions_after_answer:
enabled: false
text_to_speech:
enabled: false
language: ''
voice: ''
graph:
edges:
- data:
isInIteration: false
isInLoop: false
sourceType: start
targetType: iteration
id: 1750466107735-source-1750466144404-target
selected: false
source: '1750466107735'
sourceHandle: source
target: '1750466144404'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
isInLoop: false
iteration_id: '1750466144404'
sourceType: document-extractor
targetType: llm
id: 1750466165834--1750466363404-target
selected: false
source: '1750466165834'
sourceHandle: source
target: '1750466363404'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
isInLoop: false
iteration_id: '1750466144404'
sourceType: llm
targetType: code
id: 1750466363404-source-1750466433066-target
selected: false
source: '1750466363404'
sourceHandle: source
target: '1750466433066'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: false
isInLoop: false
sourceType: iteration
targetType: template-transform
id: 1750466144404-source-1750466469749-target
selected: false
source: '1750466144404'
sourceHandle: source
target: '1750466469749'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: template-transform
targetType: end
id: 1750466469749-source-1750466481626-target
selected: false
source: '1750466469749'
sourceHandle: source
target: '1750466481626'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
isInLoop: false
iteration_id: '1750466144404'
sourceType: document-extractor
targetType: llm
id: 1750466165834-source-1751007101693-target
selected: false
source: '1750466165834'
sourceHandle: source
target: '1751007101693'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
isInLoop: false
iteration_id: '1750466144404'
sourceType: llm
targetType: code
id: 1751007101693-source-1750466433066-target
selected: false
source: '1751007101693'
sourceHandle: source
target: '1750466433066'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
isInLoop: false
iteration_id: '1750466144404'
sourceType: iteration-start
targetType: document-extractor
id: 1750466144404start-source-1750466165834-target
selected: false
source: 1750466144404start
sourceHandle: source
target: '1750466165834'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: false
isInLoop: false
sourceType: start
targetType: iteration
id: 1750466107735-source-1751117358810-target
selected: false
source: '1750466107735'
sourceHandle: source
target: '1751117358810'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
isInLoop: false
iteration_id: '1751117358810'
sourceType: iteration-start
targetType: document-extractor
id: 1751117358810start-source-1751117642024-target
selected: false
source: 1751117358810start
sourceHandle: source
target: '1751117642024'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInLoop: false
sourceType: iteration
targetType: template-transform
id: 1751117358810-source-1750466469749-target
selected: false
source: '1751117358810'
sourceHandle: source
target: '1750466469749'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
isInLoop: false
iteration_id: '1751117358810'
sourceType: llm
targetType: code
id: 1751117652660-source-1751121668795-target
selected: false
source: '1751117652660'
sourceHandle: source
target: '1751121668795'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
isInLoop: false
iteration_id: '1751117358810'
sourceType: llm
targetType: code
id: 1751117823361-source-1751121668795-target
selected: false
source: '1751117823361'
sourceHandle: source
target: '1751121668795'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
isInLoop: false
iteration_id: '1751117358810'
sourceType: document-extractor
targetType: llm
id: 1751117642024-source-1751117652660-target
selected: false
source: '1751117642024'
sourceHandle: source
target: '1751117652660'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
isInLoop: false
iteration_id: '1751117358810'
sourceType: document-extractor
targetType: llm
id: 1751117642024-source-1751117823361-target
selected: false
source: '1751117642024'
sourceHandle: source
target: '1751117823361'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: false
isInLoop: false
sourceType: start
targetType: iteration
id: 1750466107735-source-1751373621053-target
selected: false
source: '1750466107735'
sourceHandle: source
target: '1751373621053'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
isInLoop: false
iteration_id: '1751373621053'
sourceType: iteration-start
targetType: document-extractor
id: 1751373621053start-source-1751373640405-target
selected: false
source: 1751373621053start
sourceHandle: source
target: '1751373640405'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
isInLoop: false
iteration_id: '1751373621053'
sourceType: document-extractor
targetType: llm
id: 1751373640405-source-1751373650354-target
selected: false
source: '1751373640405'
sourceHandle: source
target: '1751373650354'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
isInLoop: false
iteration_id: '1751373621053'
sourceType: document-extractor
targetType: llm
id: 1751373640405-source-1751373851802-target
selected: false
source: '1751373640405'
sourceHandle: source
target: '1751373851802'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
isInLoop: false
iteration_id: '1751373621053'
sourceType: llm
targetType: code
id: 1751373650354-source-1751374441285-target
selected: false
source: '1751373650354'
sourceHandle: source
target: '1751374441285'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
isInLoop: false
iteration_id: '1751373621053'
sourceType: llm
targetType: code
id: 1751373851802-source-1751374441285-target
selected: false
source: '1751373851802'
sourceHandle: source
target: '1751374441285'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInLoop: false
sourceType: iteration
targetType: template-transform
id: 1751373621053-source-1750466469749-target
selected: false
source: '1751373621053'
sourceHandle: source
target: '1750466469749'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: false
isInLoop: false
sourceType: start
targetType: iteration
id: 1750466107735-source-1751376385930-target
selected: false
source: '1750466107735'
sourceHandle: source
target: '1751376385930'
targetHandle: target
type: custom
zIndex: 0
- data:
isInIteration: true
isInLoop: false
iteration_id: '1751376385930'
sourceType: iteration-start
targetType: document-extractor
id: 1751376385930start-source-1751378023089-target
selected: false
source: 1751376385930start
sourceHandle: source
target: '1751378023089'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
isInLoop: false
iteration_id: '1751376385930'
sourceType: document-extractor
targetType: llm
id: 1751378023089-source-1751378035165-target
selected: false
source: '1751378023089'
sourceHandle: source
target: '1751378035165'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
isInLoop: false
iteration_id: '1751376385930'
sourceType: document-extractor
targetType: llm
id: 1751378023089-source-1751378038707-target
selected: false
source: '1751378023089'
sourceHandle: source
target: '1751378038707'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
isInLoop: false
iteration_id: '1751376385930'
sourceType: llm
targetType: code
id: 1751378035165-source-1751378358745-target
selected: false
source: '1751378035165'
sourceHandle: source
target: '1751378358745'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInIteration: true
isInLoop: false
iteration_id: '1751376385930'
sourceType: llm
targetType: code
id: 1751378038707-source-1751378358745-target
selected: false
source: '1751378038707'
sourceHandle: source
target: '1751378358745'
targetHandle: target
type: custom
zIndex: 1002
- data:
isInLoop: false
sourceType: iteration
targetType: template-transform
id: 1751376385930-source-1750466469749-target
selected: false
source: '1751376385930'
sourceHandle: source
target: '1750466469749'
targetHandle: target
type: custom
zIndex: 0
nodes:
- data:
desc: 请提交要读取抗生素浓度信息的文件
selected: false
title: 开始
type: start
variables:
- allowed_file_extensions: []
allowed_file_types:
- document
- image
allowed_file_upload_methods:
- local_file
label: object_file
max_length: 10
options: []
required: true
type: file-list
variable: object_file
height: 117
id: '1750466107735'
position:
x: 30
y: 427
positionAbsolute:
x: 30
y: 427
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
error_handle_mode: terminated
height: 454
is_parallel: true
iterator_selector:
- '1750466107735'
- object_file
output_selector:
- '1750466433066'
- deepseek_chat
output_type: array[object]
parallel_nums: 10
selected: false
start_node_id: 1750466144404start
title: 迭代
type: iteration
width: 1116
height: 454
id: '1750466144404'
position:
x: 334
y: 417.6196808987317
positionAbsolute:
x: 334
y: 417.6196808987317
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 1116
zIndex: 1
- data:
desc: ''
isInIteration: true
selected: false
title: ''
type: iteration-start
draggable: false
height: 48
id: 1750466144404start
parentId: '1750466144404'
position:
x: 60
y: 109.5
positionAbsolute:
x: 394
y: 527.1196808987318
selectable: false
sourcePosition: right
targetPosition: left
type: custom-iteration-start
width: 44
zIndex: 1002
- data:
desc: ''
isInIteration: true
isInLoop: false
is_array_file: true
iteration_id: '1750466144404'
selected: false
title: 文档提取
type: document-extractor
variable_selector:
- '1750466107735'
- object_file
height: 91
id: '1750466165834'
parentId: '1750466144404'
position:
x: 204
y: 88
positionAbsolute:
x: 538
y: 505.6196808987317
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1002
- data:
context:
enabled: true
variable_selector:
- '1750466165834'
- text
desc: 话术1
isInIteration: true
isInLoop: false
iteration_id: '1750466144404'
model:
completion_params: {}
mode: chat
name: deepseek-chat
provider: langgenius/deepseek/deepseek
prompt_template:
- id: bf9b5d70-f601-4f4d-9dac-f07ed861ea55
role: system
text: '阶段1:抗生素与水体类型识别:
“请从文献{{#1750466165834.text#}}
中提取以下信息:
PaperID是{{#1750466144404.index#}}
①Name:抗生素名称(如‘氧氟沙星’,需区分异构体,如‘R-氧氟沙星’);②对应的水体类型Water(如‘河水’‘海水’‘雨水’),若未明确标注‘水体’,需根据上下文推断(如‘湖泊沉积物’不属于水体)。”
阶段2:浓度与采样信息整合:
“针对上一步识别的抗生素-水体对,提取:①浓度数值Value(保留科学计数法,如‘3.2×10⁻³ μg/L’,注意标注“浓度范围”“平均值”“中位数”“未检出”等情况);②采样地点Location(精确到流域/城市,如‘长江三角洲’);③采样时间Date(精确到年月,如‘2023年5月’);④若浓度低于检测限(LOD),标注‘<LOD’及数值(如‘<0.5
ng/L’)。”
阶段3:时空数据结构化:
“将前两步结果生成环境监测数据记录,以JSON数组格式输出要求:①包含‘文献PaperID{{#1750466144404.index#}}-抗生素Name-浓度Value-水体Water-地点Location-时间Date’五要素;②地点需关联流域(如‘太湖梅梁湾’属于‘太湖流域’);③时间信息缺失时标注‘[时间未知]’。
'
retry_config:
max_retries: 3
retry_enabled: true
retry_interval: 1000
selected: false
structured_output:
schema:
additionalProperties: false
properties:
Context:
type: string
Date:
type: string
Location:
type: string
Name:
type: string
PaperID:
type: string
Unit:
type: string
Value:
type: number
Water:
type: string
required:
- PaperID
- Name
- Value
- Unit
- Water
- Location
- Date
- Context
type: object
structured_output_enabled: true
title: deepseek_chat1
type: llm
variables: []
vision:
enabled: false
height: 147
id: '1750466363404'
parentId: '1750466144404'
position:
x: 508
y: 60
positionAbsolute:
x: 842
y: 477.6196808987317
selected: true
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1002
- data:
code: "def main(arg1: object, arg2: object) -> dict:\n return {\n \
\ \"deepseek_chat\": {\n \"话术一\": arg1,\n \"话术二\"\
: arg2\n }\n }\n"
code_language: python3
desc: ''
isInIteration: true
isInLoop: false
iteration_id: '1750466144404'
outputs:
deepseek_chat:
children: null
type: object
retry_config:
max_retries: 3
retry_enabled: true
retry_interval: 1000
selected: false
title: 代码执行
type: code
variables:
- value_selector:
- '1750466363404'
- structured_output
variable: arg1
- value_selector:
- '1751007101693'
- structured_output
variable: arg2
height: 83
id: '1750466433066'
parentId: '1750466144404'
position:
x: 812
y: 92
positionAbsolute:
x: 1146
y: 509.6196808987317
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1002
- data:
desc: ''
selected: false
template: "[\r\n {% for item in arg1 %}\r\n {\r\n \"deepseek_chat\"\
: {{ item }},\r\n \"source\": \"iteration_1\"\r\n }{% if not loop.last\
\ %},{% endif %}\r\n {% endfor %}\r\n]\r\n[\r\n {% for item in arg2 %}\r\
\n {\r\n \"deepseek_coder\": {{ item }},\r\n \"source\": \"\
iteration_2\"\r\n }{% if not loop.last %},{% endif %}\r\n {% endfor\
\ %}\r\n]\r\n[\r\n {% for item in arg3 %}\r\n {\r\n \"ChatGPT_4o_mini\"\
: {{ item }},\r\n \"source\": \"iteration_3\"\r\n }{% if not loop.last\
\ %},{% endif %}\r\n {% endfor %}\r\n]\r\n[\r\n {% for item in arg4 %}\r\
\n {\r\n \"ChatGPT_41_mini\": {{ item }},\r\n \"source\": \"\
iteration_4\"\r\n }{% if not loop.last %},{% endif %}\r\n {% endfor\
\ %}\r\n]"
title: 模板转换
type: template-transform
variables:
- value_selector:
- '1750466144404'
- output
variable: arg1
- value_selector:
- '1751117358810'
- output
variable: arg2
- value_selector:
- '1751373621053'
- output
variable: arg3
- value_selector:
- '1751376385930'
- output
variable: arg4
height: 53
id: '1750466469749'
position:
x: 1518.6612375229165
y: 427
positionAbsolute:
x: 1518.6612375229165
y: 427
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
desc: ''
outputs:
- value_selector:
- '1750466469749'
- output
variable: 抗生素浓度
selected: false
title: 结束
type: end
height: 89
id: '1750466481626'
position:
x: 1805.3387624770835
y: 427
positionAbsolute:
x: 1805.3387624770835
y: 427
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
- data:
context:
enabled: true
variable_selector:
- '1750466165834'
- text
desc: 话术2
isInIteration: true
isInLoop: false
iteration_id: '1750466144404'
model:
completion_params: {}
mode: chat
name: deepseek-chat
provider: langgenius/deepseek/deepseek
prompt_template:
- id: e6e46307-9337-4ad8-8ec8-45474802bc6a
role: system
text: '请从我提供的科学文献{{#1750466165834.text#}}
中提取所有抗生素及其浓度相关信息,以JSON数组格式输出。要求包含:
PaperID是{{#1750466144404.index#}}
① Name:抗生素名称(如‘磺胺甲恶唑’,保留完整化学名);
② Value and Unit:浓度数值及单位(如‘12.5 ng/L’,环境领域常见单位:ng/L、μg/L、μg/kg(沉积物),注意标注“浓度范围”“平/均值”“中位数”“未检出”等情况)
③ Water: 水体类型(如‘地表水’‘饮用水’‘污水处理厂出水’)
④ Location & Date: 采样信息(采样地点/河流名称、采样时间,如‘长江南京段,2023年7月’)
⑤ Context: 原文上下文(段落编号或句子片段,如‘摘要第3段’‘图 2 caption’)。'
retry_config:
max_retries: 3
retry_enabled: true
retry_interval: 1000
selected: false
structured_output:
schema:
additionalProperties: false
properties:
Context:
type: string
Date:
type: string
Location:
type: string
Name:
type: string
PaperID:
type: string
Unit:
type: string
Value:
type: number
Water:
type: string
required:
- PaperID
- Name
- Value
- Unit
- Water
- Location
- Date
- Context
type: object
structured_output_enabled: true
title: deepseek_chat2
type: llm
variables: []
vision:
enabled: false
height: 147
id: '1751007101693'
parentId: '1750466144404'
position:
x: 509.42857142857156
y: 247
positionAbsolute:
x: 843.4285714285716
y: 664.6196808987318
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1002
- data:
desc: ''
error_handle_mode: terminated
height: 454
is_parallel: true
iterator_selector:
- '1750466107735'
- object_file
output_selector:
- '1751121668795'
- deepseek_coder
output_type: array[object]
parallel_nums: 10
selected: false
start_node_id: 1751117358810start
title: 迭代 2
type: iteration
width: 1116
height: 454
id: '1751117358810'
position:
x: 334
y: 921
positionAbsolute:
x: 334
y: 921
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 1116
zIndex: 1
- data:
desc: ''
isInIteration: true
selected: false
title: ''
type: iteration-start
draggable: false
height: 48
id: 1751117358810start
parentId: '1751117358810'
position:
x: 60
y: 109.5
positionAbsolute:
x: 394
y: 1030.5
selectable: false
sourcePosition: right
targetPosition: left
type: custom-iteration-start
width: 44
zIndex: 1002
- data:
desc: ''
isInIteration: true
isInLoop: false
is_array_file: true
iteration_id: '1751117358810'
selected: false
title: 文档提取2
type: document-extractor
variable_selector:
- '1750466107735'
- object_file
height: 91
id: '1751117642024'
parentId: '1751117358810'
position:
x: 204
y: 88
positionAbsolute:
x: 538
y: 1009
selected: false
sourcePosition: right
targetPosition: left
type: custom
width: 244
zIndex: 1002
- data:
context:
enabled: true
variable_selector:
- '1751117642024'
- text
desc: '话术1 '
isInIteration: true
isInLoop: false
iteration_id: '1751117358810'
model:
completion_params: {}
mode: chat
name: deepseek-coder
provider: langgenius/deepseek/deepseek
prompt_template:
- id: 963865c5-ce94-42a7-b118-2f82b32563ba
role: system
text: '请从我提供的科学文献{{#1751117642024.text#}}
中提取所有抗生素及其浓度相关信息,以JSON数组格式输出。要求包含:
PaperID是{{#1751117358810.index#}}
① Name:抗生素名称(如‘磺胺甲恶唑’,保留完整化学名);
② Value and Unit:浓度数值及单位(如‘12.5 ng/L’,环境领域常见单位:ng/L、μg/L、μg/kg(沉积物),注意标注“浓度范围”“平/均值”“中位数”“未检出”等情况)
③ Water: 水体类型(如‘地表水’‘饮用水’‘污水处理厂出水’)
④ Location & Date: 采样信息(采样地点/河流名称、采样时间,如‘长江南京段,2023年7月’)
⑤ Context: 原文上下文(段落编号或句子片段,如‘摘要第3段’‘图 2 caption’)。'
retry_config:
max_retries: 3
retry_enabled: true
retry_interval: 1000
selected: false
structured_output:
schema:
additionalProperties: false
properties:
Context:
type: string
Date:
type: string
Location:
type: string
Name:
type: string