The present invention provides a
database access method and related devices based on an edge-cloud-
end system. The method includes constructing an edge-cloud-
end system of a terminal, an edge gateway, and a
cloud server; deploying an enterprise
metadata knowledge base, an AI model, and an enterprise
database in the edge-cloud-
end system based on
customer requirements; receiving a demand prompt word input by a user through an
intelligent agent in the terminal; obtaining a routing policy through the
intelligent agent based on the deployment scenarios of the enterprise
metadata knowledge base, the AI model, and the enterprise
database and with the principle of giving priority to local gateway
processing; and programmatically
processing the demand prompt word based on the routing
processing policy, the edge gateway, and the
cloud server. The
database access method of the present invention borrows an AI model for
code generation, reduces the development difficulty, and the enterprise
metadata knowledge base, the AI model, and the enterprise database are flexibly deployed based on
customer requirements, and the terminal
intelligent agent can flexibly
route. The present invention has better adaptability and can better meet the enterprise requirements.