Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -154,7 +154,7 @@ class Chatbot():
|
|
154 |
return results.head(n)
|
155 |
|
156 |
def create_prompt(self, embeddings, df, user_input):
|
157 |
-
result = self.search_embeddings(
|
158 |
print(result)
|
159 |
prompt = """You are a large language model whose expertise is reading and and providing answers about research papers.
|
160 |
You are given a query and a series of text embeddings from a paper in order of their cosine similarity to the query.
|
|
|
154 |
return results.head(n)
|
155 |
|
156 |
def create_prompt(self, embeddings, df, user_input):
|
157 |
+
result = self.search_embeddings(embeddings, df, user_input, n=3)
|
158 |
print(result)
|
159 |
prompt = """You are a large language model whose expertise is reading and and providing answers about research papers.
|
160 |
You are given a query and a series of text embeddings from a paper in order of their cosine similarity to the query.
|