A role responsible for documenting legal proceedings in Greece
Project description
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...
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file grammateus-0.1.2.tar.gz.
File metadata
- Download URL: grammateus-0.1.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
868f4686f6fc0584b7df15bb8e787c47b87855862001297779850c9ffd97a87a
|
|
| MD5 |
4a92b9040a6279663f530d52599467ec
|
|
| BLAKE2b-256 |
0b2291ab5c470365092e4e07ace5c7f112f3d6157027c64b822521c6b52d8d4e
|
File details
Details for the file grammateus-0.1.2-py3-none-any.whl.
File metadata
- Download URL: grammateus-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e2757a906f1ba6253ea4b96538a62dbae00abf620a4c876f67c548fbc837069
|
|
| MD5 |
529d4c933274221421416deabcda4887
|
|
| BLAKE2b-256 |
e7ecac3e6c5fb87044dc5bbe99dfde03c1a2501b4f816e012aa2697f72eb3674
|