The ask endpoint is how you can preform quick look up, or generation of an answer to a user-submitted question (prompt).
shouldGenerateResponse: false
Fast semantic search, just returns relevant sections and the corresponding Documents from the index of the application
shouldGenerateResponse: true
Generates a response using the model provider (defaults to OpenAI), given the additional context of documents found.
The question you want an answer for, or the action you want the assistant to take given the additonal context of relevant documents.
Defaults to true. Determines whether the application just generates matches of similar documents or also tries to generate a longer-form synthesized response.
A set of metadata keys and corresponding values, to only have documents that match those criteria return.