Assistant API question about short and long files

How do OpenAI determine which file is short or long file:

  1. it either passes the file content in the prompt for short documents, or
  2. performs a vector search for longer documents

They did not provide any information about this determination.