Raghav001 commited on
Commit
388d8ef
·
1 Parent(s): e43155c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -256,8 +256,8 @@ def pine(data):
256
  c = c+1
257
 
258
 
259
- # Embedding_model = "text-embedding-ada-002"
260
- # embeddings = OpenAIEmbeddings(openai_api_key="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")
261
 
262
  # print(requests.post(url = chat_emd))
263
 
@@ -266,12 +266,12 @@ def pine(data):
266
  # # headers=headers
267
  # # )
268
 
269
- # pinecone.init(api_key = "ffb1f594-0915-4ebf-835f-c1eaa62fdcdc",
270
- # environment = "us-west4-gcp-free"
271
- # )
272
 
273
- # index_name = "test"
274
- # docstore = Pinecone.from_texts([d for d in doc_spilt],embeddings,index_name = index_name,namespace='a1')
275
 
276
  return ''
277
 
 
256
  c = c+1
257
 
258
 
259
+ Embedding_model = "text-embedding-ada-002"
260
+ embeddings = OpenAIEmbeddings(openai_api_key = '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')
261
 
262
  # print(requests.post(url = chat_emd))
263
 
 
266
  # # headers=headers
267
  # # )
268
 
269
+ pinecone.init(api_key = "ffb1f594-0915-4ebf-835f-c1eaa62fdcdc",
270
+ environment = "us-west4-gcp-free"
271
+ )
272
 
273
+ index_name = "test"
274
+ docstore = Pinecone.from_texts([d for d in doc_spilt],embeddings,index_name = index_name,namespace='a1')
275
 
276
  return ''
277