Skip to main content

a flexible prompt renderer for large language models (LLMs)

Project description

flex[prompt]

Large language models have maximum context window—a maximum number of tokens they can receive and produce. You may have noticed this:

Error message showing a model's maximum content length being exceeded

Flex prompt addresses this by fitting your prompt into the model's context window. You provide a flexible prompt template, flex prompt renders it into model input.

Flex prompt does not handle model execution, but integrates well with execution frameworks like LangChain and Haystack.

Check out the intro to flex prompt colab (github link) for usage and examples.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flex_prompt-0.0.4.tar.gz (80.4 kB view hashes)

Uploaded Source

Built Distribution

flex_prompt-0.0.4-py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page