400 error

when I upload a pdf file,I got this error back。

Status 400: Error

Too much text for the summarizer to summarize. Please try reducing the number of search results to summarize, or the context of each search result.

Hi Yang,
Thanks for reaching out.

  1. Are you uploading the PDF via the console or via the API?
  2. Can you share the file (if possible; I understand if not and it’s proprietary)?
  3. Are you getting this error during the upload or when you do a search in the console?

getting the same error when searching in the console.

@Sameer_Mohammed this can happen when – perhaps unsurprisingly – there’s just too much data from the search results to summarize effectively. We know of this issue and we have a plan to address it in the future, but in the mean time, you can do one of 2 things:

  1. Reduce the maxSummarizedResults, which is available in the Console and in the API.
  2. You may consider a Scale plan, which allows for greater control of both our generative prompting as well as the model used to accept a larger total summarization size. If you’d like, I can connect you with a technical resource on our side to help you get a trial set up. You can reach me at shane@vectara.com so