Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Provide a way for Image / Document caching for supported Platforms #319

@bjalt

Description

@bjalt

When processing large images or documents (file) with every request the files is send as encoded data. This increases the token usage since every time the file needs to be ingested again. Especially with Tool Calling this leads to a high usage of tokens.

To mitigate this issues some platforms provide a way to cache input files. It would be nice to fine a way to enable caching.

For Reference Purposes:

Activity

changed the title [-]Add Image / Document caching for supported Platforms[/-] [+]Provide a way for Image / Document caching for supported Platforms[/+] on May 19, 2025
bjalt

bjalt commented on May 19, 2025

@bjalt
ContributorAuthor

See also #317. That issue might be related though it specifically provides an example for tool calling. I'm more interested in caching large portions of prompt content.

chr-hertel

chr-hertel commented on May 22, 2025

@chr-hertel
Member

Sounds like a good addition - would be great if LLM Chain can handle that right away 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Provide a way for Image / Document caching for supported Platforms · Issue #319 · php-llm/llm-chain