icereed / paperless-gpt

Use LLMs and LLM Vision to handle paperless-ngx
MIT License
88 stars 5 forks source link

Feature Request: logfile for safe backtracking #24

Open thiswillbeyourgithub opened 1 month ago

thiswillbeyourgithub commented 1 month ago

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?

icereed commented 1 month ago

Shall we specifically only record any edits on documents or also the raw prompts and responses?

thiswillbeyourgithub commented 1 month ago

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.

icereed commented 1 month ago

Maybe SQLlite is an option? Could be useful for other data, too.

thiswillbeyourgithub commented 1 month ago

That's what I would do in python if it were me

icereed commented 1 month ago

That’s what I would do when using go 😂