Spaces:
Sleeping
Sleeping
Update app/vectorizer.py
Browse files- app/vectorizer.py +1 -2
app/vectorizer.py
CHANGED
@@ -24,7 +24,7 @@ class Vectorizer:
|
|
24 |
self.model = SentenceTransformer(model_name)
|
25 |
self.prompts = []
|
26 |
self.batch_size = batch_size
|
27 |
-
self.pinecone_index_name = "prompts-index"
|
28 |
self._init_pinecone = init_pinecone
|
29 |
self._setup_pinecone()
|
30 |
self._load_prompts()
|
@@ -41,7 +41,6 @@ class Vectorizer:
|
|
41 |
if self.pinecone_index_name not in existing_indexes:
|
42 |
logger.info(f"Creating Pinecone index: {self.pinecone_index_name}")
|
43 |
if self._init_pinecone:
|
44 |
-
pinecone.delete_index(self.pinecone_index_name)
|
45 |
pinecone.create_index(
|
46 |
name=self.pinecone_index_name,
|
47 |
dimension=768,
|
|
|
24 |
self.model = SentenceTransformer(model_name)
|
25 |
self.prompts = []
|
26 |
self.batch_size = batch_size
|
27 |
+
self.pinecone_index_name = "search-prompts-index"
|
28 |
self._init_pinecone = init_pinecone
|
29 |
self._setup_pinecone()
|
30 |
self._load_prompts()
|
|
|
41 |
if self.pinecone_index_name not in existing_indexes:
|
42 |
logger.info(f"Creating Pinecone index: {self.pinecone_index_name}")
|
43 |
if self._init_pinecone:
|
|
|
44 |
pinecone.create_index(
|
45 |
name=self.pinecone_index_name,
|
46 |
dimension=768,
|