supertskone commited on
Commit
fd743bb
·
verified ·
1 Parent(s): 8c45fab

Update app/vectorizer.py

Browse files
Files changed (1) hide show
  1. 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
- 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
 
 
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