Update app.py
Browse files
app.py
CHANGED
@@ -206,7 +206,11 @@ if QUESTION:
|
|
206 |
d={}
|
207 |
d['id']=id
|
208 |
d['content']=r['metadata']['data']
|
|
|
209 |
d['url']=r['id']
|
|
|
|
|
|
|
210 |
meta_score= get_meta_score(r['id'],question_embedding)
|
211 |
score=.5* r['score'] + .5*meta_score
|
212 |
d['score']=score
|
|
|
206 |
d={}
|
207 |
d['id']=id
|
208 |
d['content']=r['metadata']['data']
|
209 |
+
d['title']=r['metadata']['title']
|
210 |
d['url']=r['id']
|
211 |
+
if ns=='webpages':
|
212 |
+
d['url']= r['metadata']['url']
|
213 |
+
|
214 |
meta_score= get_meta_score(r['id'],question_embedding)
|
215 |
score=.5* r['score'] + .5*meta_score
|
216 |
d['score']=score
|