Update app.py
Browse files
app.py
CHANGED
|
@@ -155,7 +155,7 @@ def fileSearch(index_name, prompt):
|
|
| 155 |
docsearch = Pinecone.from_existing_index(index_name, embeddings)
|
| 156 |
docs = docsearch.similarity_search(prompt)
|
| 157 |
|
| 158 |
-
return ["#Top1 context
|
| 159 |
|
| 160 |
|
| 161 |
|
|
|
|
| 155 |
docsearch = Pinecone.from_existing_index(index_name, embeddings)
|
| 156 |
docs = docsearch.similarity_search(prompt)
|
| 157 |
|
| 158 |
+
return ["# Top1 context:\n" + docs[0].page_content, "# Top2 context:\n" + docs[1].page_content, "# Top3 context:\n" + docs[2].page_content]
|
| 159 |
|
| 160 |
|
| 161 |
|