Painel de Notícias

Tecnologia

7045 posts · 26 feeds · tópicos e interesse por Jev

Filtros
dev.to

Fiz uma API grátis (sem chave) para calcular salário líquido, INSS e IRRF de 2026

Todo mês de janeiro a mesma coisa: sai a portaria nova do INSS, o salário mínimo muda, e quem mantém sistema de folha, planilha de RH ou simulador precisa caçar os números em PDF do governo. Em 2026 ainda veio a Lei 15.270/2025, que zera o IRRF até R$ 5.000 e cria uma faixa de transição até R$ 7.350, com uma fórmula própria (R$ 978,62 − 0,133145 × rendimento). Juntei tudo num registro de regras com fonte oficial e data de conferência em cada valor, e coloquei um motor de cálculo na frente. O resultado é uma API pública: curl "https://contaclt.com/api/v1/irrf?salario=6000" Responde em JSON, sem cadastro, sem chave e com CORS liberado (dá para chamar direto do front-end). Para R$ 6.000 sem dependentes: INSS de R$ 641,51, imposto pela tabela de R$ 564,85, redução de R$ 179,75 e IRRF de R$ 385,10. Endpoint Exemplo salario-liquido /api/v1/salario-liquido?salario=3500 inss (empregado, autônomo, plano simplificado, baixa renda) /api/v1/inss?salario=3500&categoria=individual irrf /api/v1/irrf?salario=6000&dependentes=1 seguro-desemprego /api/v1/seguro-desemprego?salario1=3000&salario2=3000&salario3=3000&solicitacao=1&meses=18 saque-aniversario /api/v1/saque-aniversario?saldo=5000 das-mei /api/v1/das-mei?atividade=servicos&faturamento=52000 empregada-domestica (folha + guia DAE) /api/v1/empregada-domestica?salario=1621 tabelas /api/v1/tabelas INSS é por faixa, não alíquota única. Para R$ 3.500 são 7,5% sobre R$ 1.621,00 + 9% sobre R$ 1.281,84 + 12% sobre R$ 597,16 = R$ 308,60. O eSocial trunca, não arredonda. Na folha da doméstica com salário mínimo, o INSS sai R$ 121,57 (não 121,58) e a DAE fecha em R$ 445,76. Se o seu sistema arredonda, vai dar um centavo de diferença. Desconto simplificado x deduções legais. O IRRF usa o que for mais vantajoso: R$ 607,20 fixo ou INSS + R$ 189,59 por dependente + pensão. A redução da Lei 15.270 entra depois disso. As tabelas (com fontes, vigência e data de conferência) estão em JSON no GitHub, licença CC BY 4.0: https://github.com/MMMyster

Dev
Interesse
LWN

Picard 3.0 released

Version 3.0 of the MusicBrainz Picard tag editor has been released. "This release brings many changes, including an upgrade to Qt6, a completely new plugin system, several improvements to the user interface, cover art processing, [International Standard Recording Code (ISRC)] submission and many more." LWN covered Picard in April.

LinuxDev
Interesse
dev.to

Why your topological sort gives a different answer on every run

