4 ms·
> Why Based on my experience with Claude, it's pretty damn good at doing data analysis, if given the right curated data models. You still need to eyeball the g
by hasyimibhar 6mo ago
> Why
Based on my experience with Claude, it's pretty damn good at doing data analysis, if given the right curated data models. You still need to eyeball the generated SQL to make sure it makes sense.
> and how?
1. Replicate your Postgres into Snowflake/Databricks/ClickHouse/etc, or directly to Iceberg and hook it up to Snowflake/Databricks/ClickHouse/etc.
2. Give your agent read access to query it.
3. Build dimensional models (facts and dimensions tables) from the raw data. You can ask LLM for help here, Claude is pretty good at designing data models in my experience.
4. Start asking your agent questions about your data.
Keep steps 3-4 as a tight feedback loop. Every time your agent hallucinates or struggle to answer your questions, improve the model.
Side note: I'm currently building a platform that does all 3 (though you still need to do 2 yourself), you just need Postgres + 1 command to set it up: https://polynya.dev/ https://polynya.dev/
- DaiPlusPlus 6mo ago> Claude is pretty good at designing data models in my experience Yesterday, Claude decided to go with nvarchar(100) for an IP address column instead of varbinary(16), and thinks RBAR triggers are just-as-good as temporal tables. So, no. Claude is not good at designing data models in my experience.
- smartbit 6mo agoPostgres has network types https://www.postgresql.org/docs/current/datatype-net-types.html https://www.postgresql.org/docs/current/datatype-net-types.h... inet —- allows zero bits to the right of the netmask cider —- does not allow
- gib444 6mo ago> Side note: I'm currently building a platform Oh ok this comment is just an ad then