Skip to content

Serializing/Deserializing guides (+ caching) #1656

@RobinPicard

Description

@RobinPicard

The goal is to allow users to save/load the index to/from disk and re-use it. After this we can re-enable caching. This may require changes in outlines-core for serialization/deserialization of the index.

generator = Generator(model, OutputType)
generator.to_disk("...")

generator = Generator.from_disk("...")

Open question: should we compress large indexes?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions