update requirement
Browse files- 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 |
)
|