Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -182,12 +182,13 @@ def search_memory():
|
|
| 182 |
# Filter low relevance
|
| 183 |
if hit['score'] < 0.65:
|
| 184 |
continue
|
| 185 |
-
|
| 186 |
clean_results.append({
|
| 187 |
"title": hit['title'] or "Untitled Memory",
|
| 188 |
"snippet": hit['snippet'], # The highlighted text
|
| 189 |
-
"full_text": hit['text'], # Available on click
|
| 190 |
-
"
|
|
|
|
| 191 |
"score": f"{hit['score']:.2f}"
|
| 192 |
})
|
| 193 |
|
|
|
|
| 182 |
# Filter low relevance
|
| 183 |
if hit['score'] < 0.65:
|
| 184 |
continue
|
| 185 |
+
'''{'frame_id': 0, 'uri': 'mv2://frames/0', 'title': 'Untitled', 'rank': 1, 'score': 5.422323226928711, 'matches': 3, 'snippet': 'the dog is blue\ntitle: Untitled\ntags: blue dog\nlabels: text Blue Dog\nextractous_metadata: {"coverage":1.0,"sections_extracted":1,"sections_total":1,"skim":false}', 'tags': ['blue', 'dog'], 'labels': ['text', 'Blue', 'Dog'], 'track': None, 'created_at': '2026-01-11T03:33:52Z', 'content_dates': []}'''
|
| 186 |
clean_results.append({
|
| 187 |
"title": hit['title'] or "Untitled Memory",
|
| 188 |
"snippet": hit['snippet'], # The highlighted text
|
| 189 |
+
#"full_text": hit['text'], # Available on click
|
| 190 |
+
#"full_text": hit['text'],
|
| 191 |
+
"date": hit['created_at'], # Context!
|
| 192 |
"score": f"{hit['score']:.2f}"
|
| 193 |
})
|
| 194 |
|