The invention discloses an enterprise memory-oriented retrieval pre-
access control method, which comprises the following steps of: generating a user capability
bitmap for each user, and generating a fragment requirement
bitmap for each enterprise memory fragment; receiving a user query and generating a query vector, and recalling a candidate fragment identification sequence from the vector index based on approximate
nearest neighbor search; for each candidate fragment, reading a fragment requirement
bitmap of the candidate fragment, and carrying out bit operation inclusion judgment on the fragment requirement bitmap and the user capability bitmap; and sorting the candidates in the candidate
pool according to the similarity, performing secondary permission
verification on a sorting result by using the latest user capability bitmap and the fragment requirement bitmap before final output, removing the candidates which do not pass the
verification, and recording an audit log. According to the retrieval pre-
access control method for enterprise memory, permission judgment is pre-posed before vector loading and actuarial, the non-permission content contact surface is blocked, the computing power waste and
delay are reduced, and the output compliance under dynamic permission change is ensured through secondary
verification.