Spaces:
Sleeping
Sleeping
updated app file
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ limit = 5000
|
|
| 15 |
|
| 16 |
embed_model = "text-embedding-ada-002"
|
| 17 |
|
| 18 |
-
index_name = '
|
| 19 |
index = pinecone.Index(index_name)
|
| 20 |
|
| 21 |
# retrieve relevant answers
|
|
@@ -68,7 +68,7 @@ def complete(prompt):
|
|
| 68 |
messages=[
|
| 69 |
{
|
| 70 |
"role": "system",
|
| 71 |
-
"content": "Answer the question based on the context below."
|
| 72 |
},
|
| 73 |
{
|
| 74 |
"role": "user",
|
|
|
|
| 15 |
|
| 16 |
embed_model = "text-embedding-ada-002"
|
| 17 |
|
| 18 |
+
index_name = 'consulting-docs'
|
| 19 |
index = pinecone.Index(index_name)
|
| 20 |
|
| 21 |
# retrieve relevant answers
|
|
|
|
| 68 |
messages=[
|
| 69 |
{
|
| 70 |
"role": "system",
|
| 71 |
+
"content": "Answer the question based on the context below and the document provided."
|
| 72 |
},
|
| 73 |
{
|
| 74 |
"role": "user",
|