<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Oliver on Medium]]></title>
        <description><![CDATA[Stories by Oliver on Medium]]></description>
        <link>https://medium.com/@data.ai.oliver?source=rss-14bdd4220b84------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*RjBJbRMZcRJ6szDtgAHS6w.png</url>
            <title>Stories by Oliver on Medium</title>
            <link>https://medium.com/@data.ai.oliver?source=rss-14bdd4220b84------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 18:14:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@data.ai.oliver/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I got too lazy to open my laptop, so I built a button]]></title>
            <link>https://medium.com/@data.ai.oliver/i-got-too-lazy-to-open-my-laptop-so-i-built-a-button-d9433b0b7994?source=rss-14bdd4220b84------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9433b0b7994</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[ai-coding]]></category>
            <dc:creator><![CDATA[Oliver]]></dc:creator>
            <pubDate>Sat, 26 Sep 2026 19:40:58 GMT</pubDate>
            <atom:updated>2026-09-26T19:40:58.506Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FpbL8FBlz1eFPE9OVoy4SQ.png" /></figure><p><em>Starting a coding agent on a remote server used to take eight steps. Now it takes three taps on a phone — and the project already has a database, a bucket and a free port when the agent wakes up.</em></p><p>I run most of my coding agents on remote servers rather than my laptop. Better hardware, always on, and the thing keeps working when I close the lid. The problem was never the running. It was the starting. Every time I had an idea — on the sofa, on a train, in a queue — the idea had to wait until I was back at a desk. Because starting it looked like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FiisF5NwBL9n1264TauWCQ.png" /></figure><p>Eight steps, and at the end I still had to get that link onto my phone. And notice what is <em>not</em> in there: no database, no object storage, no reserved port. Those came later. They always came later, usually at the exact moment they became annoying. So I built a button.</p><h3>Three taps</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SEqD7GpVzBBXxT7zg_lUzQ.png" /></figure><p>That is the whole product. A list of what is running, what each one is doing, and one large button per project that opens it in Claude. Making a new one is a name and a tap:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kb2nBfrINWsBZlB9kRUeog.png" /></figure><p>Pick a server. Type a name. Optionally tick a starter template and the backing services. Tap Start session. About forty seconds later the project is there, the agent is running, and a starter app is already serving on a port that belongs to that project alone.</p><h3>What actually happens when you tap that button</h3><p>This is the part I care about more than the dashboard, because it is the part that stops me re-explaining my own setup to an agent every single time. On the server, NoLaptop:</p><ol><li>creates the project directory inside a root you configured — and nowhere else;</li><li>reserves a free port for it, checked against what is actually listening on the host;</li><li>creates a PostgreSQL database of its own, with its own owning role and a generated password;</li><li>creates an S3 bucket of its own;</li><li>writes both, plus the port, into the project’s .env;</li><li>writes an AGENTS.md describing all of it;</li><li>drops in a starter template and starts it;</li><li>launches Claude Code with Remote Control on, in a tmux session that survives everything.</li></ol><p>Here is the .env it wrote for a real project of mine:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DKRMP7HNArMJIJV27Yf3zw.png" /></figure><p>And the instructions file next to it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*53t2q2J2zfK3X4KBc2Hhdg.png" /></figure><p>That last file is the one that changed how this feels to use. The agent opens the folder already knowing which database is its own, which bucket is its own, which port it may bind, and — importantly — that the machine is shared and everything outside its directory belongs to somebody else. I did not have to type any of that. I have typed it a hundred times before.</p><h3>AGENTS.md, not CLAUDE.md</h3><p>A small thing worth knowing, because I got it wrong first. Claude Code reads AGENTS.md natively — and so do Codex, Cursor and the Gemini CLI. But if a project contains both files, Claude Code uses CLAUDE.md and ignores AGENTS.md completely. So one file covers every agent, the other covers one, and having both is a quiet way to lose the context you carefully wrote. NoLaptop writes exactly one and warns if the other shows up.</p><h3>The bit I underestimated: knowing what is actually true</h3><p>A dashboard you check from a phone is only worth having if you can trust it. “The database says this session is running” is worthless — the session might have died twenty minutes ago. Claude Code turns out to keep a lot of machine-readable state, which makes this much less hacky than I expected: QuestionWhere the answer really isWhich agent processes are running?claude agents --jsonIs Remote Control on, and what is its link?~/.claude/sessions/&lt;pid&gt;.json → bridgeSessionIdIs this host signed in?claude auth status --jsonToken usageClaude Code&#39;s own transcript, .jsonl</p><p>That last column matters. A session with no bridgeSessionId genuinely has no Remote Control — that is a fact, not a guess from scraped terminal output. The terminal only gets read when the structured sources say something is off, and then only to work out <em>which</em> dialog is blocking. Anything that cannot be determined reliably is shown as Not available. Cost is one of those: the CLI exposes no billed amount I can read honestly, so no number is invented.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZW8CMdcfm2mn6ImQBOwWtQ.png" /></figure><h3>When something needs you</h3><p>Agents get stuck. They want a sign-in, or a one-off confirmation, or the Remote Control bridge drops. From a phone, the worst possible answer is a dashboard that just stops updating. So the states are explicit, and each one comes with the single action that resolves it: a dropped bridge offers Reconnect (which keeps the conversation), a stopped session offers Resume, a sign-in offers the sign-in link. I learned this the sharp way. A perfectly healthy session kept reporting “Approval required”, and it took me a while to see why: Claude’s status bar permanently reads bypass permissions on, and my matcher was looking for the word &quot;permission&quot; near &quot;remote control&quot;. Every healthy session tripped it. That kind of false alarm is worse than no status at all — you stop believing the dashboard, and then it is just a slower way to run ssh.</p><h3>Then you sit down at a laptop</h3><p>Everything NoLaptop starts binds to the server’s localhost. The database, the object store, the dev server. That is the right default — a database with a generated password on an open port is how these stories usually end — but it means you cannot simply type the server’s address into a browser. So each project hands you the exact command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DiZ_DN6v86KJK84JGl2azA.png" /></figure><p>It collects the project’s dev port, anything you saved on it, and its own database and bucket, so a local psql or S3 client reaches them too. There is a Windows variant next to it. Windows 10 and 11 ship the ssh client, so it is the same command.</p><h3>Setting it up</h3><p>You need a Linux host with tmux, the claude CLI signed in, and SSH key access. That is it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jsh_tkTlw5bRhwuNkspzhQ.png" /></figure><p>make check changes nothing — it just tells you what is missing. make install generates the two secrets, creates the database and prints the password once. NoLaptop refuses to start without a password. It holds SSH keys for every server you add; an open instance of that is a remote shell for whoever finds the port. That is not a setting. Putting it on a hostname with TLS is one command, and it checks the things that actually go wrong before it tries:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XoytsLMlOmh4ICkFQBySYA.png" /></figure><p>It works with an existing Traefik, or brings its own Caddy, or stays on localhost.</p><h3>The optional part: shared services</h3><p>Off by default, on the server’s card:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*67uTprs6KnK_A5n56n2pfQ.png" /></figure><p>Enabling starts one PostgreSQL and one SeaweedFS container on that host, bound to its localhost and reached through the SSH connection NoLaptop already has. Nothing is published to the network. Every project then gets its own database and its own bucket out of that one instance. I picked SeaweedFS over MinIO, which surprised me too. MinIO closed anonymous pulls of minio/minio — a default that fails on a fresh host is not a default — and moved its community edition behind AGPL. SeaweedFS is Apache-2.0 and speaks the S3 verbs this needs. For a tool whose whole point is that you own the machine, the object store should be one you get to keep.</p><h3>What it is not</h3><p>It does not replace Claude Code, or wrap it, or proxy it. Claude runs on your server exactly as it would if you had typed the command yourself; NoLaptop just types it, keeps an eye on it, and gets out of the way. It does not handle your Anthropic credentials. Sign-in happens through the official flow; the app shows you the link. It does not do anything destructive on its own. Removing a project leaves the folder, the conversation, the database and the bucket exactly where they are. Dropping data takes an explicit request and two confirmations. And there is no “run arbitrary command” API. Two files hold the complete set of operations that can reach a server, every interpolated value is quoted, and project paths are derived on the server rather than accepted from a browser. If that sounds paranoid: the thing is holding SSH keys to every machine you add.</p><h3>Most of the bugs only showed up when I ran it</h3><p>I want to be honest about this, because it is the most useful thing I can pass on. Almost everything that was wrong looked right in the code:</p><ul><li>The Docker image skipped a native module’s build step, so every database call failed the moment you were authenticated.</li><li>The container ran as a user that could not write the mounted data directory, so SQLite opened read-only and every status update vanished silently. The dashboard simply froze in the past.</li><li>Signing in is a client-side navigation, so the component that loads data never re-ran — the dashboard sat on its skeletons forever. Every test I had written navigated with a full page load afterwards, which hid it perfectly.</li><li>Two projects launched in the same second both got the same port, because the allocator read the free list before either had written. A unique index fixed it; a code review would not have.</li></ul><p>None of those were found by reading. All of them were found by tearing the whole thing down and building it back up from an empty machine.</p><h3>Try it</h3><p>It is MIT-licensed and on GitHub:</p><p><a href="https://github.com/dataAiOliver/nolaptop">https://github.com/dataAiOliver/nolaptop</a></p><pre>git clone https://github.com/dataAiOliver/nolaptop.git<br>cd nolaptop<br>make check      # tells you what is missing, changes nothing<br>make install<br>make dev</pre><p>There is a make demo that creates two example projects on a server and tells you exactly what it did — one plain, one wired to its own database and bucket — and a make demo-clean that removes them again. I built this because I wanted it. If it is useful to you, take it. If you want to change something, the Claude-specific parts sit behind a single adapter file, so another agent — Codex, the Gemini CLI — is a sibling of that file rather than a rewrite. Issues and pull requests are welcome. So is a note saying it did or did not work for you: <a href="/service/mailto:data.ai.oliver@gmail.com">data.ai.oliver@gmail.com</a>. Now, if you will excuse me, I have a questionable side project to start. I am on a bus.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9433b0b7994" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Made the Compute 16× Faster — and the Job Didn’t Get Any Faster]]></title>
            <link>https://medium.com/@data.ai.oliver/i-made-the-compute-16-faster-and-the-job-didnt-get-any-faster-b4db3c7920a0?source=rss-14bdd4220b84------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4db3c7920a0</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[duckdb]]></category>
            <category><![CDATA[clickhouse]]></category>
            <category><![CDATA[postgresql]]></category>
            <dc:creator><![CDATA[Oliver]]></dc:creator>
            <pubDate>Fri, 18 Sep 2026 12:05:10 GMT</pubDate>
            <atom:updated>2026-09-18T12:05:10.584Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*REONj_UT0DlCty5jOb_wrg.png" /><figcaption><em>The fastest compute engine doesn’t necessarily make the fastest system. Data movement and locality can matter just as much.</em></figcaption></figure><p><em>The complete benchmark — including the SQL, data generator, verification logic and reproducible setup — is available in the original repository:</em></p><p><a href="https://github.com/dataAiOliver/olap-bench"><strong><em>github.com/dataAiOliver/olap-bench</em></strong></a></p><h3>A realistic PostgreSQL vs DuckDB vs ClickHouse benchmark on an hourly insurance batch</h3><p>I started this benchmark with a fairly simple question:</p><p><strong>What happens when a business process that used to be small slowly turns into an analytics workload?</strong></p><p>That happens all the time. A system starts with a few hundred thousand records. A couple of reports get added. Then there are more customers, more history, more events, more calculations. At some point, a job that used to be boring becomes something people wait for. So I built a small benchmark around a scenario that felt realistic enough to matter:</p><p>An insurer recalculates the current state of every open claim once per hour.</p><p>Not just a COUNT(*).</p><p>For every open claim, the batch calculates things like:</p><ul><li>how much has already been paid</li><li>how much reserve is still open</li><li>what happened in the last 7, 30 and 90 days</li><li>when the customer was last contacted</li><li>whether an SLA has been breached</li><li>and finally a priority score for the claims team</li></ul><p>The important part is this:</p><p><strong>Every run is a full recomputation.</strong></p><p>Nothing is carried over from the previous hour. That sounds wasteful at first, but it is actually pretty normal when data arrives from external or older systems as complete extracts instead of clean change feeds. And there is another nasty property: the answer only contains currently open claims, but the calculation still has to scan years of history to work out what happened to them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*Z4P3GX8ubAYOxvEjwnw0fQ.png" /><figcaption><em>Same business calculation, same data, same CPU and memory limits. All three results verified identical.</em></figcaption></figure><h3>The setup: one job, three architectures</h3><p>I wanted to compare three ways of solving exactly the same business problem. The first one is the obvious architecture:</p><p><strong>PostgreSQL does everything.</strong></p><p>The source data is in PostgreSQL, the calculation runs there, and the resulting snapshot is written back there. The second version is the architecture I was especially curious about:</p><p><strong>PostgreSQL stays the system of record, but DuckDB does the heavy calculation.</strong></p><p>DuckDB reads the source tables from PostgreSQL, calculates the snapshot, and then writes the finished result back using bulk COPY.</p><p>The third version puts the analytical copy of the data in <strong>ClickHouse</strong> and calculates the snapshot there. So the three paths are basically:</p><pre>PostgreSQL<br>    ↓<br>Compute in PostgreSQL<br>    ↓<br>Snapshot</pre><pre>PostgreSQL<br>    ↓<br>Extract<br>    ↓<br>DuckDB<br>    ↓<br>Compute<br>    ↓<br>Bulk COPY<br>    ↓<br>PostgreSQL Snapshot</pre><pre>ClickHouse<br>    ↓<br>Compute in ClickHouse<br>    ↓<br>Snapshot</pre><p>The DuckDB benchmark includes the whole round trip. That matters. I didn’t want to report “DuckDB calculated it in 0.38 seconds” while quietly ignoring the five seconds required to get the source data there. The business doesn’t care how fast one isolated step is. It cares how long it waits for the result.</p><h3>The dataset</h3><p>For the medium run, the source data contains:</p><ul><li><strong>500,000 claims</strong></li><li><strong>20,288,484 claim events</strong></li><li><strong>3,796,210 payments</strong></li><li><strong>4,784,527 communications</strong></li></ul><p>The final snapshot contains <strong>146,439 open claims</strong>. So roughly 29 million source rows collapse into about 146,000 output rows. That is exactly the kind of workload I wanted:</p><p>A lot of scanning. A lot of aggregation. Not much output.</p><p>The data is synthetic, but it isn’t just uniform random noise. There are three years of history. Roughly 29% of claims are still open. Event counts vary heavily between claims. Some claims have no payment yet. Reserve amounts have a long tail. The generator is deterministic, so both databases are loaded from exactly the same generated Parquet files.</p><p>That last bit turned out to be more important than I expected. If each engine generates its own “random” data, you can end up comparing two different workloads without noticing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*7n34O2snTBYjW2t8Z2Y_IA.png" /><figcaption><em>Medium dataset. About 29 million source rows feed each hourly snapshot calculation</em></figcaption></figure><h3>I tried not to make PostgreSQL look bad</h3><p>This was probably the part I cared most about. It is very easy to make a benchmark where the result is basically decided before it starts. Give PostgreSQL a bad schema, no useful indexes and low memory. Tune ClickHouse properly. Then announce that ClickHouse won.</p><p>That doesn’t tell you very much. So PostgreSQL got some attention.</p><p>The benchmark uses realistic indexes, including (claim_id, event_ts). The tables are analyzed. work_mem was tested at multiple values and the batch session ended up using 512 MB.</p><p>I also changed the PostgreSQL implementation from INSERT ... SELECT to CREATE TABLE AS, because the former prevented the query from using parallel execution properly. And the big source tables were CLUSTERed in a useful order.</p><p>That alone moved the PostgreSQL runtime from about <strong>7.33 seconds to 6.09 seconds</strong>.</p><p>I even tried forcing more parallelism. It was slower. The PostgreSQL planner was right not to use it in some parts of the query because the cost of merging all the partial aggregates outweighed the benefit of scanning with more workers. So the PostgreSQL number in the final comparison is not an intentionally weak baseline. If anything, it is a pretty friendly one.</p><h3>The result</h3><p>Here is the medium run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*ClqCfc-CDBUZ3RlvdGO_Uw.png" /></figure><p>All three produced the same 146,439 result rows, and the full result sets matched when hashed after canonicalization. ClickHouse is the obvious headline.</p><p><strong>6.07 seconds vs 0.50 seconds.</strong></p><p>About <strong>12.2× faster</strong> for this workload. But that wasn’t actually the result I found most interesting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ORx_TRy_R8mHbYpET7jqFQ.png" /><figcaption><em>Median of three measured warm runs after one warm-up run.</em></figcaption></figure><h3>DuckDB made the calculation 16× faster</h3><p>And the job still took the same amount of time. This was the more useful result. The DuckDB run breaks down like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*Hzz0lseA4WYfnhfzteaNYw.png" /></figure><p>Read that again. DuckDB does the actual analytical calculation in <strong>0.38 seconds</strong>. PostgreSQL takes <strong>6.07 seconds</strong> for the whole job. So the compute step itself is roughly <strong>16× faster</strong> in DuckDB. That is a huge difference. And it buys us basically nothing.</p><p>Why?</p><p>Because before DuckDB can start calculating, almost 29 million source rows have to leave PostgreSQL. That takes <strong>5.15 seconds</strong>. The compute is no longer the bottleneck.</p><p><strong>Moving the data is.</strong></p><p>I like this result because it is the kind of thing that gets lost in benchmark discussions. People often ask:</p><blockquote>Which database is faster?</blockquote><p>But that is usually not the right question.</p><p>A better question is:</p><blockquote>Where does the data live when the calculation starts?</blockquote><p>If you add a fast analytical engine next to a transactional database but copy the full history into it before every single run, you can easily spend the entire speedup on transport. The analytical engine did its job. The architecture didn’t.</p><p><strong>[SCREENSHOT 6 — DuckDB breakdown]</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jRynlpfMhqMbpJAZ9ITYkg.png" /><figcaption><em>DuckDB was extremely fast at the actual calculation. Data movement erased the advantage.</em></figcaption></figure><h3>This is where “data locality” stops being an academic phrase</h3><p>The DuckDB result changed how I would design the production version. If the data already exists in Parquet, or on a local analytical copy, or in a format DuckDB can read without pulling everything across a database connection first, then the 0.38-second compute time becomes very interesting.</p><p>But if every run starts with:</p><blockquote>copy 29 million rows out of PostgreSQL</blockquote><p>then adding DuckDB is mostly moving the bottleneck around. So for me there are really three different architecture choices here.</p><h3>Keep it in PostgreSQL</h3><p>If the dataset is small enough and six seconds is completely acceptable, stop. That is honestly an important outcome. Not every analytical workload needs another database.</p><h3>Use DuckDB where the data is already accessible</h3><p>DuckDB becomes much more compelling when the analytical input is already local or stored in something like Parquet. Then you get the fast vectorized compute without paying the full source extraction tax every hour.</p><h3>Keep a persistent analytical copy in ClickHouse</h3><p>If this is a recurring workload over a growing history, the analytical data can live where the analytical compute happens. Then the expensive transfer does not happen at query time. That is the architecture ClickHouse benefits from in this benchmark.</p><h3>The storage numbers surprised me too</h3><p>Performance was not the only big difference. At medium scale, the four PostgreSQL source tables consume about <strong>3,854 MB</strong>. The same source data in ClickHouse takes <strong>339 MB</strong>. Peak memory during the batch was:</p><ul><li>PostgreSQL: <strong>3.36 GB</strong></li><li>ClickHouse: <strong>393 MB</strong></li></ul><p>That is roughly a ninth of the disk space and well under a tenth of the peak memory for this workload. Again, that does not mean ClickHouse is magically better at everything. It means the physical layout matches the job. The benchmark only needs a few columns from very large tables.</p><p>PostgreSQL stores rows together, so reading a timestamp from an event row means reading the surrounding row structure too. ClickHouse stores columns separately and can read only the columns needed for the calculation. When you are scanning tens of millions of rows and touching only a handful of columns, that difference compounds very quickly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nCAYoxdJakQWmlR_mri-Cw.png" /><figcaption><em>Same source data, very different physical representation.</em></figcaption></figure><h3>And no, ClickHouse wasn’t allowed to cheat</h3><p>There is a slightly funny part here. The ClickHouse version is still doing more work than I would probably make it do in a real production system. For this benchmark I disabled or avoided:</p><ul><li>materialized views</li><li>projections</li><li>incremental aggregation</li><li>precomputed helper tables</li><li>query result caching</li></ul><p>ClickHouse recomputes the complete snapshot from the base tables on every run. Its own query log confirms that every run reads all <strong>29.37 million source rows</strong>. That is deliberate. If PostgreSQL recomputed the entire history while ClickHouse maintained a pre-aggregated answer continuously, I would no longer be comparing the same job. In a real production design, though, that becomes the next obvious step. ClickHouse can maintain some of these aggregates incrementally with materialized views, projections or engines such as AggregatingMergeTree. In other words:</p><p><strong>0.50 seconds is not “ClickHouse with every optimization switched on.”</strong></p><p>It is the full batch recomputation.</p><h3>Verification caught a bug before the benchmark did</h3><p>One thing I would not skip in a benchmark like this is result verification. The project doesn’t just compare row counts. It reads the complete results back in deterministic order, normalizes money and timestamps, and calculates a SHA-256 over the entire result set. If the hashes differ, the benchmark fails instead of printing performance numbers.</p><p>That actually caught a real cross-engine issue while building it. DuckDB’s // operator was not behaving like integer division in one expression because the operands were DOUBLE. A value that PostgreSQL and ClickHouse truncated to 66 ended up effectively becoming 67 after later conversion in DuckDB. The benchmark would have looked perfectly fine from a performance perspective. It just would not have been calculating exactly the same thing. Verification caught it.</p><p>That is another reason I am a little suspicious of database benchmarks that publish only runtimes. A fast wrong answer is still wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/353/1*F236htiaLprM994OTlzKlA.png" /><figcaption><em>Performance numbers are only reported after the complete results have been verified.</em></figcaption></figure><h3>What this benchmark does not say</h3><p>I don’t think the conclusion is:</p><blockquote>PostgreSQL is slow.</blockquote><p>That would be nonsense. PostgreSQL is very good at transactional workloads. Looking up one claim, inserting one payment, enforcing foreign keys, handling lots of concurrent short transactions with proper ACID guarantees — that is a completely different job. This benchmark deliberately tests a workload where nearly everything is scanned and then heavily aggregated.</p><p>That is exactly where a column-oriented analytical engine has a structural advantage. And PostgreSQL should not be used as shorthand for “all commercial databases”. SQL Server has columnstore indexes. Db2 has BLU. Oracle has its own analytical and in-memory features. A company already using those capabilities could see a completely different result. So I would not generalize this to:</p><blockquote>ClickHouse is always 12× faster than a relational database.</blockquote><p>The useful statement is much narrower:</p><blockquote><strong>For repeated full-batch scans and aggregations over large histories, storing the analytical copy in a columnar engine can make a very large difference.</strong></blockquote><p>That is what this benchmark shows.</p><h3>The part I would actually take into a production design</h3><p>The biggest lesson for me wasn’t that ClickHouse won. It was this:</p><p><strong>I made the compute 16× faster and the job did not get any faster.</strong></p><p>That tells you something much more useful than another leaderboard. The system is a pipeline. Source storage matters. Data movement matters. Writeback matters. And the fastest individual component does not necessarily make the complete business process faster. If I were designing this for a real customer, I would not start with:</p><blockquote>Which database should we migrate to?</blockquote><p>I would start with:</p><blockquote>Where does the time actually go?</blockquote><p>Maybe PostgreSQL is already fast enough. Maybe DuckDB is the simplest fix because the data is already available as files. Maybe a persistent ClickHouse layer makes sense because the same analytical history is queried again and again. The answer depends on where the bottleneck is.</p><p>That is also why I like this benchmark more than a synthetic “run these 20 SQL queries and rank the engines” test. The DuckDB result is technically worse for the headline. But much better for the actual lesson.</p><h3>Reproducing it</h3><p>The repository is deliberately small. There is no Kafka, no Airflow, no dashboard framework and no pile of infrastructure around the benchmark. The important queries are plain SQL files. A medium run is basically:</p><pre>git clone https://github.com/dataAiOliver/olap-bench<br>cd olap-bench<br>cp .env.example .env            # point at your PostgreSQL and ClickHouse<br>make seed SCALE=medium          # ~3 minutes<br>make demo SCALE=medium</pre><p>The project seeds the data, runs the implementations, verifies the result and writes the benchmark report. That is the part I wanted to keep simple. If someone disagrees with the result, they should be able to read the SQL and run it themselves.</p><h3>Final thought</h3><p>There is a temptation with performance work to jump straight to a new tool. Sometimes that is correct. But the more useful sequence is usually:</p><p><strong>Measure the process.<br> Find the actual bottleneck.<br> Then change the architecture where it matters.</strong></p><p>In this benchmark, ClickHouse reduced the full batch from <strong>6.07 seconds to 0.50 seconds</strong>. DuckDB reduced the actual compute step to <strong>0.38 seconds</strong> — and still failed to improve the end-to-end process because the source data had to be moved first. I think that second result is the more interesting one. Because that is what real systems tend to look like. You fix one bottleneck. And suddenly you can finally see the next one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4db3c7920a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Free, Local Data Ingestion Layer with Airbyte and PostgreSQL]]></title>
            <link>https://medium.com/@data.ai.oliver/building-a-free-local-data-ingestion-layer-with-airbyte-and-postgresql-7b7a1ebe6f4f?source=rss-14bdd4220b84------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b7a1ebe6f4f</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[airbyte]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Oliver]]></dc:creator>
            <pubDate>Fri, 04 Sep 2026 17:40:57 GMT</pubDate>
            <atom:updated>2026-09-04T17:40:57.407Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s_Gnjz82hjLsW3w5wcih8g.png" /></figure><p><strong><em>Want to try it yourself?</em></strong><em> I’ve made the complete example available as a public GitHub repository: </em><a href="https://github.com/dataAiOliver/airbyte-postgres-demo"><em>github.com/dataAiOliver/airbyte-postgres-demo</em></a><em>. The repository contains the full local setup, demo data, health checks, and everything needed to reproduce the architecture in this article — the stack can be brought up with a single </em><em>make setup command.</em></p><h4>How to connect SaaS data sources to a local PostgreSQL database without adding transformation logic, cloud infrastructure, or licensing costs</h4><p>Most data projects do not start with machine learning, dashboards, or sophisticated analytics. They start with a much less glamorous problem: getting the data into one place.</p><p>A company may have customer information in a CRM, subscription and payment data in a billing platform, product events in an application database, and support data somewhere else entirely. Before any of that can be analyzed, modeled, or used for automation, it first has to be collected reliably.</p><p>That is the problem I want to solve in this article.</p><p>We will build a small ingestion layer with <strong>Airbyte</strong> and <strong>PostgreSQL</strong>. The entire data platform itself runs locally, uses open-source software, and does not require a cloud account or paid infrastructure. To make the example more realistic, I use HubSpot and Stripe as two sample source systems, but they are deliberately not the focus of the article. You could replace them with many other systems supported by Airbyte without changing the architecture.</p><p>The end result is intentionally simple:</p><pre>Source systems<br>      │<br>      ▼<br>   Airbyte<br>      │<br>      ▼<br> PostgreSQL</pre><p>The important idea is not HubSpot, Stripe, or even PostgreSQL. It is the separation of concerns: <strong>Airbyte moves data. It does not decide what that data means.</strong></p><p>That distinction becomes increasingly important as a data platform grows.</p><h3>Why I start with ingestion</h3><p>When people talk about modern data platforms, the conversation quickly moves toward dashboards, dbt models, orchestration, machine learning, or AI. Those are valuable layers, but none of them work without reliable access to the underlying data.</p><p>For that reason, I like to treat ingestion as a separate architectural concern.</p><p>The ingestion layer should answer one question:</p><blockquote>How do I get data from the source system into a place where I control it?</blockquote><p>It should not answer questions such as which customers are valuable, how monthly recurring revenue should be calculated, whether a payment failure indicates churn risk, or how CRM records should be joined to subscription data. Those decisions belong downstream.</p><p>Keeping ingestion deliberately “dumb” has several advantages. Raw data can be reprocessed when business rules change, transformations are easier to test because they are not hidden inside connectors, and replacing one tool does not require rebuilding an entire analytical model.</p><p>In this project, Airbyte writes source-shaped data into PostgreSQL and stops there.</p><pre>HubSpot ─┐<br>         ├──&gt; Airbyte ───&gt; PostgreSQL<br>Stripe ──┘                 ├── raw_hubspot<br>                           └── raw_stripe</pre><p>There is no dbt project, no orchestration engine, no BI layer and no Python analytics code in this setup. Those can all be added later, but they should not be required just to ingest data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x3nOU3MtiDQ1sP9k072THQ.png" /><figcaption><strong>A deliberately simple ingestion architecture: source systems are replicated through Airbyte into raw PostgreSQL schemas.</strong></figcaption></figure><h3>A completely local and free data platform</h3><p>One of the reasons I chose this setup is that the infrastructure itself can run entirely on a developer laptop.</p><p>PostgreSQL runs as a Docker container. Airbyte runs locally using Airbyte’s abctl installer, which creates a lightweight Kubernetes environment using kind. Docker provides the underlying container runtime for both.</p><p>The source applications can still be remote SaaS systems — as they normally would be in a real company — but the ingestion platform and destination database do not require a cloud deployment.</p><p>That makes this setup useful for learning, prototyping, internal workshops, architecture experiments, and technical demonstrations. It also means that someone following the article does not have to create AWS resources, configure Terraform, or start paying for a managed warehouse just to understand how the ingestion layer works.</p><p>For this repository I pinned the main components to stable versions rather than relying on latest tags. The current demo uses PostgreSQL 17.11, Airbyte Core 2.0.0 with Helm chart 2.0.18, and abctl 0.30.4. The repository also records the expected Docker versions so that the environment remains reproducible.</p><p>The exact versions will obviously evolve over time, but the principle matters more than the individual numbers: <strong>a tutorial should be reproducible, not dependent on whatever happens to be </strong><strong>latest on the day somebody runs it.</strong></p><h3>How the local architecture actually works</h3><p>At first glance, it would be reasonable to expect both PostgreSQL and Airbyte to live inside the same docker-compose.yml. That is no longer how I would install Airbyte locally.</p><p>PostgreSQL is started with Docker Compose, while Airbyte is installed with abctl. Under the hood, abctl creates a local kind Kubernetes cluster and deploys the Airbyte services into it.</p><p>Conceptually, the machine looks like this:</p><pre>Docker<br>│<br>├── PostgreSQL container<br>│<br>└── Airbyte kind control-plane container<br>     │<br>     └── Kubernetes<br>          ├── Airbyte server<br>          ├── Airbyte workers<br>          ├── web application<br>          ├── workload services<br>          └── connector workloads</pre><p>You do not need to administer Kubernetes yourself. For the purposes of this project, abctl takes care of that.</p><p>However, knowing that this extra network boundary exists explains one of the most common local configuration problems later in the tutorial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*k7f7dEWHlWWLlTzYm9J8Hw.png" /><figcaption><strong>PostgreSQL runs directly in Docker, while Airbyte is deployed by </strong><strong>abctl into a local </strong><strong>kind Kubernetes cluster.</strong></figcaption></figure><h3>Getting the repository running</h3><p>I wanted the repository to be usable without turning the README into a long checklist of manual installation commands. The main entry point is therefore:</p><pre>git clone https://github.com/dataAiOliver/airbyte-postgres-demo<br>cd airbyte-postgres-demo<br>make setup</pre><p>make setup first creates a local .env file if one does not already exist. It then runs a small environment check before starting PostgreSQL and installing Airbyte.</p><p>The check verifies the operating system and CPU architecture, whether Docker is installed and running, whether Docker Compose is available, whether abctl is installed, and whether the required local ports are available.</p><p>If something is missing, the script stops before making changes and prints an appropriate fix. This makes the same repository usable on both macOS and Linux, including Apple Silicon.</p><p>Once all checks pass, PostgreSQL is started through Docker Compose and Airbyte is installed with the pinned chart version.</p><p>The first Airbyte installation is the slow part. Several container images have to be downloaded, so depending on the machine and network connection, the initial setup can take a while. Later starts are considerably faster because those images are already cached.</p><p>When the process finishes, PostgreSQL is available locally on port 5432, while the Airbyte web interface is exposed on:</p><pre>http://localhost:8000</pre><p>The generated Airbyte credentials can be displayed with:</p><pre>make credentials</pre><p>and the overall state of the environment with:</p><pre>make status</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*cyD8TUaiV1314IQAOhPB9g.png" /><figcaption><strong>The repository performs the local preflight checks and brings up both PostgreSQL and Airbyte with a single command.</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XA-aoxjhFsRnJeAgknZdxw.png" /><figcaption><strong>Airbyte running locally at </strong><strong>localhost:8000 after installation through </strong><strong>abctl.</strong></figcaption></figure><h3>Adding realistic source data</h3><p>You do not need HubSpot or Stripe specifically to follow the architecture in this article. I use them because they represent two very common categories of business systems: a CRM and a billing platform.</p><p>The repository contains a small seed process that creates a shared set of fictional companies in both systems. HubSpot gets companies, contacts and deals. Stripe gets customers, products, prices, subscriptions, invoices and payment-related records.</p><p>The point is not to teach either API. The point is simply to avoid demonstrating an ingestion platform with empty sources.</p><p>The fictitious companies are identifiable in both systems through shared metadata such as a company domain. That becomes useful in later data-modeling exercises, but there is deliberately no join between the two systems at this stage.</p><p>From Airbyte’s perspective, these are still completely independent sources.</p><pre>CRM data                         Billing data<br>   │                                  │<br>   ▼                                  ▼<br>HubSpot                            Stripe<br>   │                                  │<br>   └────────────── Airbyte ────────────┘<br>                         │<br>                         ▼<br>                    PostgreSQL</pre><p>This is also an important distinction in real projects. Data integration should not depend on the assumption that different source systems already share a perfect data model. The raw layer preserves what each source actually contains.</p><p>To keep the demo safe, the Stripe seed uses test-mode data only. The scripts explicitly reject live Stripe keys. Credentials for both systems are stored in the local .env file and are never committed to the repository.</p><p>If you already have your own source system available, you can skip the seed process entirely and connect that instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4IhHbprTvBfUyWQt1jiqdg.png" /><figcaption><strong>Fictitious business records provide realistic source data for the ingestion demo; the specific applications are interchangeable.</strong></figcaption></figure><h3>Connecting the first source in Airbyte</h3><p>Once Airbyte is running, creating a source follows the same general workflow regardless of the application.</p><p>In Airbyte, open <strong>Sources</strong>, create a new source, select the appropriate connector, provide the credentials, and test the connection.</p><p>For my example, I connect HubSpot first. Airbyte discovers the streams exposed by the connector, including CRM objects such as companies, contacts and deals.</p><p>The important part is that I do not transform anything here. I am only deciding which source streams Airbyte is allowed to replicate.</p><p>This is a useful place to resist the temptation to clean up the data immediately. A field name may look inconvenient, a source schema may contain properties you do not currently need, and different applications may represent the same business concept differently. Those are modeling problems, not ingestion problems.</p><p>The purpose of this layer is to create a reliable copy of the source data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gI1BF6BEFj2nhaUhgNTrbQ.png" /><figcaption><strong>A source connector defines how Airbyte reads from an external system; no business logic is added at this stage.</strong></figcaption></figure><p>After that, I create a second source using Stripe’s test environment. The steps are essentially the same, which is exactly the point.</p><p>Adding a second SaaS application does not require changing the architecture.</p><p>The connector changes. The ingestion pattern does not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*08QbGzUAchTDYttYD5gN1g.png" /><figcaption><strong>Multiple source systems can feed the same ingestion layer without changing the overall architecture.</strong></figcaption></figure><h3>Configuring PostgreSQL as the destination</h3><p>The destination is a PostgreSQL database called warehouse.</p><p>The repository creates two raw schemas:</p><pre>raw_hubspot<br>raw_stripe</pre><p>These names make the ownership of the data obvious. They are landing zones, not analytics schemas.</p><p>A local application such as DBeaver, psql, or TablePlus can connect to PostgreSQL using:</p><pre>Host: localhost<br>Port: 5432<br>Database: warehouse<br>User: airbyte</pre><p>There is one subtle but important difference when the connection originates from Airbyte.</p><p>Inside an Airbyte connector, localhost does not mean your laptop. It refers to the container or Kubernetes environment where the connector is running. PostgreSQL is outside that environment.</p><p>For the local setup, the destination host used by Airbyte is therefore:</p><pre>host.docker.internal</pre><p>The corresponding destination configuration looks conceptually like this:</p><pre>Host:            host.docker.internal<br>Port:            5432<br>Database:        warehouse<br>Schema:          raw_hubspot<br>Username:        airbyte<br>SSL:             disabled for this local demo<br>SSH tunnel:      none</pre><p>On Docker Desktop for macOS, host.docker.internal is available directly. Modern Docker setups on Linux can expose the same host mapping as well. The repository includes a connectivity check because this network boundary is the part of the local architecture most likely to cause confusion.</p><p>If a connector test fails while PostgreSQL is clearly running, checking whether localhost was used by mistake is the first thing I would do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*mmTpIuk4OmXJYDZpL6wUSw.png" /><figcaption><strong>Airbyte reaches the host PostgreSQL instance through </strong><strong>host.docker.internal; </strong><strong>localhost would point to the Airbyte runtime itself.</strong></figcaption></figure><h3>Creating the actual syncs</h3><p>With source and destination configured, the final Airbyte step is to create a connection between them.</p><p>For the CRM example, the destination namespace is raw_hubspot. For the billing example, it is raw_stripe.</p><p>This gives us a very simple contract:</p><pre>HubSpot<br>   │<br>   ▼<br>raw_hubspot.*</pre><pre>Stripe<br>   │<br>   ▼<br>raw_stripe.*</pre><p>I then select the streams I want to replicate and trigger the first sync.</p><p>For the HubSpot connection, that may include streams for companies, contacts and deals. For Stripe, useful examples include customers, subscriptions, invoices and payment-related objects.</p><p>The exact list is not especially important for this article. The more important observation is that Airbyte understands the source APIs, handles extraction, and writes the resulting records into PostgreSQL without requiring us to build and maintain custom ingestion scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lFyikvH_6QGLp_A2FTgSyA.png" /><figcaption><strong>Each connection controls which source streams are replicated and where their raw data lands in PostgreSQL.</strong></figcaption></figure><p>After starting a sync, Airbyte shows the job in its timeline. I always check the actual record counts rather than treating a green status indicator as the only proof of success.</p><p>A successful pipeline should ultimately be visible in the destination database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TyxYaft41YRNEWBWgbFj1g.png" /><figcaption><strong>A completed Airbyte job shows the source streams replicated into the configured PostgreSQL destination.</strong></figcaption></figure><h3>Verifying the result in PostgreSQL</h3><p>The final check is outside Airbyte.</p><p>At this point I want to confirm that PostgreSQL actually contains the replicated tables.</p><p>A simple query is enough:</p><pre>SELECT<br>    table_schema,<br>    table_name<br>FROM information_schema.tables<br>WHERE table_schema IN (&#39;raw_hubspot&#39;, &#39;raw_stripe&#39;)<br>ORDER BY table_schema, table_name;</pre><p>After both syncs have run, PostgreSQL contains source-specific tables in each raw schema.</p><p>The exact schema depends on the Airbyte connectors and their current implementation, but conceptually the result looks like this:</p><pre>raw_hubspot<br>├── companies<br>├── contacts<br>└── deals</pre><pre>raw_stripe<br>├── customers<br>├── subscriptions<br>├── invoices<br>└── ...</pre><p>At this point, the objective of the project has been reached.</p><p>We have data from separate operational systems under our own control in one PostgreSQL database.</p><p>Nothing has been joined yet. Nothing has been aggregated. No churn score, revenue metric or dashboard has been created.</p><p>That is intentional.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GA1LM5JOW83iQsy1Z-UvDw.png" /><figcaption><strong>The result of the ingestion layer: source-shaped data from separate systems is now available in PostgreSQL.</strong></figcaption></figure><p>You can also show a few rows from one of the tables:</p><pre>SELECT *<br>FROM hubspot.companies<br>LIMIT 10;</pre><p>or:</p><pre>SELECT *<br>FROM stripe.customers<br>LIMIT 10;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7096xu1A0bTMYr-9TP_H0g.png" /><figcaption><strong>The raw layer preserves the source records for downstream transformation and analysis.</strong></figcaption></figure><h3>Why I intentionally stop here</h3><p>It would be easy to continue from this point.</p><p>We could join CRM companies to billing customers. We could calculate revenue metrics. We could model customer health. We could add dbt, schedule the pipeline, create a dashboard or train a churn model.</p><p>I deliberately do none of those things in this setup because they are separate architectural concerns.</p><p>A clean data platform tends to be easier to operate when its layers have clear responsibilities.</p><pre>Ingestion<br>    ↓<br>Transformation<br>    ↓<br>Orchestration<br>    ↓<br>Analytics / Applications</pre><p>Airbyte belongs primarily in the first layer.</p><p>That does not mean Airbyte is incapable of doing anything beyond basic replication. It means that, for this architecture, I prefer to keep transformation and business semantics outside the ingestion layer.</p><p>The raw data should remain close enough to the source that I can reason about where it came from and replay downstream logic when requirements change.</p><p>That becomes especially valuable once a data platform has more than two sources.</p><h3>Local does not mean production architecture</h3><p>This setup is intentionally optimized for reproducibility and learning, not for production scale.</p><p>In a real client project, several things would normally change. PostgreSQL might run as a managed service or be replaced by a cloud data warehouse. Credentials would live in a secret manager rather than a local .env file. Monitoring and alerting would be added around sync failures. Incremental replication strategies and schema evolution would need to be reviewed for each source. Separate environments would likely exist for development and production.</p><p>The local architecture is still valuable because those production concerns do not change the core design principle.</p><p>Data still has to move from operational systems into a controlled analytical environment.</p><p>By starting locally, we can understand that layer without introducing cloud infrastructure before it is needed.</p><h3>What this gives us</h3><p>At the beginning, our data was distributed across independent applications.</p><p>At the end, we have this:</p><pre>Operational systems<br>        │<br>        ▼<br>      Airbyte<br>        │<br>        ▼<br>   PostgreSQL RAW</pre><p>The platform is local, reproducible and built entirely from freely available tools. The source applications used in the example are simply examples; the same pattern can be applied to many other APIs, databases and SaaS products supported by Airbyte.</p><p>More importantly, we now own a central copy of the data.</p><p>That is the foundation for almost everything that comes later: reporting, customer analytics, forecasting, automation, machine learning, or AI-assisted business processes.</p><p>The interesting work can only begin once the data is accessible.</p><p>For that reason, I see ingestion as one of the least glamorous but most important parts of a data platform. A sophisticated model built on unreliable data pipelines is still an unreliable system.</p><p>Starting with a boring, understandable ingestion layer is often the better architecture.</p><h3>Final architecture</h3><pre>                      ┌─────────────────────┐<br>                      │   Source system A   │<br>                      └──────────┬──────────┘<br>                                 │<br>                      ┌──────────▼──────────┐<br>                      │                     │<br>                      │       Airbyte       │<br>                      │                     │<br>                      └──────────┬──────────┘<br>                                 │<br>                      ┌──────────▼──────────┐<br>                      │                     │<br>                      │     PostgreSQL      │<br>                      │                     │<br>                      │   raw_source_a      │<br>                      │   raw_source_b      │<br>                      │                     │<br>                      └─────────────────────┘<br>                                 ▲<br>                                 │<br>                      ┌──────────┴──────────┐<br>                      │   Source system B   │<br>                      └─────────────────────┘</pre><p>HubSpot and Stripe happened to be my two demo sources. They could just as easily be replaced by another CRM, database, marketing platform, support system, or internal application.</p><p>The important part is the boundary in the middle:</p><p><strong>Airbyte gets the data in. PostgreSQL gives us a place to own it. Everything else comes later.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wZv-AEFPjdXAzFwyCOSDZw.png" /><figcaption><strong>A complete local ingestion layer: multiple operational sources replicated through Airbyte into source-specific raw schemas in PostgreSQL.</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b7a1ebe6f4f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What MCP Really Is — A Demo You Can Run on Your Laptop in 5 Minutes]]></title>
            <link>https://medium.com/@data.ai.oliver/what-mcp-really-is-a-demo-you-can-run-on-your-laptop-in-5-minutes-84498bc1f9f5?source=rss-14bdd4220b84------2</link>
            <guid isPermaLink="false">https://medium.com/p/84498bc1f9f5</guid>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Oliver]]></dc:creator>
            <pubDate>Mon, 04 May 2026 12:26:32 GMT</pubDate>
            <atom:updated>2026-05-04T14:11:47.913Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cEVJrwT0cq_ky_n6gyArHg.png" /></figure><p><em>Skip the slide decks. Clone one </em><a href="https://github.com/dataAiOliver/rheintal-pumpen-mcp"><em>repo</em></a><em>, run one command, and ask a working AI agent questions about a demo pump company. Then peek under the hood.</em></p><p>MCP is the future. Everyone says so. Few have actually used one.</p><p>I’m a digitalization consultant. Every other client conversation now ends with the same question: <em>“so… should we be doing MCP?”</em> I’ve drawn the same diagram on the same whiteboard a hundred times, and I’ve watched eyes glaze over a hundred times. So I stopped explaining.</p><p>I built a demo company instead. It has customers, orders, invoices, deliveries, complaints, and a chat agent that knows how to use all of them. You clone one repo, run one command, wait a few minutes, and you’re talking to it. Then you open a second tab and watch every call the AI makes, in real time, with the same arguments and answers the protocol sees.</p><p>This article is the shortest path I know from <em>“I keep hearing about MCP”</em> to <em>“oh, that’s what it does.”</em> No code required from you. Just a laptop with Docker.</p><blockquote><strong><em>MCP (Model Context Protocol)</em></strong><em> is a standard contract that lets an AI use your business tools — read a CRM, query a database, file a ticket — through plain language. This post walks you through a public demo you can run locally in under five minutes. By the end you’ll have asked a demo B2B company a question, watched it pull data from its own backend, and inspected every tool call in a built-in dashboard.</em></blockquote><h3>Meet the demo: a pump maker — and its agent</h3><p>Say hello to <strong>Rheintal Pumpen GmbH</strong>, a fictional German industrial pump manufacturer. About 60 customers, 250 orders, complaints, deliveries, service tickets — the kind of data shape every mid-market B2B has lying around in some ERP nobody likes touching.</p><p>The demo runs all of it on your laptop: a SQLite database, an MCP server exposing 13 tools (search products, look up a customer, list open invoices, file a service ticket, and so on), and a chat UI on top.</p><p>The chat UI is <strong>LibreChat</strong> — open source, runs in the same docker-compose stack — and inside LibreChat there’s a configured <strong>agent</strong> called <em>“Rheintal Pumpen Demo.”</em> You don’t see a generic chat box; you see a named persona with conversation starters, a short system prompt, and a curated set of MCP tools wired up to it.</p><p>That distinction matters. The pattern emerging across the industry is: <strong>tools come from MCP, personality and policy come from the agent.</strong> The MCP server says <em>“here is what’s possible.”</em> The agent says <em>“here is who I am, what I’m here for, and what I’m allowed to use.”</em> In this demo the agent is a LibreChat-native feature — no extra service, no extra container — but the architectural idea is the same one you’d use in production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*J6PLzauQ_t23YK6VPgp8fg.png" /></figure><h3>Ask one question. Watch what happens.</h3><p>Here’s the moment.</p><p>You open the chat, click the agent, and type:</p><blockquote>“Which submersible pumps with stainless steel housing are in stock?”</blockquote><p>You get an answer. Plain English, four model names, stock counts, a one-line summary. Nice.</p><p>Then you expand the tool-call card — that little dropdown most chat UIs hide unless you go looking — and you see what the agent actually did.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*WPjGwY6jzzgKwMsCFQwhsQ.png" /></figure><p>It picked the right tool out of thirteen. It chose the correct category from a fixed enum (centrifugal_pump, submersible_pump, dosing_pump, accessory). It knew that material was a substring filter and that stainless would catch both &quot;stainless steel&quot; and &quot;cast iron / stainless steel&quot;. None of that was in your prompt. It read the tool&#39;s description, made the choice, and ran it.</p><p>Now flip the picture for a second. <em>Without MCP, the same question is a developer ticket.</em> Somebody has to write this:</p><pre>SELECT * FROM products<br>WHERE category = ?<br>  AND flow_rate_m3h &gt;= ?<br>  AND LOWER(material) LIKE ?<br>ORDER BY category, name<br>LIMIT 100;</pre><p>Then somebody has to know that category accepts only four values, that material is a LIKE substring match, and that the database lives behind some VPN. Then somebody has to plumb that query into a Slack bot, a dashboard, or a request form — and maintain it for five years.</p><p>With MCP, that whole chain collapses into one line:</p><pre>&quot;Which submersible pumps with stainless steel housing are in stock?&quot;</pre><p>The SQL still runs. It runs <em>correctly</em>, with parameter binding and bounds checks. It just runs underneath a sentence.</p><p>That’s the whole pitch in one beat: <strong>MCP turned a SQL skill into a sentence — and kept the SQL safely under the hood.</strong></p><h3>What just happened, in four lines</h3><p>If you want to know what MCP actually <em>is</em> — the protocol, not the marketing — it really fits in four lines.</p><p>A tool advertises three things: a <strong>name</strong>, a <strong>human-readable description</strong>, and a <strong>JSON schema for its parameters</strong>. The model reads that catalog, picks a tool, fills in the parameters, and calls it. That’s the whole contract.</p><p>Here’s what the model saw for the question above. This is the entire description string for search_products in this repo:</p><pre>&quot;Search products. Filters: &#39;category&#39; (centrifugal_pump, &quot;<br>&quot;submersible_pump, dosing_pump, accessory), &#39;min_flow_m3h&#39; &quot;<br>&quot;(minimum flow rate), &#39;material&#39; (substring, e.g. &#39;stainless&#39;).&quot;</pre><p>That paragraph — and a tiny JSON schema — is everything the agent had to work with. The category enum, the substring hint, the example value: that’s where its apparent cleverness came from. It wasn’t magic. It was a well-written description.</p><p>Look closely and you can see the design lever: <strong>how good your tool descriptions are <em>is</em> how good your agent is.</strong> This is the new programmer’s craft.</p><p>The lid lifts cleanly from there: any function in your existing stack — a CRM lookup, an SAP RFC, a Salesforce query — can become an MCP tool with the same shape. Name, description, schema. Done.</p><h3>Look under the hood: the Inspector and the Activity stream</h3><p>The chat is the headline. But the demo wouldn’t be very convincing if you had to <em>trust</em> that something sensible was happening behind it. So the repo ships two small dashboards, served straight from the MCP server itself, that let you see everything.</p><h3>The MCP Inspector — Swagger UI for tools</h3><p>Open http://localhost:8765/ in a second browser tab. You land on the <strong>MCP Inspector</strong> — a single page that lists every tool the server exposes, with the same metadata the model sees, just rendered for humans.</p><p>Each tool entry shows you four things at a glance:</p><ul><li><strong>What it does</strong> — the human description string, identical to what the LLM reads when it decides whether to call this tool.</li><li><strong>What it takes</strong> — the parameter schema, expanded into a small form-style block: which fields are required, which are enums (with the allowed values listed inline), which are free text, what the defaults are.</li><li><strong>Who can call it</strong> — an allowed_roles chip (admin, sales, accounting, service). Role-based access isn&#39;t an afterthought bolted onto MCP; it&#39;s right there next to the tool, at the protocol level.</li><li><strong>Whether it changes anything</strong> — a small orange write tag for tools that mutate state (only two, in this demo). Read tools have no tag. Anyone scanning the page sees the blast-radius surface in two seconds.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mp4hW6pEFY-b-YQM2CvgsQ.png" /></figure><p>This is the page I send to a customer when they ask: <em>“so what could we wire up to your AI?”</em> It answers without slides, without hand-waving, and without me on the call. They scroll thirteen tools. They see exactly which fields are typed and which are loose. They see two write tools, the rest read-only. In about two minutes they’ve done what would otherwise take a workshop. <em>That’s</em> the meeting I no longer have to take.</p><h3>The Live Activity stream — every call, in real time</h3><p>Now open http://localhost:8765/activity. This is the <strong>Live Activity stream</strong>: every tool call the server has handled, newest first, refreshing as you chat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VHtWELCYImX1eeC1sUhXUA.png" /></figure><p>Every card is one call. Click one and it expands into a side-by-side view: on the left, the JSON arguments the model picked; on the right, the JSON result the tool returned. If a call fails — a missing customer, an invalid filter — the card goes red and the error sits there in plain text. You can scroll back through your last ten questions and see, for each, exactly what the model decided to do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p9o4-v-PwWUmi7CF3kqtnw.png" /></figure><p>This is the second page I never have to make as slides. <em>“How do we know what the AI is actually doing?”</em> The activity stream answers it. <em>“What if we want to audit which questions an agent answered yesterday?”</em> Same answer — events are persisted; the page just shows the latest. <em>“What if we want to wire it into Splunk?”</em> Read the same JSON from /activity.json and ship it.</p><p>The deeper point: <strong>the visibility layer that makes natural-language tool use safe to deploy isn’t separate from MCP — it’s a thin wrapper around it.</strong> The Inspector and the Activity stream together are maybe 200 lines of HTML and one JSON endpoint. The protocol is doing the heavy lifting; the dashboards just expose what was already there.</p><h3>From curious to running — in five minutes</h3><p>Here’s the practical part.</p><p><strong>Prerequisite (yes, just one):</strong> Docker. Specifically Docker with the Compose plugin.</p><ul><li>On <strong>macOS or Windows</strong>: install Docker Desktop. It bundles everything you need.</li><li>On <strong>Ubuntu or Debian Linux</strong>: the repo ships a one-shot helper that installs Docker plus a small set of system tools (make, git, jq, python3). It&#39;s idempotent — safe to re-run.</li></ul><pre>sudo ./scripts/install-prereqs.sh</pre><p>That’s the only thing on a fresh Linux box that touches your system. After it, everything else lives inside containers.</p><p>Then the three lines that bring the company to life:</p><pre>git clone git@github.com:dataAiOliver/rheintal-pumpen-mcp.git<br>cd rheintal-pumpen-mcp<br>make up</pre><p>make up is the entire setup. It writes a .env from the example, generates the SQLite seed data, brings up four containers (the MCP server, LibreChat, MongoDB for chat history, Meilisearch for search), seeds a demo user, and seeds the LibreChat agent so you don&#39;t have to wire it up yourself. First run takes a couple of minutes — mostly pulling images.</p><p>Most tutorials stop here. This one doesn’t, because the part that breaks is usually the part nobody verifies. So:</p><pre>make smoke-test</pre><p>That probes /healthz on the MCP server, fetches /tools.json to confirm the catalog is being served, hits the LibreChat root on port 3080, and reads /activity.json to confirm audit logging is alive. If any of those fail, you know exactly where the problem is — not just <em>&quot;the chat doesn&#39;t work.&quot;</em> (If you&#39;d rather chain both, there&#39;s make up-verify.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*BiFRY-g5Be6086MJoq3Hjw.png" /></figure><p>Open your browser at <a href="http://localhost:3080/"><strong>http://localhost:3080</strong></a>. Register an account (it’s local — no email leaves your laptop), pick the <em>Rheintal Pumpen Demo</em> agent, and ask it something. The 13 tools available are right there in the side panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f91XLxMWbpNksHUxbycFEA.png" /></figure><p>One last detail: <strong>the agent needs an LLM provider to actually talk. If your </strong><strong>.env doesn&#39;t have one, </strong><strong>make up stops with a loud error block at the end and tells you exactly what to do — drop </strong><strong>OPENAI_API_KEY=sk-... or </strong><strong>ANTHROPIC_API_KEY=sk-ant-... into </strong><strong>.env and run </strong><strong>make up again.</strong></p><p>The script is idempotent; nothing is lost. You&#39;ll know the moment your key is missing, not three steps later in a broken chat.</p><blockquote><strong><em>Audit logs don’t disappear when the interface becomes a conversation — they get more useful.</em></strong></blockquote><h3>Why a business reader should care</h3><p>The most common fear I hear from clients is: <em>“AI will replace our APIs.”</em> The demo proves something more nuanced — and more useful. APIs don’t go away. They get a <strong>new front door.</strong></p><p>Three things this demo deliberately keeps intact, because real companies need them:</p><ul><li><strong>Role-based access stays.</strong> The MCP server in this repo has four roles — admin, sales, accounting, service. Each agent persona is bound to a role, and each role sees only the tools it should. The accountant agent can flag invoices but can’t file service tickets. The service agent can open tickets but can’t read accounting data. RBAC isn’t a casualty of natural language; it’s a parameter of it. You can see this exposed at the protocol level: every entry in /tools.json carries an allowed_roles array right next to its description, which is what the Inspector page renders.</li><li><strong>Audit logging stays — and gets richer.</strong> Every tool call is logged with the calling key’s role, the tool name, the arguments, and the result. The Live Activity stream you saw above is the human-readable face of that log; /activity.json is the machine-readable one. That&#39;s the compliance story your CISO has been asking about, with no extra integration work.</li><li><strong>Validation stays.</strong> Every tool input goes through a strict schema before it touches the database. Bad input is rejected before SQL ever runs. The model can’t accidentally drop your products table because it doesn’t have a “drop” tool — and that constraint is visible to every reader of the Inspector page.</li></ul><p>The strategic shift, once you put all of that together, is small but real: the bottleneck moves from <em>“can we integrate?”</em> to <em>“which questions are worth asking?”</em> That’s a much better problem to have.</p><h3>Try it</h3><p>Clone the repo, run make up, ask the agent a question, and keep the Activity tab open. That&#39;s the whole article.</p><p>→ <a href="https://github.com/dataAiOliver/rheintal-pumpen-mcp">https://github.com/dataAiOliver/rheintal-pumpen-mcp</a></p><p>If you got curious, clap. If you’re a consultant being asked the same question I was — share this with a client. They’ll come back with better questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84498bc1f9f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Real-World AI Automation: 3 Practical Use Cases (With Code)]]></title>
            <link>https://medium.com/@data.ai.oliver/building-real-world-ai-automation-3-practical-use-cases-with-code-b45bc75a2b1b?source=rss-14bdd4220b84------2</link>
            <guid isPermaLink="false">https://medium.com/p/b45bc75a2b1b</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Oliver]]></dc:creator>
            <pubDate>Sat, 19 Jul 2025 14:22:18 GMT</pubDate>
            <atom:updated>2025-07-19T14:22:18.961Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jrNz7as_U_8yaT3iBTTQUw.png" /></figure><p>Skip the hype. Here’s how I use AI to automate business processes — from inboxes to agents to documents.</p><h3>Introduction</h3><p>AI has moved fast — but most companies still don’t know how to turn it into working automation.</p><p>In this series, I walk through three practical use cases I’ve built using large language models (LLMs). These aren’t research projects or toy examples. They’re real workflows that save time, reduce manual work, and deliver value from day one.</p><p>Each article includes working code, architecture sketches, and clear reasoning — so you can adapt the ideas to your own projects.</p><h3>1. AI Secretary for Emails</h3><p>📩 <em>“How I Built an AI Secretary That Handles My Emails”</em></p><p><strong>Use case:</strong> Automatically extract meaning from incoming emails — like identifying invoices, extracting deadlines, or forwarding relevant content to Slack or Drive.</p><p><strong>Why it matters:</strong><br> Most email automation relies on brittle filters. This solution uses GPT-4 to <strong>understand</strong> the email, then trigger actions.</p><p><strong>Read the full article →</strong> <a href="https://medium.com/@data.ai.oliver/how-i-built-an-ai-secretary-that-handles-my-emails-dea1f4310dbb">https://medium.com/@data.ai.oliver/how-i-built-an-ai-secretary-that-handles-my-emails-dea1f4310dbb</a></p><h3>2. Comparing Agent Frameworks</h3><p>🤖 <em>“LangChain vs CrewAI vs Autogen: Which Agent Framework Should You Use?”</em></p><p><strong>Use case:</strong> You want to build an AI agent that does more than just chat — something that coordinates tools, plans tasks, or interacts with other agents.</p><p><strong>Why it matters:</strong><br> Not all frameworks are created equal. This article shows how they differ — and when to use which one.</p><p><strong>Read the full article →</strong> <a href="https://medium.com/@data.ai.oliver/langchain-vs-crewai-vs-autogen-a-practical-guide-to-choosing-an-ai-agent-framework-a2d5de59b6c4">https://medium.com/@data.ai.oliver/langchain-vs-crewai-vs-autogen-a-practical-guide-to-choosing-an-ai-agent-framework-a2d5de59b6c4</a></p><h3>3. Automating Everyday Business Tasks</h3><p>📊 <em>“Automate Your Business with AI — 3 Use Cases You Can Start Today”</em></p><p><strong>Use cases included:</strong></p><ul><li>Invoice processing (from inbox to archive)</li><li>Sales lead triage</li><li>Contract intelligence</li></ul><p><strong>Why it matters:</strong><br> You don’t need a team of data scientists to start. These are <strong>lightweight, high-impact automations</strong> anyone can implement with the right setup.</p><p><strong>Read the full article →</strong> <a href="https://medium.com/@data.ai.oliver/automate-your-business-with-ai-3-use-cases-you-can-start-today-8ba3f1dc1634">https://medium.com/@data.ai.oliver/automate-your-business-with-ai-3-use-cases-you-can-start-today-8ba3f1dc1634</a></p><h3>Conclusion</h3><p>You don’t need to build the next ChatGPT.<br> You just need to identify repetitive workflows and plug in the right AI system.</p><p>Whether you’re a freelancer, a startup, or an enterprise team: the value is there — if you focus on execution over theory.</p><blockquote><strong><em>Want to build your own AI automation?</em></strong><em><br> I help teams design and implement practical LLM-based systems — from inbox processing to internal tools.<br> Let’s talk: </em><a href="https://www.linkedin.com/in/oliver-k%C3%B6hn-204b20255/"><em>LinkedIn</em></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b45bc75a2b1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automate Your Business with AI — 3 Use Cases You Can Start Today]]></title>
            <link>https://medium.com/@data.ai.oliver/automate-your-business-with-ai-3-use-cases-you-can-start-today-8ba3f1dc1634?source=rss-14bdd4220b84------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ba3f1dc1634</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Oliver]]></dc:creator>
            <pubDate>Sat, 19 Jul 2025 14:17:22 GMT</pubDate>
            <atom:updated>2025-07-19T14:31:30.734Z</atom:updated>
            <content:encoded><![CDATA[<h3>Automate Your Business with AI — 3 Use Cases You Can Start Today</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*flE1lqNBq9gbXg5VMgXgCQ.png" /></figure><p><em>This article is part of a practical </em><a href="https://medium.com/@data.ai.oliver/building-real-world-ai-automation-3-practical-use-cases-with-code-b45bc75a2b1b"><em>AI automation series</em></a><em>. If you’re looking to apply AI in your business — not just experiment with chatbots — this series is for you.</em></p><ul><li><a href="https://medium.com/@data.ai.oliver/how-i-built-an-ai-secretary-that-handles-my-emails-dea1f4310dbb"><em>Automating email classification and triggering real actions using GPT-4</em></a></li><li><a href="https://medium.com/@data.ai.oliver/langchain-vs-crewai-vs-autogen-a-practical-guide-to-choosing-an-ai-agent-framework-a2d5de59b6c4"><em>A hands-on comparison of the top agent frameworks for real-world automation</em></a></li><li><a href="https://medium.com/@data.ai.oliver/automate-your-business-with-ai-3-use-cases-you-can-start-today-8ba3f1dc1634"><em>From invoice handling to lead triage and contract intelligence — simple workflows with high ROI</em></a></li></ul><h3>Introduction</h3><p>AI is everywhere — but in most companies, it’s still stuck in slide decks and strategy papers. Many teams talk about ChatGPT, large language models, and automation. But when it comes to <strong>actual business value</strong>, things often stall. Why? Because the jump from “interesting demo” to “useful system” feels too big. The truth is: it doesn’t have to be. You don’t need a PhD in machine learning or a team of data scientists to start automating meaningful tasks. You just need a clear use case, a lightweight setup, and someone who understands how to turn AI into something practical.</p><p>In this article, I’ll show you <strong>three real-world automation examples</strong> you can implement today — based on projects I’ve built for myself and for clients.<br> They’re small. They’re effective. And they deliver ROI from day one.</p><h3>Part I — Automating Invoice Handling: From Email to Archive</h3><p>One of the simplest and most impactful automations I’ve implemented is invoice handling.</p><p><strong>The problem:</strong><br> Invoices arrive via email. Some as PDFs, others as plain text. They’re sent to different inboxes, sometimes with vague subjects like “Statement” or “Document Attached”. Manually sorting, extracting key details, and forwarding to the right person wastes time — and increases the risk of missed payments.</p><p><strong>The solution:</strong><br> An AI-powered script monitors a shared inbox (e.g. invoices@company.com). For each new message, it uses a language model (like GPT-4) to extract:</p><ul><li>Is this actually an invoice?</li><li>Who sent it?</li><li>How much is due?</li><li>What’s the payment deadline?</li></ul><p>If it’s valid, the system:</p><ul><li>Sends a Slack or Teams message to the finance team</li><li>Stores the PDF in the correct cloud folder (e.g. /invoices/2025/Q3)</li><li>Optionally: logs the data to Airtable or Notion for further processing</li></ul><p><strong>Why it works:</strong><br> This isn’t a complex automation. It’s a small agent that understands the content and acts accordingly. It replaces repetitive human effort with fast, consistent AI-driven decisions. And the best part? It took less than a day to set up — and runs silently ever since.</p><h3>Part II — Classifying Leads in Your Sales Inbox</h3><p>If you’re running a service business or managing inbound requests, chances are your inbox is full of noise: vague questions, cold outreach, contact form messages, and the occasional real lead.</p><p><strong>The problem:</strong><br> You (or someone on your team) ends up reading every email manually to figure out:</p><ul><li>Is this a real lead?</li><li>What’s the person asking for?</li><li>Who should respond?</li><li>How urgent is it?</li></ul><p>This kind of triage takes time — and bad prioritization means lost opportunities.</p><p><strong>The solution:</strong><br> Set up an AI-based classifier that reads every new message and extracts:</p><ul><li>Intent (request, complaint, spam, sales)</li><li>Topic or product line (e.g. “AI workshop” vs. “consulting project”)</li><li>Lead type (cold, qualified, returning client)</li><li>Language, urgency, and relevant keywords</li></ul><p>Then use that structured output to:</p><ul><li>Automatically route messages to the right person or department</li><li>Trigger a CRM entry or reminder</li><li>Flag high-value leads for fast follow-up</li></ul><p><strong>Why it works:</strong><br> This isn’t lead scoring in the classical CRM sense — it’s smarter. It understands context. A message like:</p><blockquote><em>“</em>Hey, I saw your LinkedIn post. We might need something similar — can we talk this week?<em>”</em></blockquote><p>gets flagged as <strong>qualified + warm lead</strong>, even if the word “project” isn’t used.</p><p>And unlike static filters, the system learns to generalize from examples.<br> You’ll never miss a lead just because someone phrased their request differently.</p><h3>Part III — Making Contracts Searchable and Actionable</h3><p>Every business handles contracts — whether they’re with clients, vendors, freelancers, or partners. And yet, most companies still treat contracts like static PDFs: they’re signed, stored somewhere, and forgotten until something goes wrong.</p><p><strong>The problem:</strong><br> Important details — like end dates, payment terms, or cancellation clauses — are buried in legal language. Searching across hundreds of documents becomes impossible without manual review. And deadlines? They sneak up and cause trouble.</p><p><strong>The solution:</strong><br> Use AI to turn contracts into structured, searchable data.</p><p>The setup is simple:</p><ul><li>A user uploads a contract (PDF, DOCX, or plain text)</li><li>An LLM (like GPT-4) analyzes the document and extracts:</li><li>Contract type</li><li>Parties involved</li><li>Start and end dates</li><li>Payment terms</li><li>Cancellation notice periods</li><li>The results are saved in a structured format (e.g. Airtable, Notion, Excel, or a database)</li></ul><p>You can then:</p><ul><li>Search across all contracts by keyword, date, or amount</li><li>Set up alerts for expiring contracts or upcoming deadlines</li><li>Generate reports like “All active contracts with notice periods under 30 days”</li></ul><p><strong>Why it works:</strong><br> Legal teams don’t need to waste hours digging through PDFs.<br> Founders and managers don’t need to worry about missing renewal windows.<br> This automation turns passive documents into active business intelligence — without replacing a single person.</p><p>And it scales: whether you have 20 contracts or 2,000.</p><h3>Conclusion</h3><p>AI doesn’t have to be complex to be useful. You don’t need to build a chatbot, train your own model, or hire a full-time data team to start benefiting from automation. The three examples in this article — invoice handling, lead classification, and contract analysis — are not “futuristic.”<br> They’re <strong>simple, high-leverage workflows</strong> that I’ve implemented for real businesses, often in just a few days. Each one saves time. Reduces errors. Creates clarity. And most importantly:<br> They let people focus on what matters — while AI handles the repetitive stuff quietly in the background.</p><blockquote><strong><em>Want to implement something similar in your business?</em></strong><em><br> I help companies turn AI into working automation — from one-day prototypes to production-ready systems.<br> Let’s talk: </em><a href="https://www.linkedin.com/in/oliver-k%C3%B6hn-204b20255/"><em>LinkedIn</em></a></blockquote><p>Thanks for reading — and feel free to reach out with your own use cases or questions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ba3f1dc1634" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LangChain vs CrewAI vs Autogen: A Practical Guide to Choosing an AI Agent Framework]]></title>
            <link>https://medium.com/@data.ai.oliver/langchain-vs-crewai-vs-autogen-a-practical-guide-to-choosing-an-ai-agent-framework-a2d5de59b6c4?source=rss-14bdd4220b84------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2d5de59b6c4</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Oliver]]></dc:creator>
            <pubDate>Sat, 19 Jul 2025 14:10:04 GMT</pubDate>
            <atom:updated>2025-07-19T14:31:21.640Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IT4Y_AGveyybfYmQLMkFoA.png" /></figure><p><em>This article is part of a practical </em><a href="https://medium.com/@data.ai.oliver/building-real-world-ai-automation-3-practical-use-cases-with-code-b45bc75a2b1b"><em>AI automation series</em></a><em>. If you’re looking to apply AI in your business — not just experiment with chatbots — this series is for you.</em></p><ul><li><a href="https://medium.com/@data.ai.oliver/how-i-built-an-ai-secretary-that-handles-my-emails-dea1f4310dbb"><em>Automating email classification and triggering real actions using GPT-4</em></a></li><li><a href="https://medium.com/@data.ai.oliver/langchain-vs-crewai-vs-autogen-a-practical-guide-to-choosing-an-ai-agent-framework-a2d5de59b6c4"><em>A hands-on comparison of the top agent frameworks for real-world automation</em></a></li><li><a href="https://medium.com/@data.ai.oliver/automate-your-business-with-ai-3-use-cases-you-can-start-today-8ba3f1dc1634"><em>From invoice handling to lead triage and contract intelligence — simple workflows with high ROI</em></a></li></ul><h3>Introduction</h3><p>Over the past few months, AI agents have gone from niche curiosity to the center of the automation hype cycle. There’s no shortage of blog posts showing agents that chat with each other, do fictional tasks, or simulate mini-companies. But when it comes to <strong>real-world use cases</strong> — automating internal workflows, orchestrating tools, or summarizing research — many developers hit a wall. That’s what happened to me. As an AI freelancer focused on practical automation, I wanted to use agents to save time and reduce manual work. But which framework should I choose?<br> <strong>LangChain? CrewAI? Autogen?</strong> Each promised flexibility and intelligence. Each looked powerful. But in practice, their trade-offs couldn’t be more different. This article is a hands-on comparison of the three leading LLM agent frameworks — based on actual use, not marketing slides. If you’re a developer, architect, or tech lead looking to build <strong>AI agents that work in production</strong>, this is for you.</p><h3>Part I — What Are LLM Agents Really?</h3><p>Let’s cut through the hype. An LLM agent isn’t magic. It’s not a sentient assistant or a general-purpose AI. At its core, an agent is just a structured way of telling a language model:</p><blockquote><em>“</em>Here’s a task.<br> Here’s what you’re allowed to do (tools, memory, constraints).<br> Try to solve it step by step.<em>”</em></blockquote><p>That’s it. The power of agents comes from giving LLMs a <strong>goal</strong>, some <strong>tools</strong>, and a bit of autonomy to decide how to proceed. Instead of giving the model a static prompt like <em>“Summarize this article,”</em> you give it the freedom to act in a loop:</p><ol><li>Think about what it needs</li><li>Call a tool (e.g. search, API, calculator)</li><li>Observe the result</li><li>Decide what to do next</li><li>Repeat until done</li></ol><p>This <strong>looping structure</strong> is what makes agents fundamentally different from plain prompt-based interactions. It allows for real task execution and basic reasoning — not just text generation. Where this gets exciting is in business automation. You can build agents that:</p><ul><li>Search the web and extract insights</li><li>Digest customer documents and trigger workflows</li><li>Combine multiple tools (calendar, email, internal APIs)</li><li>Or even collaborate with each other to solve complex problems</li></ul><p>But here’s the catch: implementing this well is hard. That’s why agent frameworks exist. They handle the plumbing — looping, tool orchestration, memory, error handling — so you don’t have to reinvent the wheel. Now let’s look at the three most prominent frameworks trying to do exactly that.</p><h3>Part II — Comparing the Leading Agent Frameworks</h3><p>There are dozens of agent libraries out there. But in practice, three have gained real traction among developers working with LLMs:</p><ul><li><strong>LangChain Agents</strong></li><li><strong>CrewAI</strong></li><li><strong>Autogen (by Microsoft)</strong></li></ul><p>Each of them offers a different take on how agents should think, interact, and get things done. Below is a practical overview of how they compare — based on real implementation, not just docs.</p><h4>1. LangChain Agents</h4><p><strong>Philosophy:</strong> Modular, flexible, and deeply customizable.<br> LangChain was one of the first frameworks to popularize tool-using agents and has since become a go-to for experimentation and prototyping.</p><p><strong>Strengths:</strong></p><ul><li>Very flexible tool integration</li><li>Large ecosystem (tools, chains, memory types, callbacks)</li><li>Active development and strong community</li></ul><p><strong>Weaknesses:</strong></p><ul><li>Verbose and complex for simple tasks</li><li>High learning curve for newcomers</li><li>Harder to maintain in larger projects without strict conventions</li></ul><p><strong>Example use case:</strong><br> Automating document intake by using a retrieval tool, extracting structured info, and routing data into a CRM.</p><h4>2. CrewAI</h4><p><strong>Philosophy:</strong> Roles over rules.<br> CrewAI focuses on <strong>multi-agent collaboration</strong>, where each agent acts like a team member with a defined role and responsibility.</p><p><strong>Strengths:</strong></p><ul><li>Elegant task decomposition with natural language</li><li>Clear separation of concerns (Researcher, Planner, Writer, etc.)</li><li>Easier to reason about in multi-step tasks</li></ul><p><strong>Weaknesses:</strong></p><ul><li>Limited low-level customization</li><li>Tool support is improving but still minimal</li><li>Not yet mature for edge cases or fine-grained workflows</li></ul><p><strong>Example use case:</strong><br> Automated report generation: Researcher agent gathers info, Analyst agent summarizes, Writer agent formats into a final document.</p><h4>3. Autogen</h4><p><strong>Philosophy:</strong> LLMs talking to LLMs.<br> Microsoft’s Autogen is designed for <strong>multi-agent communication</strong>, often with different LLMs playing different roles in a conversation.</p><p><strong>Strengths:</strong></p><ul><li>Great for simulating collaborative AI workflows</li><li>Flexible architecture for research and advanced coordination</li><li>Includes features like agent memory, conversation replay, and human-in-the-loop</li></ul><p><strong>Weaknesses:</strong></p><ul><li>High complexity in setup and config</li><li>Best suited for experimental or academic scenarios</li><li>Less optimized for single-agent task execution</li></ul><p><strong>Example use case:</strong><br> Building a research assistant that collaborates with a planner agent to draft multi-step analysis and ask follow-up questions.</p><p>Up next: A head-to-head comparison — when to choose which framework, and what trade-offs to expect in real-world automation projects.</p><h3>Part III — Which Agent Framework Should You Use?</h3><p>Let’s get practical. If you’re building AI-powered automation for real business tasks, your choice of agent framework <strong>shouldn’t be based on hype</strong> — it should be based on the job to be done.</p><p>Here’s how I think about it, based on real-world testing:</p><h4>Use LangChain when…</h4><ul><li>You need full control over tools, prompts, memory, and output parsing</li><li>You want to connect the agent to internal APIs, databases, or retrieval systems</li><li>You’re building a <strong>single-agent task executor</strong> that must run reliably</li></ul><p>LangChain shines when you’re building <strong>structured automations with clear logic</strong>, like:</p><ul><li>Parsing incoming emails</li><li>Searching a vector store</li><li>Writing responses</li><li>Triggering external actions (e.g. via API)</li></ul><p>It’s not always elegant — but it gets the job done and scales with you.</p><h4>Use CrewAI when…</h4><ul><li>Your task benefits from <strong>multiple agents playing defined roles</strong></li><li>You want a clean, readable abstraction for agent collaboration</li><li>You prefer natural-language task design over strict code orchestration</li></ul><p>CrewAI works well in use cases where there’s a natural team-like workflow:</p><ul><li>Research &amp; summarization</li><li>Report creation</li><li>Strategy drafting with multiple expert roles</li></ul><p>It’s especially useful when you want to prototype workflows that feel human-coordinated.</p><h4>Use Autogen when…</h4><ul><li>You want to experiment with <strong>LLM-to-LLM communication</strong></li><li>You’re simulating expert dialogues or AI brainstorming</li><li>You’re doing <strong>research, exploration, or meta-prompting</strong></li></ul><p>Autogen is impressive — but also heavy. It’s not what I’d reach for in a client project with a tight deadline. But if you’re building complex agent networks for R&amp;D, it offers capabilities the others don’t.</p><h4>Summary Table</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*4r3qeO7lOuQlTzMheE2h0Q.png" /></figure><p>Each framework has its sweet spot. The key is to <strong>pick based on structure, not just features</strong>. Up next, I’ll walk you through a real example — and show how it would look in each framework.</p><h3>Part IV — A Real Use Case in Three Frameworks</h3><p>Let’s take a realistic task that comes up in many companies:</p><blockquote><em>“</em>Find the 3 most recent research papers about multimodal AI and summarize them in plain language for a non-technical executive.<em>”</em></blockquote><p>This is a classic automation use case. It requires:</p><ul><li>Web search or access to a paper database (e.g. arXiv)</li><li>Filtering by date and relevance</li><li>Summarizing dense content in an accessible way</li></ul><p>Now let’s look at how each framework would approach this.</p><h4>LangChain Approach</h4><p>With LangChain, you’d create a single agent with access to:</p><ul><li>A custom tool to query arXiv (via API or scraping)</li><li>A summarization chain (possibly with few-shot examples)</li><li>Memory to track progress</li></ul><p>The orchestration is done via LangChain’s initialize_agent, where the tools are explicitly defined, and the prompt includes instructions like:</p><blockquote><em>“</em>You are a research assistant. Use the search_arxiv tool to find recent papers, then summarize them for a non-technical audience.<em>”</em></blockquote><p>You have to manage tool input/output parsing, retries, and cleanup — but you get full control.</p><h4>CrewAI Approach</h4><p>In CrewAI, you’d define three agents:</p><ul><li><strong>Researcher</strong>: queries arXiv and selects relevant papers</li><li><strong>Summarizer</strong>: reads abstracts and rewrites them in plain English</li><li><strong>Coordinator</strong>: combines everything into a report</li></ul><p>Each role has a natural-language description, and CrewAI handles the task flow. Example setup:</p><pre>Researcher = Agent(role=&quot;Find 3 relevant papers on multimodal AI&quot;)<br>Summarizer = Agent(role=&quot;Summarize academic texts for a general audience&quot;)<br>Coordinator = Agent(role=&quot;Assemble and format the final output&quot;)</pre><p>CrewAI handles sequencing and role interactions for you. Ideal for presentation or team-style outputs.</p><h4>Autogen Approach</h4><p>Autogen would treat this as a <strong>conversation between agents</strong>, each potentially using a different model or configuration.</p><p>Example:</p><ul><li>A ResearchAgent asks a SearchToolAgent for the top 3 results.</li><li>Then a SummaryAgent refines the abstracts and asks clarifying questions.</li><li>The flow is governed by a system agent that keeps the loop going until the task is complete.</li></ul><p>This setup is more complex but allows for <strong>deep chain-of-thought interactions</strong>, especially if you want to simulate human-like collaboration or explore how different agents might reason about uncertain results.</p><h4>Takeaway</h4><p>All three frameworks can solve the problem. The difference is in how much <strong>structure, flexibility, and coordination</strong> you want to build into the process. Up next: final thoughts and when not to use agents at all.</p><h3>Conclusion</h3><p>AI agents are not a silver bullet — but they’re getting close. With the right setup, agent frameworks can take on real tasks that previously required human effort: researching, summarizing, classifying, orchestrating actions. But picking the right framework is essential.</p><ul><li><strong>LangChain</strong> gives you full control and works great for production-grade, tool-rich pipelines.</li><li><strong>CrewAI</strong> offers a simple, elegant way to model team-like workflows using roles and collaboration.</li><li><strong>Autogen</strong> pushes the limits of what’s possible with LLM-to-LLM communication — perfect for research, but less suited for business automation (at least for now).</li></ul><p>My own workflow? I often prototype in CrewAI when I want to reason through a task structure — and then move to LangChain when I need to ship something robust. I keep Autogen in the toolbox for R&amp;D and experimental setups.</p><blockquote><strong><em>Thinking of building your own agent-powered system?</em></strong><em><br> I help companies design and implement AI agents for real business use cases — from document automation to internal knowledge tools.<br> Let’s talk: </em><a href="https://www.linkedin.com/in/oliver-k%C3%B6hn-204b20255/"><em>LinkedIn</em></a></blockquote><p>Thanks for reading — and feel free to share your experience or questions in the comments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2d5de59b6c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built an AI Secretary That Handles My Emails]]></title>
            <link>https://medium.com/@data.ai.oliver/how-i-built-an-ai-secretary-that-handles-my-emails-dea1f4310dbb?source=rss-14bdd4220b84------2</link>
            <guid isPermaLink="false">https://medium.com/p/dea1f4310dbb</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[automation]]></category>
            <dc:creator><![CDATA[Oliver]]></dc:creator>
            <pubDate>Sat, 19 Jul 2025 13:52:15 GMT</pubDate>
            <atom:updated>2025-07-19T14:31:10.067Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7kb1nQ_QRvDvwjIPfKDaZQ.png" /></figure><p><em>This article is part of a practical </em><a href="https://medium.com/@data.ai.oliver/building-real-world-ai-automation-3-practical-use-cases-with-code-b45bc75a2b1b"><em>AI automation series</em></a><em>. If you’re looking to apply AI in your business — not just experiment with chatbots — this series is for you.</em></p><ul><li><a href="https://medium.com/@data.ai.oliver/how-i-built-an-ai-secretary-that-handles-my-emails-dea1f4310dbb"><em>Automating email classification and triggering real actions using GPT-4</em></a></li><li><a href="https://medium.com/@data.ai.oliver/langchain-vs-crewai-vs-autogen-a-practical-guide-to-choosing-an-ai-agent-framework-a2d5de59b6c4"><em>A hands-on comparison of the top agent frameworks for real-world automation</em></a></li><li><a href="https://medium.com/@data.ai.oliver/automate-your-business-with-ai-3-use-cases-you-can-start-today-8ba3f1dc1634"><em>From invoice handling to lead triage and contract intelligence — simple workflows with high ROI</em></a></li></ul><h3>Introduction</h3><p>Every morning, I used to spend the first 30 to 45 minutes of my day just dealing with emails. Scanning for important messages. Spotting invoices. Forwarding information to my accountant. Flagging tasks for later. It wasn’t difficult work — but it was repetitive, draining, and always the same. At some point, I realized I was basically acting like a rule engine.</p><ul><li>If the subject contains “invoice,” forward it.</li><li>If there’s a meeting request, check my calendar.</li><li>If the sender is a client, make sure it doesn’t slip through the cracks.</li></ul><p>And yet, I couldn’t fully automate it. Email rules are limited. They don’t understand context. They break easily. And they’re terrible at nuance. So I decided to build something smarter: a small AI system that actually <strong>understands the content</strong> of emails — and acts accordingly. In this article, I’ll walk you through how I built a lightweight, real-world AI secretary. One that reads my inbox, extracts key details, and takes actions like notifying people, saving files, or categorizing messages — all without me lifting a finger. It’s not a toy project. It’s something I use daily — and it’s been a game changer.</p><h3>Part I — Why Rules Aren’t Enough</h3><p>If you’ve ever tried to organize your inbox with filters, you already know the problem: they work great — until they don’t. Rules like “move emails with subject containing ‘invoice’ to Folder X” or “mark as important if sender is boss@example.com” are easy to set up. But they only work in perfect conditions. The moment someone writes “attached bill” instead of “invoice,” your filter fails. Or worse, it triggers on something unrelated. Email is messy. People phrase things differently. Attachments vary. Critical information might be buried in the second paragraph or hidden in a forwarded thread. Rule-based systems can’t keep up.</p><p>For me as a freelancer, that wasn’t just inconvenient — it was risky. A missed invoice means delayed payment. A missed meeting request means lost trust. I needed a system that could actually <strong>understand language</strong> — not just match patterns. That’s where large language models (LLMs) come in. They don’t rely on fixed rules. They can look at an email and recognize, for example:<br> “<em>This is a bill from a supplier. It’s due in 10 days. The total is €1,600. Forward it to finance.</em>”</p><p>That’s the level of intelligence I needed — and that’s what I set out to build.</p><h3>Part II — System Overview and Architecture</h3><p>The idea behind the system is simple: treat every email like a mini data extraction problem. Instead of reading each message myself, I let the system decide what it is and what to do with it. Here’s what happens under the hood:</p><ol><li><strong>Inbox fetch</strong> — A small Python script connects to my email account (via IMAP) and pulls all unread messages.</li><li><strong>AI interpretation</strong> — Each email body is passed to a language model (in my case, Azure OpenAI / GPT-4), with a prompt that asks for structured data:<br> <em>What type of email is this? Who sent it? Is there a due date? Is there a total amount?</em></li><li><strong>Structured output</strong> — The model returns a JSON object with exactly the fields I need.</li><li><strong>Action handler</strong> — Based on that JSON, my code triggers follow-up actions. Forwarding, logging, saving attachments, sending Slack messages — whatever fits.</li></ol><p>Here’s a simplified diagram of the architecture:</p><pre>[IMAP Inbox] <br>      ↓<br>[Python Mail Parser] <br>      ↓<br>[Azure OpenAI / GPT-4]<br>      ↓<br>[Extracted Metadata JSON]<br>      ↓<br>[Action Handler: Slack | Drive | Email Forwarding | Logging]</pre><p>This isn’t enterprise-grade software, but it works remarkably well. And more importantly: it handles the <strong>mental load</strong> I used to carry every morning. Instead of reading through 20 emails, I skim the log of actions and step in only if something looks unusual.</p><h3>Part III — Implementation Details</h3><p>Let’s walk through the core building blocks. The full system is under 150 lines of Python, but the impact is significant.</p><h4>3.1 — Fetching Emails</h4><p>I use Python’s built-in imaplib to connect to my email inbox and pull unread messages. It’s a simple IMAP connection—no fancy libraries required.</p><pre>import imaplib, email<br>MAIL_HOST = &quot;imap.example.com&quot;<br>MAIL_USER = &quot;me@example.com&quot;<br>MAIL_PASS = &quot;your-password&quot;<br>mail = imaplib.IMAP4_SSL(MAIL_HOST)<br>mail.login(MAIL_USER, MAIL_PASS)<br>mail.select(&quot;inbox&quot;)<br>status, messages = mail.search(None, &#39;UNSEEN&#39;)<br>for num in messages[0].split():<br>    status, data = mail.fetch(num, &#39;(RFC822)&#39;)<br>    msg = email.message_from_bytes(data[0][1])<br>    body = msg.get_payload(decode=True).decode()</pre><p>This gives me access to the raw body of each email, which I can now process with AI.</p><h4>3.2 — Sending to GPT for Extraction</h4><p>Next, I feed the email content into GPT-4 with a specific prompt that asks for structured output.</p><pre>from openai import AzureOpenAI<br>import json<br><br>prompt = f&quot;&quot;&quot;<br>Extract the following from this email:<br>- Type (e.g. invoice, meeting, other)<br>- Sender<br>- Total amount (if any)<br>- Due date (if any)<br><br>Return result as a JSON object.<br>Email content:<br>\&quot;\&quot;\&quot;{body}\&quot;\&quot;\&quot;<br>&quot;&quot;&quot;<br><br>response = client.chat.completions.create(<br>    model=&quot;gpt-4&quot;,<br>    messages=[{&quot;role&quot;: &quot;user&quot;, &quot;content&quot;: prompt}]<br>)<br><br>result = json.loads(response.choices[0].message.content)</pre><p>This step is where the magic happens. Instead of regex hell or brittle rules, I let the model do the understanding. Example output:</p><pre>{<br>  &quot;type&quot;: &quot;invoice&quot;,<br>  &quot;sender&quot;: &quot;billing@acme.com&quot;,<br>  &quot;amount&quot;: 1600,<br>  &quot;currency&quot;: &quot;EUR&quot;,<br>  &quot;due_date&quot;: &quot;2025-08-10&quot;<br>}</pre><h4>3.3 — Triggering Actions</h4><p>Now I can use this structured info to automate downstream actions.</p><pre>if result[&quot;type&quot;] == &quot;invoice&quot;:<br>    send_to_slack(f&quot;📄 Invoice from {result[&#39;sender&#39;]} – {result[&#39;amount&#39;]} {result[&#39;currency&#39;]} due {result[&#39;due_date&#39;]}&quot;)<br>    save_pdf_attachment(msg, folder=&quot;invoices/Q3&quot;)<br>elif result[&quot;type&quot;] == &quot;meeting&quot;:<br>    create_calendar_event(body)</pre><p>The logic is simple and easy to extend. And because I control the JSON format, it’s fully predictable. This modular approach keeps the system robust. The language model handles variability in language; the action logic handles everything else.</p><h3>Part IV — Real-World Use Case: Handling Invoices Automatically</h3><p>Let me give you a concrete example of how this plays out in practice.</p><p>One morning, I received an email from a vendor with the subject line:</p><blockquote><em>“Reminder: Statement for August — Attached”</em></blockquote><p>No mention of “invoice,” no structured format, and the PDF filename was something generic like Statement_0825.pdf.</p><p>To a rule-based filter, this would’ve looked like noise. But my AI assistant processed it as follows:</p><ul><li><strong>Fetched the email</strong> via IMAP</li><li><strong>Sent the content to GPT</strong>, which responded with:</li></ul><pre>{<br>  &quot;type&quot;: &quot;invoice&quot;,<br>  &quot;sender&quot;: &quot;finance@vendorcorp.com&quot;,<br>  &quot;amount&quot;: 2350.50,<br>  &quot;currency&quot;: &quot;EUR&quot;,<br>  &quot;due_date&quot;: &quot;2025-09-10&quot;<br>}</pre><ul><li><strong>Triggered two actions</strong>:<br>- Posted a message to Slack (to the accounting channel):<br> <em>“New invoice received from VendorCorp — €2,350.50 due by Sept 10”<br>- </em>Saved the attached PDF to my organized cloud storage:<br> /invoices/2025/Q3/vendorcorp_2025-09-10.pdf</li></ul><p>I didn’t even see the email until much later. But it was already handled.</p><p>That’s the kind of automation that matters: not just moving messages around, but <strong>understanding them well enough to act reliably</strong>.</p><h3>Part V — Limitations and Opportunities</h3><p>No system is perfect, and mine has its share of rough edges. But knowing those limits helps refine expectations — and shows where future improvements could go.</p><h4>What works well</h4><ul><li><strong>Invoices</strong>: The model reliably identifies billing-related emails, even when language varies.</li><li><strong>Meeting requests</strong>: It detects scheduling intent and key phrases like “let’s find a time” or “are you available”.</li><li><strong>Basic classification</strong>: Spam, notifications, newsletters — it sorts these out cleanly.</li></ul><h4>Where it struggles</h4><ul><li><strong>Ambiguity</strong>: If someone forwards a thread with mixed content (“FYI — includes invoice and client notes”), the model may misclassify it.</li><li><strong>Attachments</strong>: The LLM can’t look inside attachments unless I pre-process them. That’s something I’d like to add next.</li><li><strong>Real-time performance</strong>: Emails aren’t processed instantly — currently they’re handled in small batches every few minutes.</li></ul><p>That said, none of these issues have caused real problems in daily use. And the core insight remains true:</p><blockquote>You don’t need perfection to get massive value from automation.<br> You just need <strong>something good enough to offload routine decisions.</strong></blockquote><h4>Opportunities for future expansion</h4><ul><li>Connecting the pipeline to <strong>voice alerts</strong> (e.g. “You’ve got an unpaid invoice from Vendor X” via phone)</li><li>Logging structured metadata to <strong>Notion</strong> or <strong>Airtable</strong> for later review</li><li>Multi-account support: handling emails from multiple inboxes in parallel</li><li>Fine-tuned models for domain-specific tasks (e.g. legal documents, HR emails)</li></ul><p>This isn’t a static tool — it’s a flexible starting point. And that’s the most powerful part.</p><h3>Conclusion</h3><p>Building this AI-powered email assistant wasn’t a massive engineering effort. It didn’t require a complex backend, a team of developers, or a huge budget. It took me a weekend, some targeted prompts, and a clear goal:<br> <strong>Stop wasting time on repetitive email tasks.</strong></p><p>What I ended up with is a system that doesn’t just move emails around.<br> It reads them, understands them, and takes action — on my behalf.</p><p>That means:</p><ul><li>I don’t miss invoices.</li><li>I respond faster to important messages.</li><li>I can focus on higher-value work instead of sorting through noise.</li></ul><p>And that’s exactly what automation should do:<br> Quietly reduce friction, without becoming a burden in itself.</p><p>If you run a small business, manage a team, or simply want to streamline your day-to-day work, this kind of system is absolutely within reach.</p><blockquote><em>📩 </em><strong><em>Want to build something like this for your own inbox — or your entire team?</em></strong><em><br> I help teams implement practical AI automations that actually work.<br> Let’s talk: </em><a href="https://www.linkedin.com/in/oliver-k%C3%B6hn-204b20255/"><em>LinkedIn</em></a></blockquote><p>Thanks for reading. And if you’ve built something similar, I’d love to hear about it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dea1f4310dbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Agents, and Why Now?]]></title>
            <link>https://medium.com/@data.ai.oliver/why-agents-and-why-now-ac5f491f782d?source=rss-14bdd4220b84------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac5f491f782d</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Oliver]]></dc:creator>
            <pubDate>Sat, 19 Jul 2025 12:03:35 GMT</pubDate>
            <atom:updated>2025-07-19T12:04:50.112Z</atom:updated>
            <content:encoded><![CDATA[<h3>An agent for web- and scientific-search using open source tools.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eGGTQ_OLzUdFDmzcBXOqpQ.png" /><figcaption>An agent with access to a tavily and arxiv tool.</figcaption></figure><p>Large Language Models like GPT-4 are impressive — but in real-world use, they often hit a ceiling. They respond only when prompted. They forget context. And above all: they don’t take action on their own. That’s where <strong>LLM agents</strong> come in. Instead of passive interfaces, we build systems that pursue goals, use tools, retrieve information, and execute tasks — without constant human input. In this article, I’ll walk you through two practical agents that do exactly that:</p><ul><li>A <strong>Tavily agent</strong> that searches the web to deliver grounded, up-to-date answers</li><li>An <strong>Arxiv agent</strong> that finds, summarizes, and contextualizes research papers</li></ul><p>Both examples are minimal, production-ready, and built with open-source tools. You can adapt them to your own use cases in minutes. No theory. No hype. Just working examples of how LLM agents can create real value — today. Code available <a href="https://github.com/dataAiOliver/Agents_TavilyAndArxiv/tree/main">here</a>.</p><h3>What Exactly Is an LLM Agent — and What’s Not?</h3><p>An <strong>LLM agent</strong> is not just a clever prompt stuffed into ChatGPT. It’s a system that combines an LLM with three key components:</p><ol><li><strong>A goal</strong>: not just a single prompt, but an objective to achieve</li><li><strong>Tools</strong>: external functions the agent can call (like search, APIs, or databases)</li><li><strong>Memory / reasoning loop</strong>: the ability to reflect, plan, and decide next steps</li></ol><p>In simple terms: agents don’t just answer — they <strong>think, act, and iterate</strong>. They use reasoning (e.g. ReAct, tree-of-thought, planning) to decompose tasks. They use APIs to gather or process data. And they loop until a defined goal is met — not until the user presses Enter again. This article focuses on <strong>single-agent systems with light memory and simple tools</strong> — powerful enough to deliver results, but still transparent and easy to maintain. No heavy orchestration, no fragile chains.</p><h3>Use Cases</h3><h4>Use Case 1 — The Web Search Agent with Tavily</h4><p>Let’s start simple: a research agent that can <strong>search the web</strong>, evaluate the results, and return concise, cited answers. We use <a href="https://www.tavily.com/">Tavily</a> — a fast, LLM-optimized search API — as the agent’s tool for web access. The LLM formulates search queries, parses results, and composes an answer with citations. This agent follows a classic <strong>ReAct loop</strong>: think → search → observe → answer. It uses the Tavily API as a tool and builds a final response based on real-time information. Unlike typical LLMs, this approach:</p><ul><li>Reduces hallucinations</li><li>Enables up-to-date answers</li><li>Provides sources the user can verify</li></ul><p>It’s ideal for market research, competitor analysis, or generating daily briefings.</p><h4>Use Case 2 — The Arxiv Research Agent</h4><p>For technical or scientific domains, generic search tools aren’t enough. You need an agent that can navigate <strong>structured knowledge</strong>, extract insights, and stay focused on relevant papers. That’s where an <strong>Arxiv agent</strong> comes in. This agent queries the Arxiv API (via a custom tool or wrapper), filters relevant papers by topic, date, or author, and summarizes their abstracts or full text using an LLM. You can extend it to extract methods, results, limitations — or even compare multiple papers. Use cases:</p><ul><li>Daily digests of new papers in your field</li><li>Quick summarization of relevant research</li><li>Auto-tagging and classification of papers</li></ul><p>It’s a great example of how agents can go beyond general language use and become <strong>knowledge workers</strong>.</p><h3>Building the Agents — Code, Tools, and Setup</h3><p>Both agents follow the same basic architecture:</p><ol><li>Define the <strong>tools</strong> (e.g. Tavily API, Arxiv wrapper)</li><li>Initialize an <strong>LLM agent</strong> with reasoning strategy (e.g. ReAct)</li><li>Register tools and run the agent loop with a user-defined input</li></ol><p>The <a href="https://github.com/dataAiOliver/Agents_TavilyAndArxiv/tree/main">implementation</a> is intentionally lightweight — no LangGraph, no orchestration frameworks. Just <strong>LangChain</strong> for tool abstraction and prompt control, and OpenAI or similar for the LLM backend.</p><h3>Real Outputs — Example Results from Both Agents</h3><p>Let’s look at what these agents actually deliver in practice. Here are two sample outputs — one from the Tavily agent, one from the Arxiv agent. These examples are generated from real prompts, using exactly the code described above. No cherry-picking, no cleanup — just raw, usable output.</p><h4>Example 1: Tavily Agent</h4><p>Full code <a href="https://github.com/dataAiOliver/Agents_TavilyAndArxiv/blob/main/tavily_agent.py">here</a>.</p><p><strong>Prompt</strong>: “<em>Use the TavilySearch tool to find the most recent news on emerging AI startups in Europe as of July 2025. Then summarize key companies, their focus areas, and funding trends.</em>”</p><p>Example of terminal output is shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E3EKNzNCBQ2FaMzm3ykb1Q.png" /></figure><p>First it finds relevant websites and will then summarize the results.</p><h4>Example 2: Arxiv Agent</h4><p>Full code <a href="https://github.com/dataAiOliver/Agents_TavilyAndArxiv/blob/main/arxiv_agent.py">here</a>.</p><p><strong>Prompt</strong>: “<em>Use the ArxivSearch tool to get recent papers on multimodal large language models, and then provide a detailed and structured summary of what the current research focuses on, including key techniques and trends.</em>”</p><p>The principle is similar here. In a first step it finds relevant sources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c47kLEPTyOA22AmE-YLVdA.png" /></figure><p>After evaluating all relevant sources, the result is provided.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fCqn4H6zXDgh5U5OtSXjfg.png" /></figure><h3>Real-World Use Cases and Automation Ideas</h3><p>Once your agents are working, the next step is automation. Instead of running them manually, you can embed them into daily workflows:</p><ul><li>A <strong>daily Tavily briefing bot</strong> that collects current news or competitor updates and sends them to Slack</li><li>A <strong>weekly Arxiv summary agent</strong> that scans for new papers, summarizes them, and stores results in Notion or emails them to your team</li><li>A <strong>research assistant workflow</strong>, where the agent first explores a topic with Tavily, then dives deeper via Arxiv to suggest credible sources</li></ul><p>Combined with schedulers (e.g. cron, Prefect, LangGraph) and simple APIs, these agents can become <strong>autonomous assistants</strong> that run in the background – saving hours of manual research every week.</p><h3>Conclusion — What You Can Build Today</h3><p>LLM agents are no longer just a playground for research teams. With just a few lines of code and the right tools, you can build agents that:</p><ul><li>Search the web and answer questions with citations</li><li>Monitor scientific publications in your field</li><li>Act as research assistants, summarizing and contextualizing content</li></ul><p>The examples in this article are small by design — so you can adapt and deploy them quickly. No orchestration frameworks, no cloud dependencies, no complexity for complexity’s sake. Start with one agent. Give it one tool. Make it useful. Then iterate.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac5f491f782d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DatasphereAI: Illuminating your data universe]]></title>
            <link>https://medium.com/@data.ai.oliver/datasphereai-illuminating-your-data-universe-50070c95d097?source=rss-14bdd4220b84------2</link>
            <guid isPermaLink="false">https://medium.com/p/50070c95d097</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Oliver]]></dc:creator>
            <pubDate>Mon, 10 Mar 2025 13:31:48 GMT</pubDate>
            <atom:updated>2025-03-10T15:50:26.494Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*FXSespecWbSe8dI7xUULFw.png" /><figcaption>AI powered data interaction</figcaption></figure><p>In the ever-evolving world of data and artificial intelligence, one challenge remains constant across industries: the difficulty of finding and understanding the relevant data needed to solve complex tasks. With over a decade of experience in the Data/AI field, I’ve witnessed this problem persist, prompting me to take matters into my own hands. This led to the creation of <strong>DatasphereAI</strong>, a startup aimed at simplifying data interaction and visualization through the power of AI.</p><p>In this blog post, I’ll walk you through the core features of DatasphereAI from a business perspective. It’s important to note that the application is currently in the prototype stage, and I’m actively seeking collaborators, supporters, and potential customers who are interested in the features I’m developing. If you find the concepts intriguing, I’m also available for consulting work to tailor these solutions to your specific needs.</p><p>You can also have a look at this YouTube video to get an overview of the features.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DVvcyVbHy0Ws&amp;type=text%2Fhtml&amp;schema=google&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FVvcyVbHy0Ws" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/bde09f26a4e206f9dc579fa143bf266f/href">https://medium.com/media/bde09f26a4e206f9dc579fa143bf266f/href</a></iframe><p>DatasphereAI is designed to empower users to interact with their data effortlessly, without the need for coding or complex configurations. Whether you’re looking to automatically visualize data, efficiently search through files, or interact with your data using natural language, this application leverages AI to make it all possible. And the best part? You have the freedom to choose between public AI services (like Azure, AWS, or GCP) or your own local LLMs (such as Llama or Deepseek) to ensure data privacy.</p><p>Let’s dive into the features of Datasphere AI.</p><h3>Overview</h3><p>The main features of this application are visualize din below Figure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wh1TLtJAQIq8hO7Dfttosw.png" /><figcaption>Main features of the application Datasphere AI.</figcaption></figure><p>The application will help you to</p><ul><li>automatically visualize your data without any need of configuration or coding</li><li>find your files effectively by extracting relevant information via LLMs and providing an easy to use search based on this information</li><li>interact with your data via natural language and use the power of AI-agents to solve tasks.</li></ul><p>Let us start with the AI generated visualizations.</p><h3>AI generated visualizations</h3><p>The first feature allows users to generate dashboards by just applying the data. In below example I uploaded two files containing HR-data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GfGYRK3Cp-PQ7O2awOn6qg.png" /></figure><p>To get a dashboard, all I need to do is clicking on <strong>Create Dashboard</strong>. The application will analyze the uploaded data and create different elements for the dashboard. Possible elements are text, Figures or tables.</p><h4>General dashboard</h4><p>Below we see an example of the auto-generated dashboard for the uploaded data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0T1MPcnjamKRd6ykh-s1Pg.png" /></figure><p>The dashboard shows key information extracted from the provided data. Size and position of the elements can be adapted as we want. If we have a question not visualized in the dashboard, we can use the chat via the symbol at the bottom right. The chat has access to all the Figures and relevant data and answers based on this information. As an example we can ask about <em>hire over time</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ngs4HmA841lXAgMcFmEGNQ.png" /></figure><p>The response is provided as Figure in the chat. But it could also be a <em>normal</em> text answer or a table.</p><h4>Get relevant questions</h4><p>Sometimes we do not want to create a dashboard, we rather want to explore a dataset. Therefore in below example I connected to a schema in my database and selected <strong>Create Figure Ideas</strong> from initial configuration page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z4z4FGryvlzFRVM8IN9pag.png" /></figure><p>As the name suggests, it provided me a list of possible useful visualizations based on provided data. To get visualizations for the relevant questions, I can select the questions and simply tell the chat to visualize them. I visualized four different questions and reordered them, resulting in below dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WywPCHeMlttfFI4WbTkhFw.png" /></figure><h4>Dashboard via Prompt</h4><p>It is also possible to create a dashboard via a prompt. Below dashboard was generated with the orders-schema via the prompt “<em>Summarize key information of our orders in 10 elements</em>”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y-fjiQQDLY0qZhDFjpgkfQ.png" /></figure><p>This allows users to generate dashboards using a prompt regarding a specific topic.</p><p>With this approach, is it possible to create complex dashboard by simply providing data. The AI will detect interesting questions and address them in a dashboard. If the user has specific questions, they can be answered via the chat. My goal is to create a final product which enables the user to solve complex task by only using natural language, without any coding or configuration required. In the next section we will have a look on how we can efficiently find relevant information.</p><h3>LLM powered file search</h3><p>To efficiently find relevant information, we perform an initial step of extracting metadata from all our data-sources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OyiYXkA6kdqY-TtQfsgDjA.png" /></figure><p>For rental contracts we extract information regarding the landlord, the tenant, the rent, … For receipts we are interested in the receipt number, the amount and so on. We can extract information from almost every category from (almost) every source. And its important to say that we do not only extract information from text documents, but also from images, tables and (in future) also from audio/video-files. The file search is based on filtering this initially extracted metadata.</p><h4>General information</h4><p>In the first example, we have a look at generic information which is relevant for (almost) all documents. We extract information regarding relevant people, companies, dates, categories and so on. It is important to mention that when we extract e.g. a person, we also need to extract the description of the person to inform us about the role of the person in this document. Same goes for other fields, as e.g. a date field. We need to have the context of the date, whether it is the start of a contract, a deadline or something else.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tFCo7CPs_oPHSbv4KNaSqw.png" /></figure><p>All this information is available in a table and we can search it. Either we can use a general filter to search all columns or a specific filter for a certain column. Here we distinguish whether it is a text, categorical, numerical or date-column.</p><h4>Special categories</h4><p>In above example we showed results for general extracted information. But we can also have a look at specific documents. For receipts we are e.g. interested in the buyer, the seller, the price, the category, … . We can manually adapt the extracted fields as we want. Below example shows that we are not restricted to text documents. We can also extract information from other types, in this example form an image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Uuia923WMWRuMtIuwo2b4w.png" /></figure><p>As we internally store all the extracted information for files, we can use the dashboard functionality described in previous section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v89TAIJnp6hJz7iTqvjDVQ.png" /></figure><p>By a single click we can jump into an auto-generated dashboard regarding any category, in this case for receipts. We see the key information regarding our receipts.</p><h4>Manually defining categories</h4><p>Categories can be predefined but — if we want — we can define new categories or add attributes. Below examples shows the configuration for an arbitrary rental contract.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mNVjN4wQ_RQSShAmuMQ_yg.png" /></figure><p>We can define any attribute we want. For even better results we can also provide a detailed description for each attribute and select the appropriate data type, e.g. a date for the contract start.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q9IMDynyRYg9gu79H0WCYw.png" /></figure><p>This will detect all our rental contracts in our data sources.</p><h4>Data interaction via natural language</h4><p>As a last feature we enable users to directly talk to their data. We are not restricted to the normal RAG-approach, used in various scenarios. We rather go with an agent approach to use the full power of AI. Agents are basically LLMs which have access to tools to execute tasks. The theory behind those agents is so fascinating for me and I think we cannot even imagine yet what those agents will be capable of in a few years. My goal is to include those agents to my application from the very beginning, enabling users to solve incredibly complex tasks via a single command.</p><p>Below a few examples on how users can interact with their data, where the last example is an agent example.</p><h4>RAG based chatting</h4><p>As a first example we show how a user can visualize relevant information in a RAG-based approach, where in a first step relevant information is obtained and then the answer is provided on this information. In below example, the user is asking about the rental contracts per city. The AI is searching relevant files to answer this question and finally answers with a Figure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j9-XWvyyAhWlbon7XQ7jjg.png" /></figure><p>We can also talk to a connected database and ask questions. Lets select our Orders Database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i9puHRVHOslFTTUzkwAmNA.png" /></figure><p>Maybe we are interested in the new orders of the previous five days. Asking this question results in a table-response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kC50iI5vpnjtCb0Fe-e2SA.png" /></figure><p>We always have the option to see the auto-generated code which was used to answer the question, as shown in below exmaple asking about the orders per category.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0nTf8FScwJijKi6nMGab1Q.png" /></figure><p>All these example were boring in a sense that they followed the principle of</p><ul><li>finding data</li><li>generating the answer.</li></ul><p>Lets have a look now at the way more interesting agent approach.</p><h4>The agent approach</h4><p>In an agent approach we have to option to answer every question if we have the correct tools and relevant data sources. And as we can execute arbitrary auto generated code, we are basically not limited in tools. (To be safe with auto-generated code, we have several security restrictions.) In below example we ask the agent why there was a price change for product a</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*5mMZqgHkWdDJtXrGjPHZkw.png" /></figure><p>We can see the full process of solving this task by applying several tools to first get a list of available tables and answering based on a newly created table containing all relevant information.</p><h3>Summary &amp; Outlook</h3><p>In this blog post, I introduced <strong>Datasphere AI</strong>, a prototype application designed to revolutionize how we interact with and understand data. The core features of DatasphereAI include:</p><ol><li><strong>AI-Generated Visualizations</strong>: Automatically create dashboards and visualizations from your data without any coding or configuration. The AI analyzes your data and generates relevant text, figures, and tables, which can be customized to suit your needs. You can even ask the AI to create visualizations based on specific prompts or questions.</li><li><strong>LLM-Powered File Search</strong>: Efficiently find files by extracting metadata using Large Language Models (LLMs). This feature works across various file types, including text documents, images, and tables, allowing you to search for specific information like dates, people, or categories. You can also define custom categories and attributes for more precise searches.</li><li><strong>Data Interaction via Natural Language</strong>: Interact with your data using natural language, powered by AI agents. Unlike traditional RAG (Retrieval-Augmented Generation) approaches, DatasphereAI uses agents that can execute complex tasks by generating and running code. This allows users to ask intricate questions and receive detailed answers, all without needing to write a single line of code.</li></ol><p>Datasphere AI is still in its early stages, and I’m actively looking for support and collaboration to bring this vision to life. If you’re interested in the features discussed or would like to explore how DatasphereAI can benefit your business, feel free to reach out. Together, we can illuminate the data universe and make complex data tasks as simple as having a conversation.</p><p>Stay tuned for the next blog post, where I’ll delve into the technical foundations of Datasphere AI!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50070c95d097" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>