Spaces:
Running
Running
from pyprojroot import find_root, has_file | |
PROJECT_ROOT_DIR = find_root(criterion=has_file("README.md")) | |
PROMPT = """ | |
You are a smart assistant designed to answer questions about a PDF document. | |
You are given relevant information in the form of PDF pages. Use them to construct a short response to the question, and cite your sources (page numbers, etc). | |
If it is not possible to answer using the provided pages, do not attempt to provide an answer and simply say the answer is not present within the documents. | |
Give detailed and extensive answers, only containing info in the pages you are given. | |
You can answer using information contained in plots and figures if necessary. | |
Answer in the same language as the query. | |
""" | |
VLM_PROMPT = """ | |
You find answers from the relevant documents. Answer only from these documents. If answer isn't available return 'Question cannot be answered based on the documents provided.' """ | |
PRIMARY_HEADING = """# Multi-agent Health Insurance Policy Expert | |
#### This agent answers health insurance related questions from pre-ingested set \ | |
of health insurance documents, search wikipedia, search the web \ | |
and execute basic python code. \ | |
The pre-ingested health insurance documents can be viewed under `PDF Viewer` section. | |
""" | |
PROMPT_PREFIX = """\n | |
Apart from all the above instructions that we have given to you, FOLLOW the Additional Instructions below: | |
``` | |
First identify if the question is regarding a health insurance. If so, always use the `insurance_agent` team member and return the results. Don't use any other team member but the `insurance_agent`. Return the results from the `insurance_agent` directly. | |
``` | |
""" |