Skip to main content

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

grammateus-0.1.1.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

grammateus-0.1.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file grammateus-0.1.1.tar.gz.

File metadata

  • Download URL: grammateus-0.1.1.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for grammateus-0.1.1.tar.gz
Algorithm Hash digest
SHA256 60bb6f91bb686a38058624463a4ead6e122363903ae91693add9071cada45acb
MD5 9403f1302cd14b4efba7d65ca6aefdaf
BLAKE2b-256 a5cdde5dbcd8c83a83b8fcb27519103fc2912c5374acd07c11b636a98fed9719

See more details on using hashes here.

File details

Details for the file grammateus-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: grammateus-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for grammateus-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 abd42e4d109835ede0b2df1d6643dbe7f7b978c8dcfd64d35351005b930cc08c
MD5 7e05f17a6ff7c8e85437759889c3b93b
BLAKE2b-256 da678c938c18df9fccdaa7f213b77d2113cfc3bcd58f2e21b47811fae1800b00

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