Legislation Knowledge Search
Search regulation text, obligations, and FAQ answers semantically across any supported legislation.
Instructions
Determine the target legislation:
- If
$ARGUMENTScontains a legislation hint (e.g. "eu-ai-act", "cima-aml", "dora"), use that. - Otherwise, call
legalai_list_legislationsto retrieve the list of available legislations and ask the user which one to search, or offer to search across all of them.
- If
Ask the user what they want to know. Accept natural language questions.
Determine the best search strategy:
- If asking about a specific article number or reference, use
legalai_get_articledirectly with the chosenlegislationId - If asking a general question, first try
legalai_answer_questionwith the chosenlegislationId(FAQ search) - If FAQ doesn't match well, use
legalai_search_knowledgewith the chosenlegislationIdand the appropriate entity type:- "article" for regulation text
- "obligation" for requirements
- "faq" for common questions
- "risk-category" for classification details
- If asking about a specific article number or reference, use
Present results with:
- The matched content
- Article references
- Official source links (e.g. EUR-Lex for EU legislation, regulatory body publications for CIMA legislation) for verification
- Similarity scores (for semantic results) to indicate confidence
If the user's question spans multiple topics, run multiple searches and synthesise the results.
Always encourage the user to verify against the official legislation text via the provided source links.
If the search reveals obligations or risk classifications relevant to the user's situation, offer to run
/lexius:classifyor/lexius:compliancefor a deeper analysis.