Skip to content

Commit

Permalink
Merge pull request #1 from dusx1981/dusx1981-patch-1
Browse files Browse the repository at this point in the history
Fix bug #2224
  • Loading branch information
dusx1981 authored Dec 21, 2024
2 parents 78c0368 + 53c2695 commit d550d0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dbgpt/serve/rag/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
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 @@ -224,6 +225,8 @@ 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}")
raise Exception(f"delete name {vector_name} failed")
Expand Down

0 comments on commit d550d0b

Please sign in to comment.