Spaces:
Running
Running
added retrrieval to UI
Browse files- __pycache__/retrieval.cpython-39.pyc +0 -0
- retrieval.py +1 -2
__pycache__/retrieval.cpython-39.pyc
ADDED
Binary file (2.89 kB). View file
|
|
retrieval.py
CHANGED
@@ -39,8 +39,7 @@ class Retrieval:
|
|
39 |
#pinecone.init(api_key=os.environ['PINECONE_API_KEY'], environment="us-west1-gcp")
|
40 |
pinecone.init(api_key=PINECONE_API_KEY, environment="us-west1-gcp")
|
41 |
pincecone_index = pinecone.Index("uiuc-chatbot")
|
42 |
-
|
43 |
-
|
44 |
self.vectorstore = Pinecone(index=pincecone_index, embedding_function=embeddings.embed_query, text_key="text")
|
45 |
|
46 |
|
|
|
39 |
#pinecone.init(api_key=os.environ['PINECONE_API_KEY'], environment="us-west1-gcp")
|
40 |
pinecone.init(api_key=PINECONE_API_KEY, environment="us-west1-gcp")
|
41 |
pincecone_index = pinecone.Index("uiuc-chatbot")
|
42 |
+
|
|
|
43 |
self.vectorstore = Pinecone(index=pincecone_index, embedding_function=embeddings.embed_query, text_key="text")
|
44 |
|
45 |
|