Documentation
¶
Index ¶
Constants ¶
View Source
const ( IntentUpdate Intent = "update" IntentExplain Intent = "explain" IntentHowTo Intent = "how_to" IntentDefinition Intent = "definition" IntentComparison Intent = "comparison" IntentRecommendation Intent = "recommendation" IntentTroubleshoot Intent = "troubleshoot" IntentLocation Intent = "location" IntentTime Intent = "time" IntentPrice Intent = "price" IntentQuestion Intent = "question" // general fallback IntentOther Intent = "other" MatchTypeContains MatchType = "contains" MatchTypeStarts MatchType = "starts" MatchTypeEnds MatchType = "ends" MatchTypeTokenSuffix MatchType = "token_suffix" // nolint:gosec )
Intent and MatchType constants
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Intent ¶
type Intent string
Intent is the intent of a query
func ClassifyIntent ¶
ClassifyIntent returns the most likely intent for the given query
type IntentSpec ¶
IntentSpec is a specification for intent
Click to show internal directories.
Click to hide internal directories.