Skip to content

Commit

Permalink
清理缓存逻辑放入 chroma store
Browse files Browse the repository at this point in the history
  • Loading branch information
dusx1981 authored Dec 23, 2024
1 parent 53c2695 commit 9debf93
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dbgpt/serve/rag/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import copy
import logging
import os
import chromadb
from collections import defaultdict
from typing import Any, DefaultDict, Dict, List, Optional, Tuple, Type, cast

Expand Down Expand Up @@ -225,7 +224,6 @@ def delete_vector_name(self, vector_name: str):
try:
if self.vector_name_exists():
self.client.delete_vector_name(vector_name)
chromadb.api.client.SharedSystemClient.clear_system_cache()
del pools[self._vector_store_type][vector_name]
except Exception as e:
logger.error(f"delete vector name {vector_name} failed: {e}")
Expand Down

0 comments on commit 9debf93

Please sign in to comment.