what models to use for what tasks, a default model can be set.
Categorize the comments by topics using a LLM on Vertex.
The data to summarize
Whether to include subtopics in the categorization.
Optional
topics: ({ The user provided topics (and optionally subtopics).
Optional
additionalInstructions: stringOptional. Context to add to the LLM prompt. @returns: The LLM's categorization.
Get corresponding model from modelSettings object, or defaultModel if none specified.
the key of the modelSettings options you want the Model for (corresponding to task)
The model to use for the corresponding ModelSetting key
Extracts topics from the comments using a LLM on Vertex AI. Retries if the LLM response is invalid.
The comments data for topic modeling
Whether to include subtopics in the topic modeling
Optional
topics: ({ Optional. The user provided top-level topics, if these are specified only subtopics will be learned.
Optional
additionalInstructions: stringOptional. Context to add to the LLM prompt. @returns: Topics (optionally containing subtopics) representing what is discussed in the comments.
Summarize a set of comments using all available metadata.
the text and (optional) vote data to consider
what summarization method to use
Optional
topics: ({ the set of topics that should be present in the final summary
Optional
additionalInstructions: stringadditional context to give the model as part of the prompt
a summary of the information.
Creates a Sensemaker object