ngdwtrg commited on
Commit
6bda280
·
1 Parent(s): db50f20

update requirement

Browse files
Files changed (1) hide show
  1. utils/vectorDB.py +1 -0
utils/vectorDB.py CHANGED
@@ -20,6 +20,7 @@ if index_name not in pc.list_indexes().names():
20
  )
21
 
22
  def create_retriever(chunks, embeddings):
 
23
  vector_store = PineconeVectorStore.from_documents(
24
  chunks, embeddings, index_name=index_name
25
  )
 
20
  )
21
 
22
  def create_retriever(chunks, embeddings):
23
+ pc.Index(index_name).delete(delete_all=True)
24
  vector_store = PineconeVectorStore.from_documents(
25
  chunks, embeddings, index_name=index_name
26
  )