Mbonea commited on
Commit
ffa2a35
·
1 Parent(s): 6a4ee1a

reduce the size

Browse files
Files changed (1) hide show
  1. App/Embedding/utils/Elastic.py +2 -1
App/Embedding/utils/Elastic.py CHANGED
@@ -29,6 +29,7 @@ def FetchDocuments(ids):
29
 
30
  response=[]
31
  for data in res["hits"]["hits"]:
32
- temp=data["inner_hits"]["simple"]["hits"]["hits"]
 
33
  response.append(temp)
34
  return response
 
29
 
30
  response=[]
31
  for data in res["hits"]["hits"]:
32
+ temp=data["inner_hits"]["simple"]["hits"]["hits"][0]
33
+
34
  response.append(temp)
35
  return response