import outlines | |
def general_prompt(fields): | |
""" | |
You are an entity extractor. | |
Using the information in the provided documents, use your deep understanding of documents and complete the following tasks. | |
1. Answer the question, What are the values of the following, {{ fields }}? | |
2. Print the answers against each field in a step by step approach. | |
3. After you have all the answers ready, Please format the response in JSON format, with these fields as keys and their answers as values. | |
Make sure to follow the Instructions below. | |
1. In the records, make sure to only include the values of the descriptors without any descriptor names. | |
2. Do NOT Create a Nested JSON response. If response is Nested, format it to a simpler JSON format. | |
2. Avoid keywords like <<SYS>> or [SYS] or [INST] in the final response. | |
""" | |