ababio commited on
Commit
6f298fb
1 Parent(s): 94aa503

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -10
app.py CHANGED
@@ -22,16 +22,6 @@ client = OpenAI(api_key=openai_api_key)
22
  # Initialize connection to Pinecone
23
  pc = PineconeGRPC(api_key=pinecone_api_key)
24
 
25
- # Define the spec for the Pinecone index
26
- spec = ServerlessSpec(
27
- replicas=1,
28
- pod_type="p1"
29
- )
30
-
31
- # Initialize your index
32
- if index_name not in pc.list_indexes():
33
- pc.create_index(name=index_name, dimension=1536, spec=spec)
34
-
35
  pinecone_index = pc.Index(index_name)
36
 
37
  # Initialize VectorStore
 
22
  # Initialize connection to Pinecone
23
  pc = PineconeGRPC(api_key=pinecone_api_key)
24
 
 
 
 
 
 
 
 
 
 
 
25
  pinecone_index = pc.Index(index_name)
26
 
27
  # Initialize VectorStore