Skip to content

Auto-included Context Files for recipes #4042

@millsaj

Description

@millsaj

Please explain the motivation behind the feature request.
Does this feature solve a particular problem you have been experiencing? What opportunities or use cases would be unlocked with this feature?

I have a typst document that I am generating multiple versions of based on some input. I have 1 recipe with 2 sub recipes for this process. It works well but is a little inefficient when it comes to API calls made.

The problem I have is that the required context is larger than I can convey in instructions and prompt.
I have documents the LLM needs to interact with (like a .typ file it will need to edit and then compile) - merging this content into the recipe .yaml would mean loss of important context.

Describe the solution you'd like
A clear and concise description of what you want to happen.

I'd like an extra field in the recipe YAML that allows us to define some file paths to files that will be automatically included (as a separate system or user message).

I'd also expect this to be usable in the desktop and cli interfaces (as well as the yaml)

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

What I have now is I copy the files into a directory and I tell the LLM to read the files. It is okay but is unnecessarily slow.

Another (maybe better) option would be: instead of a list of files; configure a command to run on the recipe startup and before the LLM. Something like this might work.

startup:
  cmd: "python"
  args: ["./scripts/startup.py"]

Additional context
Add any other context or screenshots about the feature request here.

  • I have verified this does not duplicate an existing feature request

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions