Spaces:
Sleeping
Sleeping
Update app/vectorizer.py
Browse files- app/vectorizer.py +9 -9
app/vectorizer.py
CHANGED
@@ -37,15 +37,15 @@ class Vectorizer:
|
|
37 |
if self.pinecone_index_name not in existing_indexes:
|
38 |
logger.info(f"Creating Pinecone index: {self.pinecone_index_name}")
|
39 |
if self._init_pinecone:
|
40 |
-
pinecone.create_index(
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
)
|
49 |
else:
|
50 |
logger.info(f"Pinecone index {self.pinecone_index_name} already exists")
|
51 |
|
|
|
37 |
if self.pinecone_index_name not in existing_indexes:
|
38 |
logger.info(f"Creating Pinecone index: {self.pinecone_index_name}")
|
39 |
if self._init_pinecone:
|
40 |
+
# pinecone.create_index(
|
41 |
+
# name=self.pinecone_index_name,
|
42 |
+
# dimension=768,
|
43 |
+
# metric='cosine',
|
44 |
+
# spec=ServerlessSpec(
|
45 |
+
# cloud="aws",
|
46 |
+
# region="us-east-1"
|
47 |
+
# )
|
48 |
+
# )
|
49 |
else:
|
50 |
logger.info(f"Pinecone index {self.pinecone_index_name} already exists")
|
51 |
|