Do we have the option to add/modify prompt? #91
Replies: 1 comment 2 replies
-
Thanks for checking us out! You can use "-p word_count" to specify the number of words in the answer, e.g.: leet flow -t answer -q "How does GraphRAG work?" -k graphrag -p word_count=200 -l info The default behavior is to let the LLM decide how many words in the answer. Basically, if the parameter is set, we add the following instruction in the prompt: def word_count_instruction(word_count: int) -> str: If this simple option can't satisfy your requirement, you can go src/leettools/core/strategy/predefined/default/inference_up_default.txt to modify the user prompt directly. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Great Work!!!
I'm exploring your work, If I want to change the prompt to keep the answers short. Where do I change that?
Beta Was this translation helpful? Give feedback.
All reactions