Closed Chids-gs closed 4 months ago
@Chids-gs i try to fix it in my branch, you can try to use it.
Looking forward to your reply!
@SimFG Thanks for the immediate response. I took the version from your branch https://github.com/SimFG/gpt-cache/tree/main and now this issue seems to be fixed.
@Chids-gs thanks your reply
Current Behavior
We are using GPTCache with Postgres as Cache storage and PGVector as Vector Store. Following is the code that we are using for initialization
`onnx = Onnx()
gptcache version : 0.1.43
When we restart the application, we are getting the following error `data_manager=manager_factory( ^^^^^^^^^^^^^^^^ File "/home/app/.local/lib/python3.11/site-packages/gptcache/manager/factory.py", line 125, in manager_factory return get_data_manager(s, v, o, e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/app/.local/lib/python3.11/site-packages/gptcache/manager/factory.py", line 200, in get_data_manager return SSDataManager(cache_base, vector_base, object_base, eviction_base, max_size, clean_size, eviction) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/app/.local/lib/python3.11/site-packages/gptcache/manager/data_manager.py", line 247, in init self.eviction_base.put(self.s.get_ids(deleted=False)) File "/home/app/.local/lib/python3.11/site-packages/gptcache/manager/eviction/memory_cache.py", line 59, in put self._cache[obj] = True