CatchTheTornado / doctor-dok

Doctor Dok is an AI based medical data framework and patient's med vault. Parse any health related PDF/Image to JSON and then use Chat GPT / LLama to discuss it! WARNING: Don't decide on your health based on AI Chat - it's just for Research purposes.
http://doctordok.com
MIT License
56 stars 10 forks source link

[feat] Store the estimated stats #134

Open pkarw opened 2 months ago

pkarw commented 2 months ago

Right now we are storing stats just for the AI request that ended, but when the request is interrupted, we simply lose usage for this one. Maybe we should store it before the request is being executed or maybe Sztor estimated versus real usage that way we won't lose anything.

pkarw commented 2 months ago

We can add a stats record save it's id and when passed with the next request simply replace the estimate with the real usage

pkarw commented 2 months ago

The other option which is probably better bc it's not exposing any delete operations is to store the estimated values in additional columns