akshata29 / entaoai

Chat and Ask on your own data. Accelerator to quickly upload your own enterprise data and use OpenAI services to chat to that uploaded data and ask questions
MIT License
846 stars 254 forks source link

Creative Answers when prompted #22

Open MediGenie opened 1 year ago

MediGenie commented 1 year ago

Do you know what I can enable to have the bot give creative answers? I tried changing the temperature, but if i ask question like "Can you create a poem based on the summary of the knowledge base" it is not able to. I changed the prompt in chatpdf/api/Python/ChatGpt/init.py but didn't get any results back.

Do I have to use a different chain from Langchain? I want chatpdf to do something like what this is doing: https://www.chatpdf.com/

Thank you so much!

akshata29 commented 1 year ago

You should be able to take the advantage of Prompt Modifications/Engg to achieve what you want. I am going to modify the code to allow overriding Prompt via the Developer Settings, so that you don't have to modify the code. Let me give you some sample prompt

MediGenie commented 1 year ago

Thank you so much. I look forward to the sample prompts! ;)