Optional
filterOptional filter to apply to the context snippets.
Optional
messagesThe list of MessageModel to use for generating the context. Either query
or messages
should be provided.
Optional
queryThe query to retrieve context snippets for. Either query
or messages
should be provided.
Optional
snippetThe maximum context snippet size. Default is 2048 tokens. Minimum is 512 tokens. Maximum is 8192 tokens.
Optional
topKThe maximum number of context snippets to return. Default is 16. Maximum is 64.
The
ContextOptions
interface describes the query and optional filter to retrieve context snippets from an Assistant.