The invention discloses an intention classification method and device based on vector retrieval and
context awareness and a medium, and relates to the technical field of
artificial intelligence. The method comprises the steps of extracting business
metadata and associating the business
metadata with typical problem examples to generate a standardized service description document; encoding the standardized service description document into a high-dimensional
semantic vector through a pre-training
language model, and constructing a neighbor search index to store the high-dimensional
semantic vector; splicing the user identity information and the current
question text into an enhanced
query statement, and encoding the enhanced
query statement into a context-aware
dynamic query vector through a semantic model; performing similarity retrieval based on the
dynamic query vector to obtain candidate intelligent services, performing
business domain filtering, context weighted sorting and dynamic priority rearrangement, and outputting target recommendation services; by collecting interactive behavior data of a target
recommendation service, quality scoring is performed on service descriptions and problem examples based on a preset evaluation rule, and the service descriptions and the problem examples of which the quality scores are lower than a quality threshold value are updated.