Open thiswillbeyourgithub opened 1 month ago
Shall we specifically only record any edits on documents or also the raw prompts and responses?
I'd say only the edits. Either you store the log to a textfile or to a db that is purged passed a certain date? That would be way easier to rollback but it depends how complicated is it on your codebase.
Maybe SQLlite is an option? Could be useful for other data, too.
That's what I would do in python if it were me
That’s what I would do when using go 😂
As per https://github.com/icereed/paperless-gpt/issues/20#issuecomment-2426898503
It is rather trivial in python but I have no idea regarding how to do that in the languages used in this repo.
Or maybe using docker logging driver is simpler?