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.
  • Publish to PyPI.

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.3.tar.gz (5.9 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.3-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: docchain-0.0.3.tar.gz
  • Upload date:
  • Size: 5.9 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.3.tar.gz
Algorithm Hash digest
SHA256 23db558eacf071fa8e6747cbf8d323efde08dfb2fd709fc1273b29aed8fd32af
MD5 914b1953a7217e36816539c5cacf6644
BLAKE2b-256 9bf1cae7a04e9b2da5e6cc698689d7bcd0d78fe9133b942427097e45f1d080cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: docchain-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8ea1c3f711e5471673ef49e10a4cbc783d15097ae1a804eccb47712a700d04d9
MD5 97714b674b7b3b3c633583fa97125a52
BLAKE2b-256 4096abc146755561987c94f36ca0aa661d0cab8f12a46cf2e09f47391c78abde

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