Skip to content

Commit

Permalink
Merge pull request #5 from lvwzhen/dev
Browse files Browse the repository at this point in the history
Update prompt
  • Loading branch information
lvwzhen committed 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
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

1 comment on commit 150ae9b

@vercel
Copy link

@vercel vercel bot commented on 150ae9b Apr 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

law-cn-ai – ./

law-cn-ai-git-main-lvwzhen.vercel.app
law-cn-ai-lvwzhen.vercel.app
law-cn-ai.vercel.app

Please sign in to comment.