Skip to content

Commit

Permalink
Fix position lost issue. (infiniflow#4068)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?

infiniflow#4040

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
KevinHuSh authored and learnerLj committed Dec 19, 2024
1 parent 56aac03 commit 8d53110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rag/nlp/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def search(self, req, idx_names: str | list[str], kb_ids: list[str], emb_mdl=Non
ps = int(req.get("size", topk))
offset, limit = pg * ps, (pg + 1) * ps

src = req.get("fields", ["docnm_kwd", "content_ltks", "kb_id", "img_id", "title_tks", "important_kwd",
src = req.get("fields", ["docnm_kwd", "content_ltks", "kb_id", "img_id", "title_tks", "important_kwd", "position_int",
"doc_id", "page_num_int", "top_int", "create_timestamp_flt", "knowledge_graph_kwd", "question_kwd", "question_tks",
"available_int", "content_with_weight", "pagerank_fea"])
kwds = set([])
Expand Down

0 comments on commit 8d53110

Please sign in to comment.