No project description provided
Project description
DocChain
This package can be used to generate complex structured documents from Specs using LLMm models.
Document is an abstraction that represent generated data, e.g. it could be any text data in
markdown or HTML, configuration in JSON, YAML or other formats, Python objects or classes, or any
other data that can be generated by LLMs.
Spec contains document requirements. It holds general information about the generated document.
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 can be configured with a list
of steps that are executed before or after generation.
Middleware is a callable that can modify Spec or the generated Documents. It acts the same as
middleware in an HTTP framework, it can be used for variety of tasks. E.g. transforming, formatting
or linting generated document ot its parts.
TODO
- Store stats in an SQLite database.
- Blocks for HTML, Markdown, Python, one line Python, templates.
- Add middleware to plan steps.
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 docchain-0.0.7.tar.gz.
File metadata
- Download URL: docchain-0.0.7.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6c24772d7b4d350edc37f96581ff1097ab4efea545787e5ad5994206868ca16
|
|
| MD5 |
f2ec52eb3100faca9c81da84e0690dd5
|
|
| BLAKE2b-256 |
ce75e8f303eab72699fedacdee8b33b407df659bada75909a02984cae988d516
|
File details
Details for the file docchain-0.0.7-py3-none-any.whl.
File metadata
- Download URL: docchain-0.0.7-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a28e36d68e60c8ac4cb3346589fbc270767f5c1b095b23aca7a5635d98f077f5
|
|
| MD5 |
b69809a631603693230fec5137667b1f
|
|
| BLAKE2b-256 |
455ae91e836c27e4d04ff065ed291c751ce4a274d01335d91712b0aa9f0244a5
|