openvector_dev 0.1.14__tar.gz → 0.1.15__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/PKG-INFO +1 -1
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/pyproject.toml +1 -1
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/src/lein_vector/api/facade.py +13 -3
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/README.md +0 -0
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/src/lein_vector/__init__.py +0 -0
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/src/lein_vector/api/__init__.py +0 -0
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/src/lein_vector/bases/__init__.py +0 -0
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/src/lein_vector/bases/embeding_provider_abc.py +0 -0
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/src/lein_vector/bases/memory_manager_abc.py +0 -0
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/src/lein_vector/memory_manager_qdrant.py +0 -0
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/src/lein_vector/memory_manager_ram.py +0 -0
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/src/lein_vector/qdrant_adapter.py +0 -0
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/src/lein_vector/redis_short_term.py +0 -0
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/src/lein_vector/schemas/__init__.py +0 -0
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/src/lein_vector/schemas/chunk.py +0 -0
- {openvector_dev-0.1.14 → openvector_dev-0.1.15}/src/lein_vector/sentence_transformer.py +0 -0
@@ -243,12 +243,22 @@ class Memory:
|
|
243
243
|
|
244
244
|
async def delete_memory(self, user_id: int, bot: str) -> None:
|
245
245
|
"""
|
246
|
-
|
247
|
-
|
248
|
-
|
246
|
+
Полная очистка памяти данного (user_id, bot):
|
247
|
+
• short-term (Redis)
|
248
|
+
• long-term (Qdrant)
|
249
|
+
• внутренние счётчики фасада (_msg_no, _gift_fail)
|
249
250
|
"""
|
251
|
+
# 1) short-term (Redis list)
|
252
|
+
await self.short.clear(user_id=user_id, bot=bot)
|
253
|
+
|
254
|
+
# 2) long-term (Qdrant)
|
250
255
|
await self.long.delete_all(user_id, bot)
|
251
256
|
|
257
|
+
# 3) локальные счётчики
|
258
|
+
self._msg_no.pop((user_id, bot), None)
|
259
|
+
self._gift_fail.pop((user_id, bot), None)
|
260
|
+
|
261
|
+
|
252
262
|
@staticmethod
|
253
263
|
def _chunk_texts(chunks: Sequence[Chunk | ChunkPayload]) -> list[str]:
|
254
264
|
"""
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{openvector_dev-0.1.14 → openvector_dev-0.1.15}/src/lein_vector/bases/embeding_provider_abc.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|