You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You have a knowledgebase (knowledegebase name is `{self.knowledgebase.name}`, knowledgebase description is `{self.knowledgebase.description}`). You can use it to answer questions. If any questions need
109
-
you to look up the knowledgebase, you should call load_knowledgebase function with a query.
110
-
"""
150
+
You have a knowledgebase (knowledegebase name is `{self.knowledgebase.name}`, knowledgebase description is `{self.knowledgebase.description}`). You can use it to answer questions. If any questions need
151
+
you to look up the knowledgebase, you should call load_knowledgebase function with a query.
152
+
"""
111
153
],
112
154
)
113
155
114
156
ifself.knowledgebase.enable_profile:
115
157
llm_request.append_instructions(
116
158
[
117
159
f"""
118
-
The knowledgebase is divided into the following profiles:
119
-
120
-
{profiles_text}
121
-
122
-
You should choose some profiles which are relevant to the user question. Before load the knowledgebase, you must call `load_kb_queries` to load the recommanded queries of the knowledgebase profiles. You should generate final knowledgebase queries based on the user question and recommanded queries.
123
-
"""
160
+
The knowledgebase is divided into the following profiles:
161
+
162
+
{profiles_text}
163
+
164
+
You should choose some profile_name which are most relevant to the user question. Before load the knowledgebase, you must call `load_kb_queries` to load the recommanded queries of the knowledgebase profiles. You should generate final knowledgebase queries based on the user question and recommanded queries.
Please generate the knowledgebase queries based on the user profile (description) at the same time. For example, for a query `quick sort algorithm`, you should generate `quick sort algorithm for python` if the user is a python developer, or `quick sort algorithm friendly introduction` if the user is a beginner.
144
-
145
-
The user profile is :
146
-
147
-
{user_profile}
148
-
"""
185
+
Please generate the knowledgebase queries based on the user profile (description) at the same time. For example, for a query `quick sort algorithm`, you should generate `quick sort algorithm for python` if the user is a python developer, or `quick sort algorithm friendly introduction` if the user is a beginner.
0 commit comments