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 hashes)

Uploaded Source

Built Distribution

docchain-0.0.3-py3-none-any.whl (9.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page