maitrix-org / llm-reasoners

A library for advanced large language model reasoning
https://www.llm-reasoners.net/
Apache License 2.0
1.47k stars 125 forks source link

demo.ipynb can't run #101

Open strong-leaf opened 1 month ago

strong-leaf commented 1 month ago

hi when i run demo.ipynb
with open('/root/llm-reasoners/examples/CoT/blocksworld/prompts/pool_prompt_v1.json') as f: prompt = json.load(f) #/root/llm-reasoners/examples evaluator = BWEvaluator(config_file='/root/llm-reasoners/examples/CoT/blocksworld/data/bw_config.yaml', domain_file='/root/llm-reasoners/examples/CoT/blocksworld/data/generated_domain.pddl', data_path='/root/llm-reasoners/examples/CoT/blocksworld/data/split_v1/split_v1_step_4_data.json', init_prompt=prompt) prompt = evaluator.sample_prompt(shuffle_prompt=False, num_shot=4) example = evaluator.full_dataset[1] cot_inputs = (prompt['icl'].replace('', example["init"]) .replace('', example["goal"]) .replace('', ''))

it appear: tarski.io._fstrips.reader.ParsingError: line 3:9 mismatched input 'problem' expecting 'domain'

Ber666 commented 4 weeks ago

Hi, I tried running the notebook today but couldn't reproduce the error. Could you confirm you have followed our README to install all required libraries and properly cloned LLMs-Planning @ 34e6841 (if you cloned our library with --recursive it should be automatically done) which contains the dataset?