You have a few tasks, and some of them depend on others. You put them in a graph, sort it topologically, and print the order. Then you run the program again and get a different order. Both are correct, but your test that compares against an expected slice fails every few runs. And the file you generate from the order changes every time you rebuild it, even though nothing changed. This happened in gograph, the Go graph library I maintain, until version 0.8. This post explains where the randomness came from, how the library got rid of it without changing its API, and what to do when insertion order isn't enough. The pipeline from the next section is on gograph.dev, where you can step through the sort instead of only reading the code. Here's a small build pipeline. Four tasks can run in any order, and release has to wait for all of them: g := gograph.New[string](gograph.Acyclic()) release := g.AddVertexByLabel("release") for _, name := range []string{"lint", "vet", "test", "build"} { _, _ = g.AddEdge(g.AddVertexByLabel(name), release) } for i := 0; i < 5; i++ { order, _ := gograph.TopologySort(g) // print the labels } With gograph v0.7.2, five calls in the same process gave this: vet test build lint release lint vet test build release lint vet test build release test build lint vet release lint vet test build release A topological sort only promises that every vertex comes after the vertices it depends on. Whenever more than one vertex is ready at the same time, the algorithm has to pick one, and any choice is valid. Here, all four tasks are ready from the start. The graph stored its vertices in a map[T]*Vertex[T], and GetAllVertices built its result by ranging over it. TopologySort then counted the incoming edges of each vertex in another map and found the starting vertices by ranging over that one. The Go spec says the iteration order of a map "is not specified and is not guaranteed to be the same from one iteration to the next", and the runtime randomizes it on purp

Dev
Interesse
dev.to

How I built a TikTok Shop fee calculator (and what TikTok's 2026 fees actually are)

I built a TikTok Shop profit calculator as a static site — no backend, no database, just HTML/CSS/JS computing fees in the browser. The interesting part wasn't the code. It was discovering how messy TikTok's 2026 fee structure is. What the calculator computes (October 2026 rates): US: 8% reported (Aug 2026); official table still shows 6%. Transaction fee bundled, no separate charge. New seller rate 3% for 30 days. Refund admin fee: 20% of refunded fee, max $5/SKU. UK: 9% VAT-inclusive. No separate transaction fee. New-seller reduced period exists (terms unconfirmed). EU (DE/FR/IT/ES/NL): 9% standard since Jan 8, 2026 (was 5%). New seller 4% for 60 days. Refund admin fee 20%, max 5 euros. The US 8% figure is the fun one: multiple seller-ops sources report it effective August 4, 2026, but TikTok's public rate table (revised May 2026) still lists 6%. So the calculator has a toggle — reported 8% default, official 6% optional. When the platform won't give you a straight answer, you ship the ambiguity honestly. Technical notes for the curious: Static site, about 10 pages, deployed on Modal as an ASGI app serving static files. One real SEO fix so far: /index.html and / both returned 200 with identical content, so I added a 301 redirect route in FastAPI before the static mount. All math runs client-side; fee data lives in a small JS config so monthly rate updates are a one-file change. (TikTok changes these constantly — there's now a monthly research pass to keep rates current.) Analytics and cookie consent from day one, because the monetization plan is ad revenue after the custom domain lands. Biggest lesson: for a tool like this, the data is the product. The calculator UI took a day; keeping fee rates accurate is the actual ongoing work. If you're building in a space where the platform changes pricing quarterly, design for data updates first and UI second. Try the live calculator here: https://abumanan551-eng--tiktokshop-calc-webapp.modal.run — happy to answer questions a

Dev
Interesse
Engadget

Are phone coolers actually worth it?

Phone coolers will make the back of your phone cooler, but whether this has any practical effect depends on how hot the device is running.

Mobile
Interesse
LWN

Security updates for Monday

Security updates have been issued by AlmaLinux (ghostscript, libvirt, and osbuild-composer), Debian (freecad, linux-6.12, node-lodash, pcre2, perl, php8.2, ruby-rack-session, wireshark, and xen), Fedora (assimp, budgie-control-center, budgie-desktop, budgie-desktop-services, budgie-desktop-view, chromium, cri-o1.36, curl, flatpak, lemonldap-ng, libX11, nagios-plugins, nanosvg, noctalia, openssl, pgbouncer, pocillo-gtk-theme, prometheus, python-streamlink, python-urllib3, python-uv-build, python3.12, ruff, rust-libcst, rust-libcst_derive, rust-salsa, rust-salsa-macro-rules, rust-salsa-macros, ty, and uv), Red Hat (rhc-worker-script), SUSE (amazon-ecs-init, binaryen-133, bind, chromium, distribution, firefox, firefox-esr, glib2, gnumeric, helm, jline3, kubevirt-1.6, libparted-fs-resize0, libslirp-devel, libtcnative-1-0, libtcnative-2-0, tomcat, tomcat10, tomcat11, libwireshark19, openai-codex, python313-litellm, rpcbind, rustup, sccache, suseconnect-ng, valkey, wget, and xdg-dbus-proxy), and Ubuntu (ceph).

SegurançaInfraDevLinux
Interesse
The Verge

OpenAI is sticking more ads in ChatGPT

OpenAI's latest ad format will put images of sponsored products and services on your screen. The ads, which OpenAI will begin testing in the US later this month, will "initially" appear when you generate images with ChatGPT, according to an announcement on Monday. The company first brought ads to ChatGPT in February. Until now, ChatGPT's ads only showed a company's name, logo, and a link to its product in a "sponsored" section beneath your chat. OpenAI's visual ad format will similarly remain separate from the image you generate and will "not influence the answers ChatGPT provides." Ads won't appear if you subscribe to ChatGPT's Plus, Pro, … Read the full story at The Verge.

IA
Interesse
Phoronix

Mesa Developers Looking At A Formal Governance Model

The Mesa 3D driver stack has functioned well over the years without a formal governance model and just relying on an informal consensus approach for big changes. But on some occasions this informal handling has been less than ideal so upstream Mesa developers are now looking at establishing a formal governance model...

LinuxDev
Interesse
9to5Mac

15 years after his passing, nobody is ‘The Next Steve Jobs’

Today marks 15 years since Steve Jobs passed away after a long battle with pancreatic cancer. Every year, memories come flooding back, and this one is no different. When I was contemplating what I wanted to say about Steve today, it occurred to me that much of what I or anyone has ever wanted to say about him has already been said. more…

Geral
Interesse
dev.to

How to export all Workday job postings of a company to Excel

Many large companies (NVIDIA, Salesforce, Intel and thousands more) publish their jobs on Workday career sites. You know the address: something.wd5.myworkdayjobs.com. The site is fine for one person looking for one job. It is not fine if you need all jobs of a company in a spreadsheet: there is no "Export" or "Download" button, the list says "Multiple Locations" instead of the real cities, dates say "Posted 30+ Days Ago" instead of a real date, and the site stops paging at about 2,000 results, so on big boards you never see everything. Recruiters, sales teams (hiring signals), job boards and job seekers with a list of target companies all hit this. This guide shows how to get every job into Excel or Google Sheets in a few minutes, without code. Disclosure: I built the tool used in this guide, the Workday Jobs Scraper on Apify. Go to Workday Jobs Scraper and click Try for free (you need a free Apify account). The form is already filled with a small test: { "companies": ["NVIDIA"], "maxJobsPerSite": 50 } Click Start. It finishes in about 20 seconds and costs about $0.05. Now you can see what the data looks like before you spend more. Type company names or websites, one per line. You don't need the Workday URL: the Actor finds the company's Workday boards for you (subsidiaries included). If a company is not found, open its careers page, click through to the job list and paste that URL into Start URLs instead. To get every job, set Max jobs per site to 0. You can narrow the results by job title, country and posting date. Filtered-out jobs are free: you only pay for the rows you keep. Example for "data engineer jobs in the US or Germany, posted in the last 7 days, no internships, at NVIDIA, Salesforce and Intel": { "companies": ["NVIDIA", "salesforce.com"], "startUrls": [{ "url": "https://intel.wd1.myworkdayjobs.com/External" }], "titleIncludes": ["data engineer"], "titleExcludes": ["internship"], "countries": ["US", "Germany"], "maxJobsPerSite": 0, "postedWithinDays": 7

Dev
Interesse
dev.to

My own worst user

I use the things I build. Not the way you use something to test it — open it, click around, confirm it works, close the tab. I use them to do the actual work, more than anyone else does, for as long as I own them. It isn't discipline. I don't have the temperament for discipline. It's that I can't stand a tool I have to fight, and the tools I end up fighting hardest are always my own. That's the whole method, if it even is one. I'm my own worst user. Here is the thing I noticed once and can't un-notice. The first time I sit down and actually use a screen to get something done, its shape stops being a decision I make. It decides itself. Take a usage screen — the kind that tells you how much of something got used, by whom, over what window. The first time I use it, I want a total, so "everything" has to be a state the screen can show. The next time, I want one customer, so I narrow. I don't sit and reason about any of this. The friction of trying to get an answer drags the shape out of me. Whatever stands between me and the number gets filed down, because I'm the one standing there waiting for the number. That's the part most "use your own software" advice skips over. It isn't that using the thing reminds you to care. It's that using the thing changes what you're able to think. In front of a table, you can think in tables — rows, columns, keys, joins. In front of a task, you can't, because the table was never the thing you wanted. The answer was. You can't keep thinking in records once you've had to do the job. Because I use it, the tenant was never a constant. When I write the query behind that usage screen, I have to write the part that scopes it — which groups this person is allowed to see. And the moment I've written that, the operator's view is already sitting in front of me. It's the same query with the limit taken off. I didn't design two screens, one for the customer and one for whoever runs the place. I wrote one line about who's asking, and the second screen

Dev
Interesse
dev.to

How long does a Patroni failover take? We measured it

Tested on: Patroni 4.1.5, etcd 3.6.15, HAProxy 2.8, PostgreSQL 16 “A few seconds” is the usual answer. It's true for one kind of failover and wrong for the one that matters most. Here are real numbers from a 3-node cluster, what drives them, and what tuning actually buys you. What happened to the leader Writes unavailable Why Planned switchover (patronictl switchover) 4.7–5.0 s Leader steps down cleanly and hands over the lock Clean stop (systemctl stop patroni, reboot) 4.7–7.0 s Patroni releases the lock as it shuts down Hard crash (power loss, kernel panic, kill -9) 24–30 s Nobody releases the lock; it has to expire Default timings (ttl 30 s, loop_wait 10 s, retry_timeout 10 s). Asynchronous replication, HAProxy routing on the Patroni REST API. Ranges cover repeated runs. Zero committed transactions were lost in every run. A writer opened a new connection through HAProxy's read-write port and committed one row every 200 ms, the way an application with a retrying connection pool behaves. We then took the leader away and recorded: Write downtime: from the first failed write to the first successful write on the new leader. This is what your users feel. Lost transactions: every row the client saw as committed, checked against the database afterwards. Rejoin time: until the old leader streamed again as a replica, which shows that pg_rewind worked. We measured the write path end to end, not just Patroni's log, because what matters is when writes succeed again. That includes Patroni's election, PostgreSQL's promotion, and HAProxy noticing the new leader. Patroni's leader holds a lock (a key with a time-to-live) in etcd and renews it every loop_wait seconds. When the leader is stopped or switched over, Patroni deletes the key, so a replica can take over on its next loop. When the leader crashes, nothing deletes the key. The replicas must assume the leader might still be alive, perhaps just slow, until the lock expires after ttl seconds. That waiting is deliberate: it's wh

InfraDev
Interesse
dev.to

GeeTest v3 solver in Python: from gt and challenge to a seccode the site accepts

A GeeTest v3 solver in Python takes four HTTP calls, and only the middle two talk to the solver. You get a fresh gt and challenge from the site's register endpoint. You send them to a solving API. You poll until it returns challenge, validate and seccode. Then you POST those three back to the site in the same session that fetched the challenge. When the solve works but the site still says no, the bug is almost always in the first or last call. Below are all four with runnable code, plus a check to run first: v3 and v4 are not interchangeable. You're automating a lookup form you're allowed to automate, and a GeeTest v3 slider sits in front of the submit button. The goal is plain requests, no browser, ending in an accepted form POST. Most GeeTest confusion online comes from mixing guides for the two versions. They take different parameters and hand the site different values. Open DevTools, reload, and compare: Signal GeeTest v3 GeeTest v4 Page init initGeetest({gt, challenge, ...}) initGeetest4({captchaId: ...}) What identifies it gt (32 hex chars) plus a one-time challenge captcha_id only Network api.geetest.com or api-na.geetest.com (gettype.php, get.php, ajax.php) gcaptcha4.geetest.com, static.geetest.com/v4/gt4.js What the site receives geetest_challenge, geetest_validate, geetest_seccode lot_number, captcha_output, pass_token, gen_time If you'd rather script it, this loads the page once and classifies it by network traffic (needs pip install playwright and playwright install chromium): import re from playwright.sync_api import sync_playwright def geetest_version(url: str) -> str: seen = [] with sync_playwright() as p: browser = p.chromium.launch() page = browser.new_page() page.on("request", lambda req: seen.append(req.url) if "geetest.com" in req.url else None) page.goto(url, wait_until="networkidle") browser.close() if any("gcaptcha4.geetest.com" in u or "/v4/" in u for u in seen): return "GeeTest v4 (captcha_id): this guide does not apply" if any(re.search(r"/

Dev
Interesse
dev.to

The Hidden Cost of MCP: More Context, More Tokens

We use AI agents to optimize cloud spending. Then we give them a very expensive bag of context. MCP can make FinOps agents more useful by giving them access to real cloud data, but additional tools and context can also increase token usage and AI costs. The goal is not maximum context, but the smallest relevant context that produces a useful result. Imagine asking an AI agent to investigate your AWS bill. You want it to look at your real costs, inspect your infrastructure, and explain what changed. A generic answer about oversized EC2 instances is no longer enough. This is where MCP starts to matter. The Model Context Protocol gives AI applications a standard way to connect to external tools and data. Anthropic introduced MCP, and OpenAI also supports remote MCP servers in its Responses API. More context makes the agent more useful. It can work with your environment instead of guessing from general knowledge. But that extra context also has a cost. An AI model already knows a lot about AWS. It can list common reasons for a sudden increase in EC2 spending. What it does not know is what happened inside your account yesterday. MCP can give the agent access to that missing information. It can work with cost data, infrastructure details, tags, and usage patterns. Now it has something concrete to investigate. The difference is important. Instead of asking what usually causes EC2 costs to rise, you can ask why your costs rose. The agent can inspect the environment and connect the change to real resources. This is one reason MCP is interesting for FinOps. The FinOps Foundation discusses use cases such as cost analysis, anomaly investigation, and connecting financial data with infrastructure decisions. Better context moves the agent from general advice toward answers about your actual environment. But there is a tradeoff. The model now has more information to process before it can give you that better answer. And that context is not free. Tools need descriptions so the model

IAInfraDev
Interesse
dev.to

My News Digest Got a Telegram Channel That Forgets Everything After a Week

A while back I posted here about RealFeedApp, a free digest that collects science and tech news, collapses the retellings into one card, ranks by significance and writes a short summary in your language. Last time it learned to explain itself: every card got three plain-language lines under the summary. This post is about what happened since. The headline is a Telegram channel, and the most interesting thing about it is a setting: every post deletes itself after a week. The idea was obvious. Search engines take months to notice a new site; a channel reaches people the day you post. So the first version did the obvious thing: once a day, the five top stories of the last 24 hours, as one message. Headline, summary, link to the original, repeat five times. It worked, technically. I opened the first post in the channel and was disappointed. It was a block of text. No pictures. None of the "in plain words" lines the site had just learned to write. No tags, no sense of which field a story belonged to. And every link went straight to the original source, so the site — the thing that actually does the work — was nowhere in it. Nobody reposts a wall of text. You can't forward the one story you care about; it's glued to four others. And a reader who skims it learns nothing they couldn't have got from any aggregator. The lesson was simple and slightly embarrassing: I had built a channel that showed less than the product it was supposed to advertise. So the channel now posts the way the site shows things. One story per message, spread through the day instead of a morning dump. Each post is the card: the cover image from the site; the headline and the summary; the "in plain words" block — the field as a tag, what was done, why it matters — set off from the summary the way it is on the card; tags you can tap through within the channel; a link to the story's page on the site, and from there to the original. That last change matters most. A post is now a preview of a card, not a re

Geral
Interesse
dev.to

The Monorepo "Aha!" Moment: How to Share Code Without Breaking Everything 🤯

Today, I had the incredible opportunity to dive deep into architectural patterns, specifically learning the crucial differences between a Monorepo and a Polyrepo. When I talk about a Monorepo here, I'm specifically referring to a modular Monorepo. It isn't just a giant dumping ground for code; rather, it’s a system of clubbing multiple applications into a single repository where each application has its own cleanly defined, restricted boundaries. Here is a quick look at what that structure might look like: The Good and The Bad ⚖️ However, as the applications grow, this architecture comes with its own set of challenges: The "Huge Repo" Problem: Cloning the repository takes a lot of time. Disk Space: Local developer machines can face storage issues. CI/CD Complexity: Build pipelines become complicated and require intelligent caching to only build what changed. Boundary Discipline: It requires extremely clean and strict module boundaries to prevent spaghetti code. The Big Doubt: The Shared Code Dilemma 🤔 The answer is yes, it absolutely will—unless you enforce strict boundaries and restrictions on that shared code. Relying on developers to "just be careful" doesn't scale. We need automated safety nets. Here are two powerful ways to solve this: 1️⃣ Consumer-Driven Contracts (CDC) 📜 How it works: App 1 writes a test stating its expectation. For example: "When I call getUserProfile(id), I expect a JSON response containing email, id, and name." This expectation is saved into a contract file (often a JSON file) that lives directly inside App 1's test suite. If a developer modifies the shared backend in a way that violates this contract, the test immediately fails, blocking the bad code from ever being merged. 2️⃣ Automated API Guardrails (Linters & Type Checking) 🛡️ Linters: We can use workspace lint rules (like those in Nx or Turborepo) to ensure applications can only import from public, stable API endpoints of the shared backend, preventing them from bypassing boundari

Dev
Interesse
Hacker News

Gitframes

Article URL: https://github.com/gatewai-dev/gitframes Comments URL: https://news.ycombinator.com/item?id=49964265 Points: 16 # Comments: 7

Dev
Interesse
dev.to

Getting Your First Orbistats API Key: A 5-Minute Quickstart Walkthrough

Most "quickstart" guides skip the part that actually trips people up: where exactly to click, what the key looks like, where to put it, and what the very first error message means when you get it wrong. This is a genuinely five-minute walkthrough — sign up, get the key, make one real request, understand your limits, and know where to go next. What You'll Need Go to the sign-up page and create an account. This is a plain email/password-style signup, not a sales form — you land straight in a dashboard, not a "someone will contact you" queue, which is the main thing that separates a self-serve platform like Orbistats from enterprise-only providers in this space. Once you're in, you'll have access to the login page for future sessions and a dashboard where your API key lives. Step 2: Copy Your API Key Your key will be a long alphanumeric string tied to your account's plan and rate limit. Copy it from the dashboard — but before you paste it anywhere, read this next part carefully, because it's the step almost every first-time tutorial gets wrong. Don't Hardcode It Never paste your key directly into a script you might commit to Git, share in a screenshot, or paste into a public gist. Store it as an environment variable instead: macOS or Linux: bash Windows PowerShell: powershell Or in a .env file (most projects use this for local dev): bash ORBISTATS_API_KEY=your_key_here This isn't a minor hygiene tip — a leaked key on a public GitHub repo gets scraped and abused within hours in practice across most API providers, and you'll find out when your quota is suddenly gone or your account gets flagged. Step 3: Understand the Authentication Pattern Orbistats uses a standard Bearer token in the Authorization header — the same pattern you'll recognize from most modern REST APIs: Authorization: Bearer YOUR_API_KEY That's it. No OAuth handshake, no signed-request complexity for basic REST calls. Full details live in the API documentation and the API reference if you want every endpo

Dev
Interesse
dev.to

Your Template Set the Title. Something Else Decided What Shipped.

A page of ours returns 200. The HTML validates. Every test is green. The h1 reads exactly what we wrote. And for several weeks it was shown to about 1,580 people a month in search results and clicked once. One click. At an average position of 8.7, where the usual click-through is somewhere between one and two per cent, so the expected number was twenty or thirty. Nothing was broken in any sense a test or a log would recognise. What was broken was the element, and it was broken in a way that nothing inside the application could see. The controller builds a single string and hands it to both places that need it: the page title and the Open Graph title. One assignment, two consumers, same value. What came out the other end was not the same value twice. h1 (68): TypeError: Failed to Fetch - What It Means and How to Find the Cause og:title (68): TypeError: Failed to Fetch - What It Means and How to Find the Cause (58): TypeError: Failed to Fetch - What It Means and How to Find A view helper fits the title element to a character budget, cutting on a word boundary. That is a reasonable thing for a site to do and it was added deliberately. The point is not that the truncation is wrong. The point is that nothing at the call site says it happens, the other two consumers of the same string are untouched, and the result is a sentence that stops before its own subject. That is the page with the 1,580 impressions. The half it loses, "the Cause", is the half somebody searching for the meaning of an error is actually looking for. Four of our highest-traffic pages were shipping a title that ended mid-phrase like this; another stops at "and the Keyboard Key", dropping the thing the article is about. Because every test asserted on the value we set, not the bytes that left. The model holds the full string. The controller holds the full string. The template is handed the full string. You can write a perfectly good test at any of those layers, watch it pass, and learn nothing, because th

Dev
Interesse
dev.to

I Built a Bilingual Invoice-to-JSON API (Here Is the Whole Stack)

Every accounting team I talked to had the same problem: invoices arrive as PDFs and scans, and someone has to retype them into a spreadsheet. Existing OCR APIs are either expensive, English-only, or return a blob of text instead of structured data. So I built a small REST API that takes a document and returns JSON. You POST an image or PDF. You get back: { "vendor": "ACME Ltd", "date": "2026-09-14", "total": 1240.00, "currency": "USD", "line_items": [ {"desc": "Consulting", "qty": 4, "price": 310.00} ] } Bilingual out of the box: English and Vietnamese. Eight document types: invoice, receipt, resume, contract, purchase order, and a few more. Python + FastAPI for the service layer PaddleOCR for text extraction (handles Vietnamese diacritics well) Custom rule + regex layer for field mapping per document type Railway for deploy RapidAPI as the storefront + billing Tesseract struggled with Vietnamese diacritics and with low-quality phone scans. PaddleOCR handled both noticeably better, and it runs CPU-only which keeps hosting cheap. I wanted to skip building auth, rate limiting, API keys, and billing. RapidAPI gives all four plus a marketplace where people already search for APIs. For a solo project the tradeoff (they take a cut) was worth it. Line item detection. Totals are easy. Splitting a table into rows is where most APIs fall over. I ended up using positional heuristics on OCR boxes. Vietnamese. Diacritics break naive tokenisers. Normalising before NER helped a lot. Mixed-language invoices. Some have English headers and Vietnamese line items. Per-field language detection beat whole-document detection. https://rapidapi.com/tuyentn23/api/invoice-to-json-extractor1 Free tier is live. If you build anything that touches invoices or resumes, I would love to know what document type you would want next.

Dev
Interesse
dev.to

S3 Vectors Now Filters Before It Searches: Metadata Pre-Filtering for Multi-Tenant RAG

If you run RAG on Amazon S3 Vectors with metadata filters, you may have been losing results without knowing it. Ask for the 10 nearest chunks for one tenant and you might get 3 back, or 10 that aren't actually the closest ones in that tenant's data. No error, no alarm, just a model answering with less context than it should have had. On September 30, 2026, AWS shipped metadata pre-filtering for S3 Vectors. Indexes now come in two modes, and the new one evaluates your filter before the similarity search instead of during it. AWS says that returns up to 5x more matching vectors when the filter is selective. It also adds a $startsWith prefix operator, sets a 100-condition limit per query, and costs nothing extra. Here's what changed, why the old behavior dropped results, how to measure the difference on your own index, and what a multi-tenant retrieval service on Amazon EKS looks like with it. CLASSIC validates the filter while searching; ENHANCED narrows the set first. (Diagram labels in Spanish, from the original article.) S3 Vectors indexes now have a mode: CLASSIC (filter evaluated in tandem with the approximate search) or ENHANCED (filter resolved first, then similarity search over the matching subset). With selective filters, ENHANCED returns up to 5x more matching vectors, per AWS. Vector buckets created on or after Sep 30, 2026 are ENHANCED-only. Older buckets stay CLASSIC until you run UpdateIndexMode; no re-ingestion needed. You can test per query with queryMode=ENHANCED before switching the index. New $startsWith operator; ENHANCED indexes cap filters at 100 conditions (each $in value counts). No additional cost. Available in every commercial Region with S3 Vectors, including São Paulo, plus the China Regions. Vector search at scale is approximate: the engine explores a neighborhood of promising candidates on a bounded budget rather than comparing your query against every vector. In CLASSIC mode, filters are checked while that exploration runs. If your filte

IAInfraDev
Interesse