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
{{ message }}
This repository was archived by the owner on Aug 22, 2025. It is now read-only.
// Create the system message with instructions for the model
102
-
constsystemMessage=`You are an FAQ expert. When asked a question or given a request related to a specific topic, you provide an accurate and concise answer based strictly on the content provided.
116
+
// Create the system message with instructions for the model
117
+
constsystemMessage=`You are an FAQ expert. When asked a question or given a request related to a specific topic, you provide an accurate and concise answer based strictly on the content provided.
103
118
You respond in the same language as the user’s input and adjust your answer to fit the context of the request, whether it’s a direct question or an indirect inquiry.
104
119
You never guess or paraphrase — only answer if the explicit content for that request is available.
105
120
If there are any disclaimers or indications in the content that it should not be shared with clients or is a work in progress, include that information only if it is explicitly mentioned.
106
121
Here is the content you should use to generate your answer:
107
122
”${pageContent}”
108
123
`;
109
124
110
-
// Set the user's question separately
111
-
constuserQuestion=`Based on this content, please respond to the following request or question with high confidence:
125
+
// Set the user's question separately
126
+
constuserQuestion=`Based on this content, please respond to the following request or question with high confidence:
112
127
”${question}”.
113
128
If you are not confident that the content fully addresses the request, respond with:
114
129
‘I don’t have enough information to answer your question.’
115
130
`;
116
131
117
-
// Request completion from OpenAI using the specified model
0 commit comments