Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaning LLM-generated pddl problem files #8

Open
haomengz opened this issue Sep 26, 2023 · 1 comment
Open

Cleaning LLM-generated pddl problem files #8

haomengz opened this issue Sep 26, 2023 · 1 comment

Comments

@haomengz
Copy link

Thanks for the nice work!

I am wondering when you use LLM to generate pddl problem files, how do you handle the cleaning, i.e. removing the extra text other than pddl file. I have tried several LLM models and the pddl problem files would contain other text.

@YuqianJiang
Copy link
Collaborator

Thank you for your interest! I have found that adding this line to the prompt was enough for GPT-4: "Only return the PDDL file. Do not return anything else."

If you continue to get extra text, maybe you can try to parse the output and look for the start and end of PDDL code. For instance (define (problem ...) (:goal ...))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants