Optionalconcat_Optionalcontext_Optionalcurrency?: string | nullThe currency symbol to use for the completion. If not specified, this defaults to "$".
Optionalfilters?: ChunkFilter | nullOptionalhighlight_Optionalllm_Optionalmetadata?: unknownMetadata is any metadata you want to associate w/ the event that is created from this request
Optionalmodel?: string | nullModel name to use for the completion. If not specified, this defaults to the dataset's model.
Optionalno_No result message for when there are no chunks found above the score threshold.
Optionalnumber_Number of messages to include in the context window. If not specified, this defaults to 10.
Optionalonly_Only include docs used is a boolean that indicates whether or not to only include the docs that were used in the completion. If true, the completion will only include the docs that were used in the completion. If false, the completion will include all of the docs.
Optionalpage_Page size is the number of chunks to fetch during RAG. If 0, then no search will be performed. If specified, this will override the N retrievals to include in the dataset configuration. Default is None.
Optionalrag_Overrides what the way chunks are placed into the context window
Optionalremove_If true, stop words (specified in server/src/stop-words.txt in the git repo) will be removed. Queries that are entirely stop words will be preserved.
Optionalscore_Set score_threshold to a float to filter out chunks with a score below the threshold. This threshold applies before weight and bias modifications. If not specified, this defaults to 0.0.
Optionalsearch_Query is the search query. This can be any string. The search_query will be used to create a dense embedding vector and/or sparse vector which will be used to find the result set. If not specified, will default to the last user message or HyDE if HyDE is enabled in the dataset configuration. Default is None.
Optionalsearch_Optionalsort_The id of the topic to regenerate the last message for.
Optionaltypo_Optionaluse_If true, the search will be conducted using llm tool calling. If not specified, this defaults to false.
Optionaluse_If use_group_search is set to true, the search will be conducted using the search_over_groups api. If not specified, this defaults to false.
Optionaluse_If true, quoted and - prefixed words will be parsed from the queries and used as required and negated words respectively. Default is false.
Optionaluser_The user_id is the id of the user who is making the request. This is used to track user interactions with the RAG results.
If concat user messages query is set to true, all of the user messages in the topic will be concatenated together and used as the search query. If not specified, this defaults to false. Default is false.