Poetry and LLM fixes (#1508)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user