Skip to content

Conversation

@AlexisOlson
Copy link
Contributor

@AlexisOlson AlexisOlson commented Aug 29, 2025

Adds a Tabular Editor script that loads a .bim and writes a lean .slim JSON by removing non-essential metadata while preserving model semantics.

Full .bim files often exceed LLM context limits and bury logic under UI/engine noise. A slimmer snapshot reduces tokens and noise while retaining the detail LLMs need to reason about the model.

Usage

  • Input: Select an input ModelName.bim
  • Output:
    • Saves ModelName.slim to the same folder
    • Displays cleanup statistics

Example Statistics
image

Also submitted here: PowerBI-tips/TabularEditor-Scripts#33

@AlexisOlson AlexisOlson changed the title Add script to minimizes model file size Add script to minimize model file size Aug 29, 2025
@AlexisOlson AlexisOlson changed the title Add script to minimize model file size Add script to create minimized version of a .bim file Aug 29, 2025
* Upload tmdl_slimmer.csx

* Remove StringComparer.OrdinalIgnorCase

* Code and comment cleanup
@AlexisOlson
Copy link
Contributor Author

This PR now includes a TMDL version that reads a semantic model folder!

@otykier
Copy link
Collaborator

otykier commented Sep 1, 2025

Great contribution - thanks @AlexisOlson!

@otykier otykier merged commit 1347ea9 into TabularEditor:master Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants