Custom LLM for Document template and its html Form generation from big documents (>40 pages)

Hi, so I have struggled with this problem a lot and found a lot of solutions and but I haven’t been able to automate it

Problem

  • Input: A word document with many form elements like Name, Id, Test results, Test subject images etc ( which is inside a word table )
  • Output: A Word Template which is filled by a html form ( which is easier to fill out for a tester on any device) like documentero but automatic ( not manual )

What I have tried ( that works for now)

  • Using docxtpl to fill out manually created word jinja templates which can be filled by html forms. This is the only viable solution that works flawlessly except for being a very manual process and can’t scale if I want to create 40 documents of 40 pages

What I want

  • A llm or a nlp model that can create the same docxtpl template for me in that word file and a corresponding html form with the same elements ( with same ids, names so that when I click submit, it automatically creates a word document from that template

Example template

{{ Name }} {{ Description }}
{% for {{name}} in {{person}} %} {% for {{desc}} in {{descriptions}} %}

Output document

Name Description
John Doe A software engineer with a passion for coding.
Jane Smith An artist who loves to express through paintings.
Michael Johnson A dedicated teacher committed to student success.
Emily Brown A marketing professional with a flair for creativity.

=========

Thx in advance :hugging: