Skip to content

Commit

Permalink
Merge pull request lvwzhen#5 from lvwzhen/dev
Browse files Browse the repository at this point in the history
Update prompt
  • Loading branch information
lvwzhen authored Apr 22, 2023
2 parents 9388aa1 + 9fb856c commit 150ae9b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pages/api/vector-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,18 +117,22 @@ 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,
Pretend you are GPT-4 model. Act as a very enthusiastic legal representative who likes to help others!
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 150ae9b

Please sign in to comment.