Kevin Hu commited on
Commit
afeb6cb
·
1 Parent(s): af2dd36

Fix position lost issue. (#4068)

Browse files

### What problem does this PR solve?

#4040

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Files changed (1) hide show
  1. rag/nlp/search.py +1 -1
rag/nlp/search.py CHANGED
@@ -72,7 +72,7 @@ class Dealer:
72
  ps = int(req.get("size", topk))
73
  offset, limit = pg * ps, (pg + 1) * ps
74
 
75
- src = req.get("fields", ["docnm_kwd", "content_ltks", "kb_id", "img_id", "title_tks", "important_kwd",
76
  "doc_id", "page_num_int", "top_int", "create_timestamp_flt", "knowledge_graph_kwd", "question_kwd", "question_tks",
77
  "available_int", "content_with_weight", "pagerank_fea"])
78
  kwds = set([])
 
72
  ps = int(req.get("size", topk))
73
  offset, limit = pg * ps, (pg + 1) * ps
74
 
75
+ src = req.get("fields", ["docnm_kwd", "content_ltks", "kb_id", "img_id", "title_tks", "important_kwd", "position_int",
76
  "doc_id", "page_num_int", "top_int", "create_timestamp_flt", "knowledge_graph_kwd", "question_kwd", "question_tks",
77
  "available_int", "content_with_weight", "pagerank_fea"])
78
  kwds = set([])