chainlite icon indicating copy to clipboard operation
chainlite copied to clipboard

Allow wildcards in llm_config for prompt_dirs

Open duskybomb opened this issue 6 months ago • 0 comments

I have multiple agents, and all of them have some agent-specific prompts. The prompts are present inside an agent-specific dir. Like this:

- agent_1/
    - some_file.py
    - prompts/
- agent_2/
    - some_file.py
    - prompts/

It would be nice to be able to use wildcard (*) in the llm_config.yaml like this:

prompt_dirs: # List of directories containing prompt files, relative to the location of this file
  - "./my_lib/prompts/"
  - "./tests/"
  - "./my_lib/agents/*/prompts/"

This could be implemented modifying L85 in llm_config.py using glob()

duskybomb avatar Aug 01 '24 22:08 duskybomb