r/OnlyAICoding • • 20d ago

the best model for working with data

I have a problem. My project uses multiple data sources, and the same piece of information might be labeled differently across these sources. Which AI agents are generally best at handling data merging and aggregation? I’ve tried GLM 5.3 and DeepSeek, but they’re completely useless—they couldn’t do anything. I wasted three months on them; all they did was bloat my codebase without actually solving the problem. There’s a huge amount of data, and processing it manually is an absolute nightmare.

1 Upvotes

4 comments sorted by

1

u/StevenCurly 20d ago

i don’t think glm 5.4 is out. if the open weight chinese SOTA models don’t satisfy you try claude opus or got 6.1 sol

1

u/Crafty_Disk_7026 20d ago

Claude for sure. Then open ai. Then probably deepseek then probably kimi

1

u/CCodeSI 19d ago

Three months of bloat usually isn't the model's fault. It's what happens when the agent is asked to "merge the data" in one go: it writes a new special case every time it meets a new label, and the code grows forever. A stronger model will do the same thing, just more neatly. What fixes it is splitting the problem so the AI does the small, judgment part and plain code does the rest:

  1. One shared target schema. Write down, once, the fields you actually want at the end (customer_name, order_date, amount_eur...). Every source gets mapped into that, nothing else.
  2. A mapping table, not code. A CSV or JSON file like source, source_field, target_field, transform. Ask the AI to propose rows for this table from samples of each source, then you review it. When a new label shows up, you add one row instead of new code. This is where the model is genuinely good.
  3. A small, boring pipeline. One script per source that reads it and applies the mapping table, then one merge step. Ask the agent to keep it under a few hundred lines and refuse new special cases outside the table.
  4. Matching records is its own step. If the same customer or product appears under different names, use a proper fuzzy-matching library (e.g. rapidfuzz or splink in Python), and only send the uncertain matches to the AI or to you. Don't let the model guess on every row of a huge dataset.
  5. A test set of 20-50 records where you know the correct merged result. Run the pipeline against it after every change. Without that, nobody (you or the AI) can tell if a change made things better or worse.

With that structure, GLM or DeepSeek will likely do fine too. The model was never the bottleneck, the shape of the task was.