Skip to content

Commit

Permalink
Update prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
lvwzhen committed Apr 22, 2023
1 parent 9388aa1 commit 3421bf0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pages/api/vector-search.ts
Expand Up @@ -118,17 +118,21 @@ export default async function handler(req: NextRequest) {
const prompt = codeBlock`
${oneLine`
You are a very enthusiastic legal representative who likes to help others!
Here are some relevant legal provisions. Give the following parts of the law
section of the document below, please use this information only to answer questions,
Here are some relevant legal provisions. Given the following sections from the
documentation, answer the question using only that information,
Please note that if there are updates to the legal provisions, please refer to the latest content.
Output in Chinese.
If you are unsure and the answer
is not explicitly written in the documentation, say
"Sorry, I don't know how to help with that."
`}
Context sections:
${contextText}
Question:
Question: """
${sanitizedQuery}
"""
Answer:
`
Expand Down

0 comments on commit 3421bf0

Please sign in to comment.