Context control for LLM inference on a per-token basis
Project description
Incontinuity
Context control for LLM inference on a per-token basis
Incontinuity allows developers to modify the context prompt after each token is generated by an LLM. Instead of waiting for the entire LLM output to be generated, developers can now control the prompt and outputs at any point in the generation.
For example, instead of waiting for an LLM to generate some typed XML code, you can make a ContextController
that will backtrack and add context to the prompt if the LLM makes a mistake in the generation.
Think of it like using an IDE. You're writing code and you made a typo, so you go back and fix it. Oh no, you used the wrong type, so you go back and fix it. Incontinuity allows you to do the same thing with LLMs.
I've been working on LLM agents since the inception of LLMs and I've always wanted to have this level of control. I havent seen any packages for this, so I decided to create one. I hope you find it useful!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file incontinuity-0.0.0.tar.gz
.
File metadata
- Download URL: incontinuity-0.0.0.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | deae27ccd15ad7139270c1933fea2d782f6f83c9ac6bb9b6f1e9979bdc8102ed |
|
MD5 | de8359f2b02a20df3a077a51d9337ee3 |
|
BLAKE2b-256 | 28f7725fa5eb636cd4a8fc23a6cfa25713ca214f9ed0b24a39612c87e69265de |
File details
Details for the file incontinuity-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: incontinuity-0.0.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Darwin/23.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1f6864ff66a81556073be6315868d1be7d2c7885557a4cc0987b8423e93348f |
|
MD5 | 430f8c199a9008c7fa07e3231854bfb2 |
|
BLAKE2b-256 | 67f9a6a70ef2cab2eee8080aba73189654200d15663372fb43a4c19866e96fe6 |