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
description="A generator for generating knowledgebase profiles for the given files.",
267
+
instruction='Generate JSON-formatted profile for the given file content. The corresponding language should be consistent with the file content. Respond ONLY with a JSON object containing the capitalized fields. Format: {"name": "", "description": "", "tags": [], "keywords": []} (3-5 tags, 3-5 keywords)',
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
78
109
you to look up the knowledgebase, you should call load_knowledgebase function with a query.
79
110
"""
80
-
]
111
+
],
81
112
)
82
113
114
+
ifself.knowledgebase.enable_profile:
115
+
llm_request.append_instructions(
116
+
[
117
+
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.
0 commit comments