Smart Sustainability Lab logo

Smart Sustainability Lab

Regulation Corpus Playground

Offline view of the regulation corpus used by Smart Sustainability Lab.

← Back to internal tools dashboard

This page reads from a static export of the regulation corpus. It is designed for engineers and product owners to test search behaviour, filters and document structure before wiring anything into customer facing experiences.

Items: 0Timestamp: -

How to use this playground

  1. Type keywords in the search box.
  2. Narrow down by category, urgency and sector using the dropdowns.
  3. Click any row in the list to inspect the full JSON on the right.
  4. Compare the JSON with Cloud Functions responses when debugging.

This page uses the LocalRegulationService adapter. It does not call Firebase directly.

Typical workflows

  • Search tuning: check if important regulations appear early for realistic queries.
  • Filter sanity: confirm that category and sector values behave as expected.
  • Data inspection: verify that new fields are present before UI integration.
Found 0 / 0
Results
No regulations found.

Object Inspector

Select an item to view details

Frequently asked questions

Does this page hit Firebase or any live API?

No. It uses the LocalRegulationService which reads from the static JSON export.

How do I switch to the Vector Database?

Change the instantiation in page.tsx from LocalRegulationService to PostgresRegulationService (once implemented). The UI will remain identical.

What should I check before using this snapshot?

Confirm flagship regulations are present. If something looks wrong here, fix the ETL pipeline first.