File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 74
74
name : Unused noqa
75
75
76
76
- repo : https://github.com/pycqa/isort
77
- rev : 5.13.2
77
+ rev : 6.0.1
78
78
hooks :
79
79
- id : isort
80
80
@@ -100,7 +100,7 @@ repos:
100
100
- prettier@3.2.5
101
101
102
102
- repo : https://github.com/psf/black.git
103
- rev : 24.10 .0
103
+ rev : 25.1 .0
104
104
hooks :
105
105
- id : black
106
106
files : (.*\.py)$
@@ -114,15 +114,15 @@ repos:
114
114
- black==24.10.0
115
115
116
116
- repo : https://github.com/codespell-project/codespell
117
- rev : v2.3.0
117
+ rev : v2.4.1
118
118
hooks :
119
119
- id : codespell
120
120
args : [-w]
121
121
additional_dependencies :
122
122
- tomli
123
123
124
124
- repo : https://github.com/astral-sh/ruff-pre-commit
125
- rev : v0.8.6
125
+ rev : v0.11.4
126
126
hooks :
127
127
- id : ruff
128
128
args : [--fix, --exit-non-zero-on-fix, --no-cache]
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class ChatTemplate:
25
25
@staticmethod
26
26
def generate_rag_prompt (question , documents ):
27
27
context_str = "\n " .join (documents )
28
- if context_str and len (re .findall ("[\u4E00 - \u9FFF ]" , context_str )) / len (context_str ) >= 0.3 :
28
+ if context_str and len (re .findall ("[\u4e00 - \u9fff ]" , context_str )) / len (context_str ) >= 0.3 :
29
29
# chinese context
30
30
template = """
31
31
### 你将扮演一个乐于助人、尊重他人并诚实的助手,你的目标是帮助用户解答问题。有效地利用来自本地知识库的搜索结果。确保你的回答中只包含相关信息。如果你不确定问题的答案,请避免分享不准确的信息。
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ class ChatTemplate:
26
26
@staticmethod
27
27
def generate_rag_prompt (question , documents ):
28
28
context_str = "\n " .join (documents )
29
- if context_str and len (re .findall ("[\u4E00 - \u9FFF ]" , context_str )) / len (context_str ) >= 0.3 :
29
+ if context_str and len (re .findall ("[\u4e00 - \u9fff ]" , context_str )) / len (context_str ) >= 0.3 :
30
30
# chinese context
31
31
template = """
32
32
### 你将扮演一个乐于助人、尊重他人并诚实的助手,你的目标是帮助用户解答问题。有效地利用来自本地知识库的搜索结果。确保你的回答中只包含相关信息。如果你不确定问题的答案,请避免分享不准确的信息。
You can’t perform that action at this time.
0 commit comments