The invention relates to the technical field of
public health information. The invention discloses a
public health data retrieval method based on
natural language processing. The
public health data retrieval method comprises the steps that S1, a
natural language retrieval instruction of a user is received; s2, analyzing an instruction through a large
language model of the semantic analysis component, generating a vector value, retrieving
metadata and an index component, and generating a retrieval expression; s3, checking and adjusting the expression through a semantic analysis confirmation component; s4, the
data retrieval code generation component determines table attributes and association according to the expression, and
SQL is generated; and S5, calling the
SQL query
database by the data retrieval execution component, and returning a packaging result to the user. By means of
natural language processing and multi-component cooperation, the public
health data retrieval threshold is lowered, and the accuracy is improved. Users can retrieve through daily languages, and non-technical users can efficiently obtain data. The
system confirms a component multi-dimensional
verification retrieval expression through semantic analysis, and ensures that data is matched with requirements.