#55Knife-Archive format for all chats

  • avatar~clovercommented · 1 hour ago
    Author
    Owner

    TLDR: SQLite is the wrong tool for the job of storing transcripts. .knar is a magic format that

    • Stores highly compressed AI transcripts
    • O(1) seek to any point in the chat thread without decompressing. Sends compressed chunks over the wire.
    • Multi-reader single-writer.
    • Solves basically all sqlite contention issues which cause threads, especially over the network, to load very slow.

    We use it right now for when a chat is marked "Done", but this issue is to use it all the time, since nothing about the format is bad for in-progress chats. v0.2.x will support both formats, and v0.3 will drop it once it's proven stable.

  • avatar~clover changed the status to Todo · 1 hour ago