Skip to content

Commit

Permalink
update haiku and llama prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
parkererickson-tg committed Jun 5, 2024
1 parent a061ffa commit d8a5480
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/prompts/aws_bedrock_claude3haiku/generate_function.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@ Sixth Docstring: {doc6}
Seventh Docstring: {doc7}
Eighth Docstring: {doc8}

If the output of this function answers the user's question, immediately return that answer.

Follow the output directions below on how to structure your response
Only include valid JSON do not include any other texts which would render the response invalid JSON:

Follow the output directions below on how to structure your response:
{format_instructions}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ If there are words that are synonyms with the entities or relationships above, m
Generate the complete question with the appropriate replacements. Keep the case of the schema elements the same.
Don't generate target_vertex_ids if there is no the term 'id' explicitly mentioned in the question.

Respond in JSON (and only JSON)
Follow the output directions below on how to structure your response
Only include valid JSON do not include any other texts which would render the response invalid JSON:

Respond in JSON (and only JSON). Follow the format instructions below:
{format_instructions}
QUESTION: {question}
5 changes: 5 additions & 0 deletions app/prompts/llama_70b/generate_function.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@ Sixth Docstring: {doc6}
Seventh Docstring: {doc7}
Eighth Docstring: {doc8}

If the output of this function answers the user's question, immediately return that answer.

Follow the output directions below on how to structure your response
Only include valid JSON do not include any other texts which would render the response invalid JSON:

Follow the output directions below on how to structure your response:
{format_instructions}
5 changes: 5 additions & 0 deletions app/prompts/llama_70b/map_question_to_schema.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@ When certain entities are mapped to vertex attributes, may consider to generate
If there are words that are synonyms with the entities or relationships above, make sure to output the cannonical form found in the choices above.
Generate the complete question with the appropriate replacements. Keep the case of the schema elements the same.
Don't generate target_vertex_ids if there is no the term 'id' explicitly mentioned in the question.

Follow the output directions below on how to structure your response
Only include valid JSON do not include any other texts which would render the response invalid JSON:

Respond in JSON (and only JSON). Follow the format instructions below:
{format_instructions}
QUESTION: {question}

0 comments on commit d8a5480

Please sign in to comment.