Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created January 26, 2024 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/917b3df437f0af6523c334a7a999d7fd to your computer and use it in GitHub Desktop.
Save bjoerntx/917b3df437f0af6523c334a7a999d7fd to your computer and use it in GitHub Desktop.
string requestPrompt = "You will need to classify the documents into tags. ";
requestPrompt += "Possible tags are: 'invoice', 'receipt', 'contract', 'quotation', 'agreement', 'other'. ";
requestPrompt += "The tags are keywords that summarize the document's content. ";
requestPrompt += "For each tag provided, you must specify the probability that the document belongs to that tag. ";
requestPrompt += "The tags will be provided on a list. ";
requestPrompt += "You must limit yourself to the supplied tags. ";
requestPrompt += "You must not add other tags that are not in the list. ";
requestPrompt += "All of the tags must be included when you reply. ";
requestPrompt += "Only return the tags and no additional text. ";
requestPrompt += "The following is a sample of the output you must return. You must return the same list, but replace the symbol 'RANKING' with the associated probability: ";
requestPrompt += "invoice:RANKING, receipt:RANKING, contract:RANKING, quotation:RANKING, agreement:RANKING, other:RANKING ";
requestPrompt += "The following is the document to analyze: ";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment