Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def retrieve_thoughts(query, ):
|
|
48 |
|
49 |
# TO-DO: What if user query doesn't match what we provide as documents
|
50 |
|
51 |
-
tier_1 = df[df['score'] < 0.
|
52 |
tier_2 = df[((df['score'] < 1) * (df["score"] > 0.7))]
|
53 |
|
54 |
chunks_1 = tier_1.groupby(['title', 'url', ]).apply(lambda x: "\n...\n".join(x.sort_values('id')['page_content'].values)).values
|
|
|
48 |
|
49 |
# TO-DO: What if user query doesn't match what we provide as documents
|
50 |
|
51 |
+
tier_1 = df[df['score'] < 0.85]
|
52 |
tier_2 = df[((df['score'] < 1) * (df["score"] > 0.7))]
|
53 |
|
54 |
chunks_1 = tier_1.groupby(['title', 'url', ]).apply(lambda x: "\n...\n".join(x.sort_values('id')['page_content'].values)).values
|