Poetry and LLM fixes (#1508)

This commit is contained in:
Dev Khant
2024-07-20 10:49:15 +05:30
committed by GitHub
parent 51fd7db205
commit 0c9c5fe9c2
9 changed files with 26 additions and 1556 deletions

View File

@@ -1,3 +1,5 @@
import os
import shutil
import logging
from typing import Optional
@@ -50,6 +52,8 @@ class Qdrant(VectorStoreBase):
params = {}
if path:
params["path"] = path
if os.path.exists(path) and os.path.isdir(path):
shutil.rmtree(path)
if api_key:
params["api_key"] = api_key
if url: