Skip to main content

No project description provided

Project description

Doc Chain

This package can be used to generate complex structured documents from specification using LLMm models.

Document is an abstraction that represent generated data e.g. text in markdown or HTML, configuration in JSON, YAML or other formats, it could be Python objects or classes, or any other structure that can be generated by LLMs.

Spec contains document requirements that can vary depending on type of generated document, e.g. for YAML or JSON docs it could include JSON Schema definition.

Section is a composite part of a Document. Document itself is a Section. Such design allows inclusion of Documents inside another documents.

Generator generates Document from the provided Spec. Each generator cna be configured with a list of steps that are executed before or after generation.

Step is a callable that can modify Spec or generated Document. It could be thought as middleware in an HTTP framework and cna be used for variety of tasks.

TODO

  • Implement checkpoints and resume generation from checkpoint on failure.

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

docchain-0.0.4.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

docchain-0.0.4-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for docchain-0.0.4.tar.gz
Algorithm Hash digest
SHA256 2686bf93074c305f76890189d448b8d8b07b29c0eb300e5c49f4ed57014a8d58
MD5 5e16c04eb3b832481340d333433cc9ea
BLAKE2b-256 2b3e27069d8804076effd6621eb04764bc5c2767e5b590af7b5d3dd1e77b0e70

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for docchain-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6c8a874f4a4cc186963b5f16e81e09be2a14020d401b8a501d676f9a862b3abc
MD5 586534172df482c95a035a89dd3d1ee6
BLAKE2b-256 48b18b42a069bdfedba44fc4620beafc0eca89b2b7164fa6fab9a96af9a49e09

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