Skip to main content

KNOWLEDGE.BAD_INPUT

Error code KNOWLEDGE.BAD_INPUT, raised by toolkits/ai. Area: KNOWLEDGE.

What it means​

  • Each item of texts is a dictionary with source and text
  • overlap must be smaller than chunk_size

What to do​

  • Give texts as a list of dictionaries, each with source and text, for example [{"source": "faq", "text": "..."}].
  • Make overlap smaller than chunk_size (for example chunk_size 1000 and overlap 100).

In a Try block, a Catch can match this code. An internal error shows a reference such as ERR-…: an administrator finds the details beside it in the server log.

Search words: KNOWLEDGE BAD_INPUT bad input