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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file flex_prompt-0.0.4.tar.gz.

File metadata

  • Download URL: flex_prompt-0.0.4.tar.gz
  • Upload date:
  • Size: 80.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for flex_prompt-0.0.4.tar.gz
Algorithm Hash digest
SHA256 c020d8aac5ee2a8c830e1ef78210baa2af1308f063682cdca6eb77615de1b53a
MD5 6fb3fe9815cf3bd8b1c2e14a0969c9d9
BLAKE2b-256 0fb5b0f4a602718d240f553c0c6c941c9165e5798c9fd89489baeb740c3206fd

See more details on using hashes here.

File details

Details for the file flex_prompt-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: flex_prompt-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for flex_prompt-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f0a518cda947659af714addb41a489f78b778f6380230137f1e7a37c1697d310
MD5 ed510ae6d3ef8b6e9f566b2d7c8459cf
BLAKE2b-256 3499886ed56e8f2d58d60ca5a0ecaf5a77598d8cc845749aee287a113d908e99

See more details on using hashes here.

Supported by

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