<?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 Elif Ekiz on Medium]]></title>
        <description><![CDATA[Stories by Elif Ekiz on Medium]]></description>
        <link>https://medium.com/@elifekiz?source=rss-8856c9203fc1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*uIek1KAWH79s6hTO.</url>
            <title>Stories by Elif Ekiz on Medium</title>
            <link>https://medium.com/@elifekiz?source=rss-8856c9203fc1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 15:06:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@elifekiz/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[From being chatbot to an operator]]></title>
            <link>https://medium.com/@elifekiz/from-being-chatbot-to-an-operator-631e8f0fb4eb?source=rss-8856c9203fc1------2</link>
            <guid isPermaLink="false">https://medium.com/p/631e8f0fb4eb</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[jira]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[claude]]></category>
            <dc:creator><![CDATA[Elif Ekiz]]></dc:creator>
            <pubDate>Wed, 25 Feb 2026 13:59:15 GMT</pubDate>
            <atom:updated>2026-02-25T13:59:15.394Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E7WoWfCYdGEQ-FHOasg1UA.png" /></figure><p>The “Aha!” moment! — treating Jira tickets as executable prompts rather than static documentation — is the core of modern AI-assisted engineering.</p><h3>The Architecture of Automation</h3><p>To visualize how this works, it helps to see how the context flows. By adding that single line to CLAUDE.md, the AI essentially becomes a &quot;Router&quot; that knows when to step out of its internal knowledge and into a live environment.</p><p>The architecture is almost laughably simple:</p><ol><li>Generate a Jira API token. Navigate to: <a href="https://id.atlassian.com/manage-profile/security">https://id.atlassian.com/manage-profile/security</a></li><li>Configure the Jira CLI</li></ol><pre># Follow the instructions at:<br>https://github.com/ankitpokhrel/jira-cli<br><br># Authenticate with your email and the API token<br>jira init</pre><p>3. Teach Claude to recognize issue keys</p><p>In practice, it looks like this. Add one line to your CLAUDE.md:</p><blockquote><em>”For strings like XX-1234, use the jira CLI tool.”</em></blockquote><p>That’s it. That’s the magic.</p><p>Now whenever Claude encounters something that looks like a ticket ID, it automatically reaches out, fetches the complete context, and proceeds with full awareness of what that ticket contains.</p><h3>Why the CLI approach wins (for now)</h3><p>There is a technical reason why the CLI often feels “sharper” than the official MCP server: <strong>LLMs are “Native” to Shell.</strong></p><ul><li><strong>Training Data:</strong> Models like Claude have been trained on millions of lines of documentation and GitHub issues involving CLI tools. They “understand” the syntax of jira issue view natively.</li><li><strong>Predictability:</strong> CLI output is plain text (or JSON). LLMs excel at parsing structured text without the abstraction layers of a GUI or complex API middleware.</li><li><strong>Verbosity Control:</strong> You can pipe CLI output through grep or jq before it even hits the LLM, saving the context window from &quot;metadata bloat.&quot;</li></ul><h3>Pro-Tip: Enhancing your CLAUDE.md</h3><p>If you want to take your “Executable Stories” to the next level, try adding these specific instructions to your configuration file:</p><blockquote><strong><em>Contextual Rules for Jira:</em></strong></blockquote><p>For any string matching [A-Z]+-[0-9]+ (e.g., XX-1234), use the jira CLI tool to fetch context.</p><h3>1. Ticket Discovery</h3><ul><li><strong>Command:</strong> jira issue view [KEY] --comments</li><li><strong>Analysis:</strong> Prioritize the Acceptance Criteria and Description. If criteria are missing, ask the user to clarify before starting implementation.</li></ul><h3>2. Branching Protocol</h3><p>When starting work on a ticket, <strong>always</strong> suggest creating a new branch using this schema:</p><ul><li><strong>Format:</strong> feature/[KEY]-[kebab-case-summary]</li><li><strong>Example:</strong> For XX-1234 “Add Auth Login”, use feature/XX-1234-add-auth-login</li><li><strong>Command:</strong> git checkout -b feature/[KEY]-...</li></ul><h3>3. Implementation Loop</h3><p>Before writing code, generate a brief TEST_PLAN.md based on the ticket&#39;s acceptance criteria. Verify code against this plan using local test runners.</p><h3>4. Closing the Loop (State Changes)</h3><p>Once the task is complete and tests pass:</p><ol><li><strong>Status Update:</strong> Suggest moving the ticket to “In Review” or “Done”.</li></ol><ul><li>jira issue move [KEY] &quot;In Review&quot;</li></ul><p>2<strong>. Worklog/Comment:</strong> Summarize the technical changes and any new edge cases discovered.</p><ul><li>jira issue comment add [KEY] --body &quot;Implemented [X] using [Y]. Verified with tests.&quot;</li></ul><h3>The “Documentation Debt” Solution</h3><p>We often treat Jira as a “Manager’s tool” and the IDE as the “Developer’s tool.”</p><p>By merging them, you’ve eliminated the <strong>Context Tax</strong>. When the AI can write the summary of what it just did and post it directly back to the ticket, the documentation becomes a “living record” rather than a post-mortem chore. Sometimes the most profound workflow improvements begin with the smallest discoveries…</p><p>Thanks for reading…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=631e8f0fb4eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Should I Be in This Meeting?]]></title>
            <link>https://medium.com/@elifekiz/should-i-be-in-this-meeting-bb5bd4c7f9b3?source=rss-8856c9203fc1------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb5bd4c7f9b3</guid>
            <category><![CDATA[search-engine-optimizati]]></category>
            <category><![CDATA[indexing]]></category>
            <category><![CDATA[p99]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <dc:creator><![CDATA[Elif Ekiz]]></dc:creator>
            <pubDate>Sat, 14 Feb 2026 16:37:36 GMT</pubDate>
            <atom:updated>2026-02-14T16:37:36.742Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*MjwuDYn6tv7WyxNRUgEf-A.png" /></figure><p>I was invited to a meeting that clearly wasn’t meant for my team.</p><p>Different roadmap. Different OKRs.</p><p>My pair looked at the invite and said, “Probably a mistake,” and skipped it.</p><p>I almost did the same.</p><p>But then I heard one sentence:</p><blockquote><em>“We’re planning to introduce an automated real-time deletion flow across all modules.”</em></blockquote><p>And I stayed.</p><p>Two hours later, I had redrawn the entire proposal.</p><p>This isn’t a story about heroics. It’s a story about something much more mundane.</p><p><strong>Every system is a fan-out.<br>And every implementation detail leaks into another implementation.</strong></p><p>The moment I realized why I was still in the meeting.</p><p>Because this wasn’t about indexing.</p><p>This wasn’t about the indexer module.</p><p>This wasn’t about crawling.</p><p>This was about the <em>entire search pipeline</em>.</p><p>Distributed systems with especially high throughput are not isolated boxes.</p><p>They are layered fan-outs.</p><p>For some context: I was working on a search engine project and the architecture of this kind of system is typically built around the following stages:</p><pre>Crawl → Parse → Enrich → Index → Replicate → Rank → Serve</pre><p>Since I had been part of the project from the very beginning, I was involved in almost every stage of this pipeline. However, toward the end, I was primarily responsible for the ranking component and Elastic search clusters health.</p><h3>The Meeting Proposal: “Just Delete It”</h3><p>The Crawler/Indexer teams wanted something reasonable.</p><p>When a web page becomes invalid — removed, outdated, policy-violating — delete it everywhere. Immediately. Automatically. In real time.</p><p>What “everywhere” means in a search engine:</p><ul><li>Multiple modules</li><li>Multiple indices</li><li>CDN for images</li><li>Multiple clusters</li><li>Replications (CCR)</li><li>Analytics dashboards querying them live</li></ul><p>We can phrase it clearly and powerfully like this:</p><blockquote><em>“Just delete it” was about to become something much heavier.<br> The system wasn’t just going to perform deletions — it was about to execute deletion requests in the middle of a write storm(new/updated webpages) and a search storm(queries).</em></blockquote><h3>Elasticsearch Is Not a CRUD Database</h3><p>The first misconception was subtle but critical.</p><p>The proposal treated Elasticsearch like this:</p><pre>DELETE FROM pages WHERE id = X;</pre><p>But Elasticsearch doesn’t “delete” documents the way a relational database does. It creates more work behind the scenes.</p><p>It:</p><ol><li>Marks documents as deleted.</li><li>Writes tombstones.</li><li>Triggers segment merges.</li><li>Consumes I/O.</li><li>Rewrites data structures in the background.</li></ol><p>Deletion is not free.</p><p>At low volume? Fine.</p><p>At high-frequency, real-time across multiple indices?</p><p>You’re not cleaning data.</p><p>You’re manufacturing I/O pressure.</p><p>And in search systems, I/O pressure leads directly into:</p><ul><li>Query performance</li><li>Refresh latency</li><li>P99 latency</li><li>Segment merge backlog</li><li>Ranking freshness</li></ul><p>Which means:</p><p>A deletion implementation can degrade search quality and performance.</p><h3>Then Someone Said “CCR”</h3><p>Cross-Cluster Replication.</p><p>And that’s when the real problem surfaced.</p><p>CCR does not replicate <em>data</em>. It replicates <strong>operations</strong>.</p><p>Which means:</p><p>A deletion spike on the leader cluster<br> → becomes a deletion spike on the follower clusters<br> → becomes double the write amplification<br> → becomes doubled merge pressure</p><p>If the leader cluster struggles, the follower struggles.<br>If the follower lags, replication queues grow.<br>If replication lags, ranking sees stale documents and it also suffers from increased latency and degraded performance.</p><p>Suddenly, deletion strategy is no longer an indexing detail.</p><p>It’s a ranking performance and stability issue.</p><h3>The Fan-Out Fallacy</h3><p>This is the default human instinct:</p><blockquote><em>“Let’s just send the deletion request to all indices.”</em></blockquote><p>But in distributed systems?</p><p>Spray and pray.</p><p>Broadcast and hope.</p><p>But every broadcast is a fan-out.</p><p>Every cascading failure multiplies cost.</p><p>Every layer multiplies cost downstream.</p><p>Every decision upstream reshapes relevance downstream.</p><p>If replication lags:</p><ul><li>Search consistency degrades.</li><li>Metrics lie</li></ul><p>If merges spike:</p><ul><li>Query latency increases.</li><li>Tail latencies hurt CTR.</li><li>Ranking performance inefficiencies.</li></ul><p>That’s the connection.</p><h3>The solutions I implemented on our end right after this meeting immediately: Buffer, Target, Observe</h3><p>Instead of real-time per-document deletion across all modules, I proposed introducing a middle layer service in between indexing and ES clusters. When we are planning the components, the priority for <strong>real-time ingestion</strong> forced a direct coupling to indexing component.</p><p>The change was:</p><h3>1. Buffer Instead of Spike</h3><p>In most distributed systems, adding a messaging or buffering layer is standard practice. We initially bypassed this to ensure that newly discovered or updated pages were reflected in our search results with near-zero latency. Since the Indexer service was already directly feeding the Elasticsearch clusters, it seemed efficient. However, this left us with a dangerous blind spot: we had overlooked the reality that an upstream service, managed by a different team, could trigger massive spikes.</p><p>Elasticsearch was a strategic choice for real-time visibility. However, this created a tight coupling that ignored the risk of <strong>uncontrolled ingestion spikes</strong>.</p><p>Using Kafka as a buffer.</p><ul><li>Aggregate deletion events.</li><li>Process in bulk.</li><li>Execute during controlled windows.</li><li>Tune batch size.</li><li>Protect refresh intervals.</li></ul><p>Bulk deletes reduce merge fragmentation.</p><p>This solution transforms chaos into predictable load.</p><h3>2. Target Instead of Broadcast</h3><p>Maintain lightweight metadata:</p><ul><li>Which page lives in which index?</li><li>Which language cluster owns it?</li><li>Which module actually stored it?</li></ul><p>Turn this:</p><pre>Delete everywhere.</pre><p>Into this:</p><pre>Delete exactly where needed.</pre><p>The most expensive request is the one you didn’t need to send.</p><p>A 9-index broadcast per deletion may seem like a practical implementation detail. However, at scale, such a pattern can unintentionally resemble a distributed denial-of-service against the system itself.</p><h3>3. Track Deletions as a First-Class Signal</h3><p>Elasticsearch already gives you dashboards.</p><p>Indexing rate, search latency, segment count, JVM pressure, replication lag… all of it is visible in Kibana. On paper, we had observability.</p><p>But visibility is not the same as protection.</p><p>Dashboards are reactive.<br>They tell you something is wrong after it starts going wrong.</p><p>What we needed wasn’t another graph.<br>We needed guardrails.</p><p>So instead of relying solely on cluster-level metrics, we introduced a preventive layer:</p><ul><li>We tracked deletion events separately.</li><li>We measured deletion rate per minute/hour.</li><li>We correlated spikes with indexing throughput and merge pressure.</li><li>We defined safe operational thresholds.</li></ul><h3>All Systems Are Fan-Out</h3><p>Here’s what that meeting reminded me:</p><p>There are no local decisions in distributed systems. Because in distributed systems, prevention is cheaper than recovery.</p><p>Every “simple” feature is a multiplier.</p><p>Every multiplier touches:</p><ul><li>Latency</li><li>Stability</li><li>Relevance</li><li>Infrastructure cost</li><li>Experiment quality</li></ul><p>Everything feeds back.</p><p>Engineering isn’t about knowing more Elasticsearch internals.</p><p>It’s about recognizing when:</p><blockquote><em>A local optimization is about to become a global instability.</em></blockquote><p>By decoupling our deletion logic, we successfully mitigated the system during heavy indexing windows and eliminated cluster instability during cleanup tasks.</p><p>Thanks for reading…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb5bd4c7f9b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond the Bit: Why We Traded Hamming Distance for Modern Vector Retrieval]]></title>
            <link>https://medium.com/@elifekiz/beyond-the-bit-why-we-traded-hamming-distance-for-modern-vector-retrieval-ffa7e0fbdfbe?source=rss-8856c9203fc1------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffa7e0fbdfbe</guid>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[hamming-distance]]></category>
            <category><![CDATA[ann]]></category>
            <dc:creator><![CDATA[Elif Ekiz]]></dc:creator>
            <pubDate>Sat, 14 Feb 2026 16:33:14 GMT</pubDate>
            <atom:updated>2026-02-14T16:33:14.506Z</atom:updated>
            <content:encoded><![CDATA[<h3>How we evolved our Vision API from hardware-level optimization to semantic-first architecture.</h3><p>When we first built our Vision API, the constraints were clear: minimize storage, maximize speed, and keep the compute footprint light. In that era, <strong>binary embeddings and Hamming distance</strong> were the gold standard for efficiency. They allowed us to perform similarity searches at the bit-level, squeezing performance out of every byte.</p><p>But as the AI landscape shifted toward LLMs and multimodal models, our “efficient” architecture became a “semantic” bottleneck. We realized that while bits are cheap, losing the nuance of a high-dimensional vector is expensive.</p><p>Here is how — and why — we evolved our Vision API from a binary-first system to a modern retrieval stack.</p><h3>1. The Legacy: When Hamming Was King</h3><p>Our initial architecture treated image embeddings as binary feature vectors (typically 1024-bit strings). We leaned heavily into OpenSearch’s space_type: hammingbit, leveraging script_score queries to calculate similarity.</p><p><strong>The logic was elegant in its simplicity:</strong></p><ul><li><strong>Storage:</strong> Tiny. 1024 bits is just 128 bytes.</li><li><strong>Speed:</strong> XOR operations and bit-counting (Popcount) are incredibly fast at the CPU level.</li><li><strong>Cost:</strong> We could pack millions of vectors into a relatively small memory footprint.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HPV9QlyUR-PkTXu6g21dDQ.jpeg" /></figure><p>For basic visual similarity, it worked. But as our use cases grew more complex — requiring fine-grained category prediction and cross-modal search — the cracks began to show.</p><h3>2. The Breaking Point: Accuracy vs. Efficiency</h3><p>we eventually hit the wall where “fast” isn’t “good enough.” We encountered three primary points of failure:</p><h3>Loss of Semantic Nuance</h3><p>Binary embeddings are a “hard” compression. By binarizing a float, you lose the <strong>magnitude and directional gradients</strong> that define modern embeddings. You aren’t just compressing data; you’re flattening the relationship between concepts.</p><h3>The RAG Gap</h3><p>Our Vision API needed to talk to LLM-driven systems (RAG). LLMs expect <strong>dense float embeddings</strong> to perform reasoning. Our binary vectors were “speaking a different language,” making it impossible to align our vision data with textual semantic spaces like CLIP.</p><h3>The Recall Plateau</h3><p>We observed that while our system was fast, it had a “quality ceiling.” Similar images with slight lighting variations were often missed because the binarization process pushed them into different bit-buckets. We were optimizing for hardware at the expense of the user experience.</p><h3>3. The Modern Stack: Semantic-First Retrieval</h3><p>We moved away from bitwise math to a tiered retrieval architecture:</p><blockquote><strong><em>Float Embeddings → ANN (HNSW) → Quantization → Rerank</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w_buRSkqAKOA7WW5dkcIXw.jpeg" /></figure><h3>Step 1: Preserving the Signal (Float Embeddings)</h3><p>We moved to dense float embeddings (768–1536 dimensions). By keeping the vectors in continuous space and using <strong>cosine similarity</strong>, we preserved the delicate semantic relationships that binary vectors discard.</p><h3>Step 2: Scaling with HNSW</h3><p>To handle the increased computational load of floats, we implemented <strong>Hierarchical Navigable Small Worlds (HNSW)</strong> in OpenSearch. This gave us sub-linear search speeds without the quality loss of binarization.</p><p>JSON</p><pre>PUT /vision-index<br>{<br>  &quot;settings&quot;: { &quot;index.knn&quot;: true },<br>  &quot;mappings&quot;: {<br>    &quot;properties&quot;: {<br>      &quot;embedding&quot;: {<br>        &quot;type&quot;: &quot;knn_vector&quot;,<br>        &quot;dimension&quot;: 1536,<br>        &quot;method&quot;: {<br>          &quot;name&quot;: &quot;hnsw&quot;,<br>          &quot;space_type&quot;: &quot;cosinesimil&quot;,<br>          &quot;engine&quot;: &quot;nmslib&quot;<br>        }<br>      }<br>    }<br>  }<br>}</pre><h3>Step 3: Intelligence via Quantization</h3><p>We didn’t want to completely abandon storage efficiency. Instead of “hard” binarization, we adopted <strong>8-bit Scalar Quantization</strong>.</p><ul><li><strong>The Difference:</strong> Unlike binary (1-bit), 8-bit quantization reduces memory by 4x while preserving the vector’s geometry. It’s the “sweet spot” between the efficiency of our old system and the precision of our new one.</li></ul><h3>Step 4: The Precision Multiplier (Reranking)</h3><p>The final piece of the puzzle was adding a reranking layer. Our ANN search retrieves the top 100 candidates, which are then passed to a <strong>cross-encoder</strong>. This ensures that the final Top-10 results aren’t just “mathematically close,” but “semantically relevant.”</p><h3>4. The Results: Engineering Impact</h3><p>The transition was more than just a code change; it was a shift in how we think about data density.</p><ul><li><strong>Accuracy:</strong> We saw a significant jump in category prediction, especially in edge cases where binary vectors were too “blunt.”</li><li><strong>Future-Proofing:</strong> Our Vision API now integrates natively with multimodal LLMs.</li><li><strong>Stability:</strong> Ranking behavior is now more predictable and less sensitive to minor image noise.</li></ul><blockquote>On the other side, cost of <strong>RAM </strong>in our new system compared to Hamming Distance:</blockquote><blockquote>| Dimensions | Format | Bytes per Vector | RAM for 1M Vectors |</blockquote><blockquote>| <strong>1024</strong> | Binary | 128 B | <strong>128 MB</strong> |</blockquote><blockquote>| <strong>768</strong> | Float32 | 3,072 B | <strong>~3 GB</strong> |</blockquote><blockquote>| <strong>1536</strong> | Float32 | 6,144 B | <strong>~6 GB</strong> |</blockquote><h3>When Do We Still Use Hamming?</h3><p>We haven’t deleted the Hamming code from our library. It still has a place in:</p><ul><li><strong>Near-duplicate detection:</strong> Finding exact copies of images.</li><li><strong>Perceptual hashing:</strong> Checking for copyright infringement.</li></ul><h3>Final Thoughts</h3><p>Our original exploration of Hamming distance wasn’t a mistake — it was a necessary step in our evolution. It taught us where the limits of “hardware-optimized” search lie.</p><p>By moving to a Float-ANN-Rerank model, we’ve built a system that is as smart as it is fast.</p><p>Thanks for reading…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffa7e0fbdfbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>