prompt template

A prompt with placeholders that code fills in for each request, such as the user's question or retrieved passages.

In more detail

Keep templates in the repository with a version, fence each inserted part in a named section, and escape inserted text so it cannot close a section early. Rendering in one function keeps every request consistent and testable.

Related terms

Taught in

References

Certification courses