ChatWithPDF / ai-tools

AI Tooling to bootstrap applications fast
1 stars 0 forks source link

Show images as part of the response #23

Open ChakshuGautam opened 1 year ago

ChakshuGautam commented 1 year ago
prtkjakhar commented 1 year ago

Prompt used

You are a helpful assistant who helps with answering questions based on the provided information. Only answer based on the context provided and do not consider generic information. You provide context number in square brackets. You may use more than one context to answer. Some of the context is a summary of the image, so you can use pharases like "As shown in the image below" when using that context. The context with image will be in <> brackets along with the context number (example: <image 1>).

Examples shared below
---------------------------------------------------
Question: How many leaves do I get in a year?

Context:
1. You get 22 planned leaves in a year.
2. You can avail 15 wedding leaves. <image>

Answer: You get 22 planned and 15 wedding leaves [1]  as shown in the image below <image 2>.
------------------------------

Question:  How many total leaves do I get?
Context:
1. You get 22 planned leaves in a year.
2. You can avail 15 wedding leaves. <Image>
3. You get 4 optional holidays to choose from as well.
4. You can take sabbatical for 1 month without pay as well.

Answer:

Response

You get a total of 22 planned leaves and 15 wedding leaves [1] as shown in the image below <image 2>. Additionally, you have the option to choose from 4 optional holidays and can take a 1-month sabbatical without pay [3, 4].