gpt4-pdf-chatbot-langchain icon indicating copy to clipboard operation
gpt4-pdf-chatbot-langchain copied to clipboard

Is there a way to make it write longer texts?

Open thefirst25 opened this issue 2 years ago • 2 comments

it usually only outputs one paragraph, is there a way to make it write a more detailed and longer texts?

thefirst25 avatar Apr 20 '23 19:04 thefirst25

You could try and ask for a more elaborate and detailed answer by changing the template in in utils/makechain.ts?

TychoML avatar Apr 21 '23 12:04 TychoML

I can control that in my fork by the maxTokens parameter that I am altering like this: https://github.com/groovybits/gaib/blob/main/utils/makechain.ts#L23 Also see how the prompts can provoke more complex / longer answers too. (I have more prompts setup in a config file in my fork you will notice).

groovybits avatar Apr 28 '23 16:04 groovybits

Hi, @thefirst25! I'm Dosu, and I'm helping the gpt4-pdf-chatbot-langchain team manage their backlog. I wanted to let you know that we are marking this issue as stale.

From what I understand, you were asking if there is a way to make the program write longer and more detailed texts, as it currently only outputs one paragraph. TychoML suggested changing the template in utils/makechain.ts for a more elaborate answer, while groovybits mentioned controlling the maxTokens parameter in their fork and using prompts to provoke more complex and longer answers.

Before we close this issue, we wanted to check if it is still relevant to the latest version of the gpt4-pdf-chatbot-langchain repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself or it will be automatically closed in 7 days.

Thank you for your contribution!

dosubot[bot] avatar Sep 22 '23 16:09 dosubot[bot]