Skip to content

Split up the AI call #44

@rupertj

Description

@rupertj

Previously we had one call per page, which worked, but lacked context across the entire publication, which lead to titles being repeated and page breaks matching the original document, which didn't necessarily work on a website.

The current method is to combine the document's entire content into one, and then send that to the AI for formatting and pagination. This works, but requires some very specific prompting, and a model like Claude Sonnet 3.7 that can handle very long inputs and outputs. I suspect that extending this further should we want to make the AI do more in the future will be tricky.

It may be better to use multiple calls for different things. For example:

I haven't tried this yet, so it'd need a proof of concept to see if it works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions