feat(datasource):add oceanbase support (#1622)

Co-authored-by: csunny <cfqsunny@163.com>
Co-authored-by: aries_ckt <916701291@qq.com>
This commit is contained in:
明天
2024-06-13 15:13:50 +08:00
committed by GitHub
parent 58d08780d6
commit 0541d1494c
37 changed files with 117 additions and 36 deletions

View File

@@ -244,8 +244,8 @@ class CrossEncoderRanker(Ranker):
contents = [candidate.content for candidate in candidates_with_scores]
query_content_pairs = [
[
query,
content,
query if query is not None else "",
content if content is not None else "",
]
for content in contents
]