Project

General

Profile

Bug #3705

Modify 'Create detailed QNAs and Answers' Colab

Added by Ram Kordale 4 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Immediate
Start date:
08/06/2024
Due date:
% Done:

100%

Estimated time:
1.80 h

Description

In https://colab.research.google.com/drive/14N0bH9RBm9lO28EuLXegA1BUzh4hDfXX, call_openai will return $$$---$$$---$$$$Detailed Answer: <Detailed Answer>$$$---$$$---$$$$ %---%---%%%Question:<Question>\nAnswer:<Answer>\n\nQuestion:<Question>\nAnswer:<Answer>...\n\nQuestion:<Question>\nAnswer:<Answer>%%---%%---%%%

Please modify the colab to handle this.

To help with this, please do the following.
- Mock the call_openai call to return $$$---$$$---$$$$Detailed Answer: Detailed Answer to <prompt>$$$---$$$---$$$$ %---%---%%%Question: Question1 \nAnswer: Answer1\n\nQuestion: Question 2\nAnswer:Answer 2%%---%%---%%%
- Store these in DS
- Demo should at least show FE do the following:
-- if detailedQNAs is present and user wants to see, show each of the detailed questions and answers.
-- if detailedAnswer is present and user wants to see, show it to them.

Also available in: Atom PDF