Regulatory Query Assistant
Using the Legal Regulation Search Assistant as an example, in the past, government agencies and enterprises were limited by technical constraints and could only use keyword search methods to query data. However, keyword search has the following shortcomings:
Poor semantic understanding, inaccurate results
Unable to ask multiple questions at once
Affected by spelling errors
Unable to integrate answers to multiple questions
The above shortcomings lead to poor user experience. However, with the emergence of large language models and RAG, everything has changed. The following is a comparison table between traditional keyword search and RAG search:
Query Understanding
Limited to exact matching and basic synonyms
Understands context, intent, and nuanced meanings
Information Retrieval
Based on keyword frequency and basic relevance algorithms
Uses semantic similarity and context-aware retrieval
Result Format
List of potentially relevant documents
List of potentially relevant documents Synthesized answers citing source documents
Handling Complex Queries
Usually requires multiple searches and manual integration
Can directly handle complex multi-faceted questions
Ability to Adapt to Domain-Specific Terminology
Limited unless heavily customized
Can learn and adapt to organization-specific terminology
Ability to Use Unstructured Data
Very limited
High, can extract insights from various document types
Continuous Learning
Typically static unless manually updated
Can improve over time through usage and feedback
Taking the "Government Legal Regulation Search Assistant" as an example, as shown in the legal regulation announcements from the Ministry of the Interior's National Land Management Agency below, keyword search was used in the past. Now, we hope to improve user convenience through generative AI technology. This can be done on MaiAgent.
https://www.nlma.gov.tw/最新消息/法規公告.html

Creating a "Legal Regulation Search Assistant" on the MaiAgent Platform
The structure for creating a "Legal Regulation Search Assistant" is as follows:
Because generative AI may pose risks for government agencies, in terms of design, we hope to have different response methods for internal staff and public users:
Usage entry points and architecture:
For the question Are there age restrictions for funding subsidies?, the desired responses for internal staff and the general public are as follows:
Response received by internal staff:

Response received by the general public:

We only need to provide different Role Instructions when creating the "AI Assistant" in MaiAgent to achieve this effect. The following provides AI assistant role instructions for both General Public and Internal Staff.
Role Instructions (General Public Version)
Role Instructions (Internal Staff Version)
Knowledge Base
Download past regulation documents from Ministry of the Interior National Land Management Agency Legal Regulation Search
Legal Regulation Search.xlsx
National Spatial Planning Land Violation Reporting Reward Measures
National Spatial Planning Division
Regulatory Order
2024-10-31
Regulation Content…
Public Place Parent-Child Toilet and Washroom Installation Measures
Building Management Division
Regulatory Order
2024-10-30
Regulation Content…
Notice of Amendment to "Ministry of the Interior Social Housing Rental Measures"
Housing Development Division
Draft Regulation
2024-10-22
Regulation Content…
Last updated
Was this helpful?
