Grammateus
In ancient Greece the specific role responsible for documenting
legal proceedings, similar to a scribe or notary, was called a
"grammateus" (γραμματεύς).
Documenting interactions with Language Models requires several types of records, namely: a 'technical log' - the exact queries presented to the Model through the API and API responses; a 'conversation history' - the formatted messages and responses that can be re-sent back to the model (a local 'cache'); and, finally, a human-readable 'record of conversation' which can be easily ingested back into the Python code querying the Model and transformed for continuation of the conversation.
The first and second tasks are easily solvable with jsonlines library and jl format. It took me some time to realize that the best format for human-readable record is YAML.
There are two main reasons for that: YAML lets you drop double quotes, and YAML (unlike JSON)permits comments which are absolutely necessary if you are systematically working on natural language interactions with Language Models.
In particular, a human-readable record of conversation can look like this:
- instruction: Be an Abstract Intellect. # this is a comment
- Human: Let's talk about Human Nature. # this is a comment
- machine: Yes, let's do that, it's a complex topic...
Metadata
Release files for grammateus 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| grammateus-0.1.3.tar.gz | 8.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| grammateus-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.9 kB
Release files / grammateus-0.1.3.tar.gz
| Download URL | grammateus-0.1.3.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0e97cae01c1f928f267db3bcac04fcc5fd3ab1dbfcf4a866764b04e55c73a3e
|
|
BLAKE2b-256 checksum How to use checksums |
24e8ff19dbf5d372e31b2b2b488e286ab8f4d210ca21cf0b350a1b22e1ef5749
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.22
|
Release files / grammateus-0.1.3-py3-none-any.whl
| Download URL | grammateus-0.1.3-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c04357dd3742305a6508d4bb324b7c545ec54aa5ba3059ec07b00e0ea4cf5ac8
|
|
BLAKE2b-256 checksum How to use checksums |
13569be8bfddb4a50eab5c5fa9c84abc7591915712e98bd3d118629671af939e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.22
|
Security for grammateus 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.