Otimize suas palavras-chave, assim como o PromptPerfect, para aproveitar o potencial de grandes modelos de linguagem para obter respostas mais precisas e relevantes.
revestimento de prataFornece um modelo avançado para ajudá-lo a criar palavras-chave precisas e eficazes para orientar o modelo na geração de respostas de qualidade.
A ideia principal para otimizar os prompts é seguir as regras fundamentais ao escrevê-los:
Um comando de sinalização geralmente inclui os seguintes elementos:
- Comandos: tarefas explícitas ou instruções específicas que você espera que o modelo de IA execute.
- Exemplo de contexto: cubra qualquer informação externa ou detalhes adicionais que possam ajudar a IA a gerar uma resposta com mais precisão.
- Dados de entrada: uma consulta ou entrada específica para a qual você gostaria de obter uma resposta.
- Indicação de saída: indica o formato ou o tipo de resposta esperada.
Uso:
- Se você estiver chamando a API do LLM diretamente, poderá inseri-la como sistema e usuário.
- Se a pergunta for feita diretamente com o chatgpt/gpt4, ela poderá ser inserida em duas partes
Exemplo 1
Before: ``` Classify the text into neutral, negative or positive. ``` After: ``` Prompt: <Analyze the sentiment of the following text snippet and categorize it as either 'neutral', 'negative', or 'positive'. Please provide a brief justification for your classification to offer insight into your reasoning process.> ```
Exemplo 2
Before: ``` Table departments, columns = [DepartmentId, DepartmentName] Table students, columns = [DepartmentId, StudentId, StudentName] Create a MySQL query for all students in the Computer Science Department ``` After: ``` Write a MySQL query to retrieve all records of students who are part of the Computer Science Department. Assume there are two tables involved: one named 'departments' with columns 'DepartmentId' and 'DepartmentName', and another named 'students' with columns 'DepartmentId', 'StudentId', and 'StudentName'. The 'DepartmentId' column in the 'students' table references the 'DepartmentId' in the 'departments' table as a foreign key. The query should list all students where 'DepartmentName' is "Computer Science". Ensure that the query is syntactically correct and properly formatted for use in a MySQL database. ```
Exemplo 3
Before: ``` translate the following English content into Chinese, 并润色 ``` After: ``` <Please translate the following English text into Chinese, ensuring not only accuracy in translation but also enhancing the prose to flow naturally and elegantly in Chinese. The translation should read as if originally written by a native speaker, with attention to cultural nuances and idiomatic expressions.> ```
Exemplo 4
Before: ``` 完善句子 ``` After: ``` 请根据以下的中文句子开头,完善每个句子。你的句子补全应当语法正确,上下文恰当,并且展现出一定的创造性或有趣的思考,使句子吸引人。请确保遵循每个句子开头提供的风格或语气指示。 ```