Skip to content

Commit

Permalink
Merge pull request #6 from lvwzhen/prompt
Browse files Browse the repository at this point in the history
Update prompt
  • Loading branch information
lvwzhen committed Apr 22, 2023
2 parents 421d45a + 2b86c34 commit ce4b330
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions pages/api/vector-search.ts
Expand Up @@ -117,14 +117,12 @@ export default async function handler(req: NextRequest) {

const prompt = codeBlock`
${oneLine`
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."
Pretend you are GPT-4 model , Act an encyclopedia of Chinese law expertise.
I will present a legal situation for which you will provide advice and relevant legal provisions.
Please only provide advice related to this situation. Based on the specific sections from the documentation,
answer the question only using that information. Please be aware that if there are any updates to the legal provisions,
please reference the most current content. Your output must be in Chinese. If you are uncertain or the answer is not
explicitly written in the documentation, please respond with "I'm sorry, I cannot assist with this."
`}
Context sections:
Expand Down

1 comment on commit ce4b330

@vercel
Copy link

@vercel vercel bot commented on ce4b330 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.vercel.app
law-cn-ai-lvwzhen.vercel.app

Please sign in to comment.