Skip to content

[Feature] Ability to build docstrings (prompts) dynamically #7784

Open
@denisergashbaev

Description

@denisergashbaev

What feature would you like to see?

Hello! It would be very useful, if DSPy would allow loading prompts from external sources (such as databases, files, etc). It would be also useful if we could construct docstrings (that are converted to prompts) dynamically: ie, referencing variables in the module file (for example, to build a list of instructions for different entities, or specifying a particular language).

Right now, the static nature of docsrings limit quite a good number of potential use cases.

Thank you

Would you like to contribute?

  • Yes, I'd like to help implement this.
  • No, I just want to request it.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions