@@ -38,14 +38,14 @@ kag_builder_pipeline:
3838 chain :
3939 type : unstructured_builder_chain # kag.builder.default_chain.DefaultUnstructuredBuilderChain
4040 extractor :
41- type : schema_free_extractor # kag.builder.component.extractor.schema_free_extractor.SchemaFreeExtractor
41+ type : knowledge_unit_extractor
4242 llm : *openie_llm
4343 ner_prompt :
44- type : default_ner # kag.builder.prompt.default.ner.OpenIENERPrompt
45- std_prompt :
46- type : default_std # kag.builder.prompt.default.std.OpenIEEntitystandardizationdPrompt
44+ type : knowledge_unit_ner
4745 triple_prompt :
48- type : default_triple # kag.builder.prompt.default.triple.OpenIETriplePrompt
46+ type : knowledge_unit_triple
47+ kn_prompt :
48+ type : knowledge_unit
4949 reader :
5050 type : dict_reader # kag.builder.component.reader.dict_reader.DictReader
5151 post_processor :
@@ -75,6 +75,7 @@ graph_api: &graph_api
7575
7676kg_cs : &kg_cs
7777 type : kg_cs_open_spg
78+ priority : 0
7879 path_select :
7980 type : exact_one_hop_select
8081 graph_api : *graph_api
@@ -85,14 +86,19 @@ kg_cs: &kg_cs
8586 search_api : *search_api
8687 recognition_threshold : 0.9
8788 exclude_types :
88- - " Chunk"
89+ - Chunk
90+ - AtomicQuery
91+ - KnowledgeUnit
92+ - Summary
93+ - Outline
94+ - Doc
8995
9096kg_fr : &kg_fr
91- type : kg_fr_open_spg
97+ type : kg_fr_knowledge_unit
9298 top_k : 20
9399 graph_api : *graph_api
94100 search_api : *search_api
95- vectorize_model : *vectorize_model
101+ vectorize_model : *vectorize_model
96102 path_select :
97103 type : fuzzy_one_hop_select
98104 llm_client : *openie_llm
@@ -109,29 +115,25 @@ kg_fr: &kg_fr
109115 search_api : *search_api
110116 recognition_threshold : 0.8
111117 exclude_types :
112- - " Chunk"
118+ - Chunk
119+ - AtomicQuery
120+ - KnowledgeUnit
121+ - Summary
122+ - Outline
123+ - Doc
113124
114125rc : &rc
115126 type : rc_open_spg
116127 vector_chunk_retriever :
117- type : vector_chunk_retriever_legacy
128+ type : vector_chunk_retriever
118129 vectorize_model : *vectorize_model
130+ score_threshold : 0.65
119131 search_api : *search_api
120132 graph_api : *graph_api
121133 search_api : *search_api
122134 vectorize_model : *vectorize_model
123135 top_k : 20
124136
125- kag_merger :
126- type : kg_merger
127- top_k : 20
128- llm_module : *chat_llm
129- summary_prompt :
130- type : default_thought_then_answer
131- vectorize_model : *vectorize_model
132- graph_api : *graph_api
133- search_api : *search_api
134-
135137kag_hybrid_executor : &kag_hybrid_executor_conf
136138 type : kag_hybrid_retrieval_executor
137139 retrievers :
@@ -142,13 +144,13 @@ kag_hybrid_executor: &kag_hybrid_executor_conf
142144 type : kag_merger
143145 enable_summary : true
144146
145-
146147kag_output_executor : &kag_output_executor_conf
147148 type : kag_output_executor
149+ llm_module : *chat_llm
148150
149151kag_deduce_executor : &kag_deduce_executor_conf
150152 type : kag_deduce_executor
151-
153+ llm_module : *chat_llm
152154
153155py_code_based_math_executor : &py_code_based_math_executor_conf
154156 type : py_code_based_math_executor
0 commit comments