Skip to content

Commit 91503da

Browse files
authored
feat: llm and rule both in use (#93)
* feat: llm and rule both in use * feat: change dir and files * feat: change name
1 parent 718a2b6 commit 91503da

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
from dingo.exec import Executor
2+
from dingo.io import InputArgs
3+
4+
input_data = {
5+
"input_path": "../../test/data/test_local_jsonl.jsonl", # local filesystem dataset
6+
"save_data": True,
7+
"save_correct": True,
8+
"dataset": "local",
9+
"data_format": "jsonl",
10+
"column_content": "content",
11+
"custom_config":
12+
{
13+
"rule_list": ["RuleColonEnd"],
14+
"prompt_list": ["PromptRepeat"],
15+
"llm_config":
16+
{
17+
"LLMTextQualityPromptBase":
18+
{
19+
"key": "enter your key, such as:EMPTY",
20+
"api_url": "enter your local llm api url, such as:http://127.0.0.1:8080/v1",
21+
}
22+
}
23+
},
24+
"log_level": "INFO"
25+
}
26+
input_args = InputArgs(**input_data)
27+
executor = Executor.exec_map["local"](input_args)
28+
result = executor.execute()
29+
print(result)

0 commit comments

Comments
 (0)