Find answers from the community

Updated 2 years ago

Is there a way to increase response

At a glance

The community member asked if there is a way to increase the response length with GPTSimpleVectorIndex, as they believe the standard max is 256 tokens. In the comments, another community member provided a code snippet that sets the maximum input size to 8000, the number of output tokens to 500, and the maximum chunk overlap to 50, using the PromptHelper class. Another community member suggested that there is an easier way to change the number of output tokens, depending on the language model being used, and provided a link to the relevant documentation.

Useful resources
Is there a way to increase response length with GPTSimpleVectorIndex? I think the standard max is 256 tokens?
b
T
j
4 comments
Plain Text
      # define prompt helper
      # set maximum input size
      max_input_size = 8000
      num_output = 500
      max_chunk_overlap=50
      prompt_helper = PromptHelper(max_input_size, num_output, max_chunk_overlap)
Plain Text
      return GPTSimpleVectorIndex(
        documents, llm_predictor=llm_predictor, prompt_helper=prompt_helper
      )
Add a reply
Sign up and join the conversation on Discord