Update app.py
Browse files
app.py
CHANGED
|
@@ -256,22 +256,22 @@ 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 |
|
| 264 |
-
# embeddings = requests.post(url=chat_emd,
|
| 265 |
-
# data=json.dumps(data),
|
| 266 |
-
# headers=headers
|
| 267 |
-
# )
|
| 268 |
|
| 269 |
-
pinecone.init(api_key = "ffb1f594-0915-4ebf-835f-c1eaa62fdcdc",
|
| 270 |
-
|
| 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 |
|
| 264 |
+
# # embeddings = requests.post(url=chat_emd,
|
| 265 |
+
# # data=json.dumps(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 |
|