r/LLMDevs • • 4h ago

Tools I built Turbotap, an open-source CLI that lets AI agents drive a real iPhone over Wi-Fi

11 Upvotes

I’ve been trying to make more of my daily life AI-driven, and my iPhone was becoming the bottleneck. If an app didn’t have a web version, an MCP, or an API, I still had to pick up the phone and do it myself.

After lots of searching I finally found a solution that worked. I put a spare iPhone in developer mode, installed WebDriverAgent, and left it on my home Wi-Fi. WebDriverAgent is built on Apple’s official UI testing framework. It’s literally computer use for iPhone.

I tried mirroring the screen with AirPlay and even streaming a camera, but nothing beat WebDriverAgent. Stock WebDriverAgent was still slow in a lot of apps, so I patched it and had an agent keep improving it by trying it across tons of apps. That became Turbotap.

Now I can just ask AI to change a setting, stress-test my app on a real iPhone, or do something in an app I used to have to do by hand. Honestly, I built it out of irritation and increasing inflammation in my hands, but it’s unlocked so many things I can automate with LLMs. The AI can use the actual iPhone app the same way I would, even if there’s no web version, MCP, or API.

You need Xcode on a Mac to sign and install WebDriverAgent over USB. Once it’s running, you can drive the phone headlessly from a Mac or Linux machine on the same Wi-Fi.

It’s free and open source. https://github.com/Maxteabag/turbotap

https://x.com/max_tbag?s=11


r/LLMDevs • • 23h ago

Discussion What reasoning level do you use on GLM-5.3 for coding?

8 Upvotes

I saw an experiment where GLM-5.3 was tested on Low, High and Max reasoning. On two coding tasks, Max ran out of tokens without finishing the code, while High passed all the tests.

I'm curious about how others use GLM-5.3. Have you noticed better results with Max, or is High enough for most coding tasks?


r/LLMDevs • • 8h ago

Discussion How do you tell whether an agent's long term memory actually helps?

7 Upvotes

building a personal assistant with long term memory: a shared store of past answers and notes it can look things up in. every turn is logged, so i have plenty of data, but i can't tell if the memory actually makes the work better.

the problem is most turns never consult it, and the ones that do aren't comparable to the ones that don't, since the agent looks things up exactly when the task is harder or depends on something from the past. retrieval benchmarks look fine (right file in the top results most of the time) but that says little about whether the task went better.

options i'm weighing:

  • replaying past tasks with and without retrieval and comparing outcomes
  • human ratings on a sample of turns
  • counting how often the user has to repeat or correct something the assistant should have known

for anyone who has measured this: what actually told you memory was helping, and what turned out to be noise?


r/LLMDevs • • 6h ago

Discussion Survey of 165 engineering leaders: 64% rely heavily on AI, but only 20% measure it against business outcomes. How are you measuring LLM impact?

Thumbnail
leaddev.com
2 Upvotes

r/LLMDevs • • 7h ago

Discussion Customer-facing agents (WhatsApp, Messenger, support bots): how are you tracing what they actually do?

2 Upvotes

Disclosure up front: I'm one of the maintainers of OpenLIT. The core is Apache-2.0 and free to self-host; there's also a separate Enterprise edition. Mostly I'm curious how others handle this.

More teams are putting agents directly in front of customers: answering questions, booking appointments, qualifying leads, sometimes selling inside a chat. Once an agent talks to real people and calls real tools, two failures get expensive fast:

  • A confident hallucination. A wrong price, a booking slot that doesn't exist, a refund it can't actually issue. You usually hear about it from the customer.
  • A retry loop. The agent keeps calling the same tool and burns tokens. You hear about it from the invoice.

The final chat message alone doesn't tell you which prompt, tool call, or model response caused it. What's worked for us:

  1. One trace per conversation turn. Every LLM call, tool call, and agent step becomes an OpenTelemetry span in one trace, so you can replay exactly what happened for a given customer.
  2. Tokens, latency, and cost on every span, per model and per request. Loops and unexpected model switches show up right away instead of at month end.
  3. LLM-as-a-judge scoring on live traffic, not just the offline eval set, plus guardrails for prompt injection and off-topic chats. Anyone on WhatsApp can type anything into your agent.
  4. Versioned prompts that you can roll back without a redeploy.

Setup in Python is roughly:

import openlit
openlit.init()

It auto-instruments common LLM SDKs and agent frameworks. Since it's plain OTel, the data can go to whatever backend you already run.

Repo: https://github.com/openlit/openlit Docs: https://docs.openlit.io

Questions for people running these in production:

  • What do you trace first on a customer-facing agent?
  • Are you scoring live answers, or only running evals before deploy?
  • How do you catch tool-call loops before they hit the bill?

r/LLMDevs • • 9h ago

Help Wanted Transitioning into AI Engineer with a DS/ML background — how should a beginner actually start?

2 Upvotes

Hello everyone,

I have a basic foundation in traditional data science and machine learning work:
• Clustering (KMeans, GMM, DBSCAN)
• Deep learning (MLP, CNN, EfficientNet, handled class imbalance)
• Feature engineering, retention/churn and CLV type analysis
• Tools I’ve used: Databricks, Power BI, some Power Automate, GitHub Actions, PEFT, yfinance, PyTorch
I’m now trying to move into AI Engineer roles, focusing on production systems rather than notebooks. My coding (mainly Python) is still improving — I often rely on AI to help write and debug, and I’m actively practicing to become more independent. Currently building personal projects around stock data tools, Hugging Face (Transformers / Diffusers / Unsloth), local LLM setups, and exploring real-time applications with open data.
My current questions:

  1. Should I prioritize MLOps + deployment first (Docker, FastAPI, CI/CD, monitoring, serving) before going deeper into agents, RAG, or LLMs?
  2. What kind of end-to-end portfolio projects actually help for AI Engineer roles right now? (I already have some modeling/DS work; I need clearer “I built and deployed this system” evidence.)
  3. For someone with this background, is the realistic path junior AI Engineer, or is it better to start via MLOps / Data Engineer hybrid roles?
  4. What are the must-learn tools and stacks in 2026 for production AI work that I should focus on in the next 3–6 months?
  5. Any practical advice on open-source contributions, specific GitHub project ideas, or how to solidify coding fundamentals while building production experience?
    I’m aiming for quantified, production-oriented work (APIs, agents, real-time systems, measurable impact).
    Any realistic roadmaps, project ideas, or “I was in a similar spot” stories would be really appreciated. Thanks!
    all.

r/LLMDevs • • 19h ago

Discussion We tested Jev on 307 database-work examples. The failure mode worth designing around:

2 Upvotes

Disclosure: Dan Reynolds wrote the study this comes from. No ties to TypeSafe. [CONFIRM]

Jev doesn’t write; it decides. You give it material and a question with fixed answers (yes or no, which one, how much, where) and it returns a number, a label or a box with a confidence score. We ran it through all 21 official cookbooks with our own examples, answers locked in advance.

The one weakness to design around: when the right answer isn’t among the options, it picks the nearest one, often with high confidence. Five real cases from our tests:

• “Back up the CRM every 15 minutes” was scheduled hourly, at 0.98

• “Export only the EU contacts” exported all contacts, at 0.97

• The “leads” table as an Excel file ran a contacts export as CSV, at 0.89

• “Load this into Redshift” was pointed at the Snowflake loader

• “The pilot ends at the end of next month” was read as today

The fix: give every menu an exit, an option that says “not on the list.” In a replay of the same 14 requests, 13 were handled correctly with the exit, against 11 without (run after the locked round, so treat it as indicative).

A second fix failed, and it’s instructive: a broad “does the request ask for anything extra?” check blocked 5 of 7 good requests, because our wording counted “for the last week” as extra. Safety questions need to be as narrow and literal as any other question.

Overall: 287 of 307 passed, at a total cost of $0.033. Strongest jobs were citation checking, picking values from candidates, sorting live messages and checking a cheap extractor. Weakest was rebuilding structure from flattened text (20 of 27).

Full write-up with every prompt: https://webuilddatabases.com/blog/jev-job-by-job/

Replayable files: https://github.com/WeBuildDatabases/jev-job-by-job


r/LLMDevs • • 20h ago

Tools I built OLYMPUS — an open-source operating system where 10 AI "gods" plan, dispatch, and verify real-world projects. This is v0.1.0, and I’d love to get your feedback.

Thumbnail
github.com
2 Upvotes

Hey everyone. Like most devs here, I kept spinning up AI agents that would confidently start work... and then I'd discover nothing was actually verified, costs were invisible, and the "plan" was buried in chat scrollback. I went down that rabbit hole and came out the other side with a full desktop operating system built around one idea: an agent must plan, dispatch AND verify — and every token should be accounted for.

What OLYMPUS is:

- A standalone Electron app (Next.js + TypeScript) built on OpenCode

- 10 specialized agents ("gods") that plan, dispatch and execute through an orchestration layer called Symphony — Atlas thinks and patrols the brain, Apollo narrates long turns and lives in your pocket as a voice-first mobile companion, Athena runs the design studio (style, contract, review), Callimachus guards brain health

- Cascading token compression + a self-curating brain, so long projects don't drown in context

- A real token economy: every action logs step cost, list value and the invoice — cache hits are measured, not guessed, and per-model 5h/weekly/monthly caps land in a "cost brake"

- Interactive live preview, deterministic recovery, hibernation, GO console with quota management

- Local-first: it runs models locally through OpenCode when you want it

- 7 languages out of the box: English, Português, Español, Français, Deutsch, 日本語, 中文

- 57 hermetic test suites. Fully open source under AGPL-3.0 — no paid tier, no locked features

- Every screenshot in the README is captured from the running build — no mockups. There's a guided tour in screenshots/UX-TOUR.md

Try it (Node.js + npm):

git clone https://github.com/texugo7badger/OLYMPUS.git

cd OLYMPUS

npm install

npm run setup

npm run dev

Where I specifically want feedback:

  1. Onboarding — does the "gods" metaphor make sense in the first 10 minutes, or is it confusing?
  2. The 10-agent split — useful specialization, or unnecessary complexity?
  3. Token compression — would you trust a compressed brain for long-running projects?
  4. Docs — ARCHITECTURE.md and TOKEN-ECONOMY.md: readable, or a maze?

r/LLMDevs • • 2h ago

Tools I built an open-source self-hosted AI gateway and workspace with unified billing

1 Upvotes

I'm a Chinese developer, the following sentence are translated from my X post :)

Thought I'd finally share a project I've been working on. It's still in pre-release, so please go easy on me. 🥲

I'm not much of a writer either, so I borrowed some of the introduction from GPT. 🥲

🚀 A1O Platform — An open-source, self-hosted AI gateway and workspace.

https://github.com/infinmalum/a1o-platform

Why did I start this project? 🤔

Projects like New API and Sub2API already provide mature AI gateway capabilities, while LobeHub and Open WebUI offer rich AI interaction experiences.

However, combining them into a single service with unified user accounts, quotas, and billing often requires additional integration work.

Inspired by parts of Google AI Studio's design, I wanted to bring AI gateways, chat, agents, background tasks, media creation, and API access together in one self-hosted platform, making deployment, operation, and management easier.

A1O is more than just an AI API gateway. It brings AI infrastructure, agent runtimes, and user-facing applications together.

From API calls to Chat, Agents, background tasks, and media generation, everything shares a unified account, quota, and billing system — without having to stitch together separate gateways and AI applications.

Current features:

🔌 Native support for OpenAI Chat Completions, Responses, Anthropic Messages, and Gemini APIs

🌉 Cross-protocol bridging with streaming support

🔀 Intelligent model routing and load balancing

🤖 Built-in agent runtime powered by Norma

🧩 MCP, Skills, and custom agents

⚙️ Background AI tasks and sandboxed code execution

📚 Personal knowledge libraries

🎨 Image and video generation with a personal media gallery

🎙️ Text-to-speech, speech-to-text, and audio translation

💳 Integrated billing, quota management, and payment systems

🌐 Multilingual user interfaces

🐳 Self-hosted deployment with Docker

Built with Go and TypeScript, independently maintained, and licensed under AGPL-3.0.

The project originally started as a fork of One API, although I've changed it so much that even its own mother probably wouldn't recognize it anymore. 🥲

I'd love for you to give it a try and share your feedback!

Stars, issues, and pull requests are always welcome.

And if you eventually find it useful enough to run in production, feel free to sponsor the project through the Sponsor button on GitHub and buy the developer some chicken. 🍗


r/LLMDevs • • 2h ago

Discussion Where do you put the approval gate before an agent calls a paid API?

1 Upvotes

I was testing sn-motion-html from the SenseNova Skills repo (https://github.com/OpenSenseNova/SenseNova-Skills) with a one-paragraph brief. It builds a scroll-driven HTML story from video scenes and connector clips.
I nearly triggered a paid batch partway through — I'd assumed approving the concept also approved the spend. There's a second approval right before the first paid batch.
The still stage before video helped. It generates a few stills and checks they match, which let me catch a style mismatch before paying for clips. Only tried it once, though.
If you're building agents that call paid APIs: where do you put the approval gate?
per batch?
per job?
or earlier?
Do you label the two approvals differently in the UI??


r/LLMDevs • • 2h ago

Discussion Where do you put the approval gate before an agent calls a paid API?

1 Upvotes

I was testing sn-motion-html from the SenseNova Skills repo (https://github.com/OpenSenseNova/SenseNova-Skills) with a one-paragraph brief. It builds a scroll-driven HTML story from video scenes and connector clips.
I nearly triggered a paid batch partway through — I'd assumed approving the concept also approved the spend. There's a second approval right before the first paid batch.
The still stage before video helped. It generates a few stills and checks they match, which let me catch a style mismatch before paying for clips. Only tried it once, though.
If you're building agents that call paid APIs: where do you put the approval gate?
per batch?
per job?
or earlier?
Do you label the two approvals differently in the UI??


r/LLMDevs • • 2h ago

Discussion What do you measure after an agent rewrites its own memory?

1 Upvotes

I maintain Lorevell, an MIT-licensed Markdown memory store. I want to catch cases where a memory rewrite still returns a plausible first hit but knocks the supporting note out of the results the agent actually reads.

In one fixed 20-question run, correct first hits stayed at 17. Top-three hits fell from 19 to 18. The question that regressed asked what prevents consolidation from deleting evidence or changing unrelated files. Its labeled answer, dream-validation, went from third to outside the returned three. archive still came first both times.

You can replay the comparison against the checked-in reports. This compares stored searches and needs no model or API key:

git clone https://github.com/archit15singh/lorevell.git
cd lorevell
git switch --detach 1c78bc33528e30d2f9db63d8c0d9e60639b5bf83
python3 scripts/gate-eval.py docs/evals/real-project/learned-hybrid.json docs/evals/real-project/after-hybrid.json

Exit 1 is expected. This is one maintainer fixture. How do you set the pass/fail threshold when the first hit looks fine but an evidence note drops out of the agent's reading window?


r/LLMDevs • • 2h ago

Discussion Is there an independent benchmark for llms triaging SAST alerts?

1 Upvotes

we have an internal thing where an LLM looks at static analysis findings and marks each one as a real bug or a false positive. On our own sample it looks great. But our sample is also small and probably full of easy cases, so I don't really trust that.

We aree comparing it with Zeropath and Rival. Most of what I've found is vendors publishing their own results. I'd like to give all three the same alerts and see which real bugs they dismiss.

Has anyone used a public dataset for this??? Or if you built your own, how did you label it without tying up a security engineer for a month?


r/LLMDevs • • 2h ago

Resource Speculative decoding with an adaptive draft length: benchmarks and method from Astral Inference Server

1 Upvotes

Hey all, we've been building Astral Inference Server, an open-source LLM inference server for NVIDIA GPUs written in Rust and CUDA, shipped as a single binary. Sharing our benchmark setup and one design choice we think is worth discussing.

Results (Inkling 2 Mini, one H100 PCIe 80GB, batch 1, 512 tokens, greedy, 8,192 context, mean of 32 prompts, single stream over HTTP):

• No speculative decoding: Astral 172.0 tok/s, vLLM 130.2 (Astral +32%), SGLang 135.6 (Astral +27%) • With MTP drafts: Astral 233.3 tok/s, vLLM 209.6 (+11%), SGLang 205.9 (+13%)

Faster single-stream generation means less GPU time per token, which is where most of the serving cost goes.

The design choice: vLLM and SGLang drafted a fixed 7 tokens per round in our runs. Astral adapts between 2 and 6. It grows the draft after a full accept and shrinks it after a reject, so less compute is wasted on drafts the model throws away. Every token is still verified against the target model, so output doesn't change.

This is batch 1 on a single GPU, so it doesn't say anything about high-concurrency serving yet. That's next.

Full method and raw numbers: https://github.com/syntheticminds-lab/Astral-Inference-Server/blob/main/docs/benchmarks/inkling2_mini.md

Curious what draft lengths others run in production, and whether adaptive drafting has helped you.

(Written with AI help, edited and checked by us.)


r/LLMDevs • • 3h ago

Discussion I went looking for retry loops in 30 days of Claude Code logs. They were about 1% of the cost.

1 Upvotes

I assumed retry loops were where our tokens leaked, so I pulled every Claude Code and Codex transcript file touched in the last 30 days off one of our Macs: 44 GB of JSONL, 3,580 sessions with subagents counted inside their parent, 15 Claude Code versions and 12 Codex versions.

Claude Code alone has 33 record types, and Codex counts cached tokens inside input_tokens while Claude Code doesn't. My first Claude Code total was 2.3x too high: it writes a line per content block and repeats the usage on each, with output still growing, so I keep the largest value per message id.

So instead of a parser, every line goes in whole as JSON, typed later in SQL. I ran the Databend community edition in Docker, with raw lines in a VARIANT column and the fields I query pulled into three regular tables.

The loops barely registered. In Claude Code, 310 of 589,590 tool calls repeated the previous call exactly, and calling the same tool again right after an error, changed input or not, came to 0.9% of its cost. Together that's about 1%, $667 of $67k. Edit, test, fail cycles that cross tools aren't in that number.

The money was in long sessions. At Nov 20 list API prices, standard tier, the month is about $89k of API equivalent on our subscriptions, and 98% of tokens were cache reads. The 98 sessions over 1,000 API calls were 77% of the cost, subagents about 60% in both clients, and Read was 15% of tool calls but 87% of the characters in tool results.

What I can't get from the logs yet is how much of that cache read bill is Read output riding along in later turns, since usage is per call, not per message.


r/LLMDevs • • 3h ago

Tools Bercy: an open-source Mac app for passing code review feedback between Codex and Claude Code

Post image
1 Upvotes

I’m the developer of Bercy. It runs on Apple Silicon Macs and connects the agent CLIs you already use. One workflow I built it for is letting Codex make a patch and Claude Code review the actual project files.

The interesting design choice was what to send back when Claude finds a problem. In v0.1.14, Claude writes a return note. Bercy strips the return prefix and passes the first 1,200 characters directly into Codex’s revision prompt, alongside its original assignment and up to 6,000 characters of its own previous delivery. There’s no summarization call in between. That makes it easy to inspect exactly what crossed the boundary, but a long list of findings can get cut off mid-item. The workflow permits two automatic returns.

Bercy is MIT-licensed. The app uses your existing CLI accounts, so any model usage is billed under your provider’s terms.

Repo and demo · Review return handler

Disclosure: I used AI to help draft this write-up and design the cover around a screenshot of the app.


r/LLMDevs • • 6h ago

Discussion Do we really need an LLM call for every task? Our research on structure-first AI execution

1 Upvotes

I'm the authors of KORA, an open-source AI workload control layer.

Instead of sending every request directly to an LLM, we explore whether tasks can be resolved through deterministic execution, cached results, or structured routing before invoking a model.

In our controlled 100-task benchmark:

  • 80% of simulated model calls were avoided.
  • Zero mismatches were observed on deterministic tasks.

This is not a claim of 80% cost savings in production. Real-world workload evaluation remains an important next step.

I'd be interested in hearing how other developers handle unnecessary inference in their AI pipelines.

Paper: https://arxiv.org/abs/2610.35869

Code and benchmarks: https://github.com/Krako-Labs/KORA

Krako Labs: https://krako.xyz


r/LLMDevs • • 7h ago

Discussion Would you accept staged precision to shorten cold starts?

1 Upvotes

I'm James Luan, CTO of Zilliz, which builds Milvus, an open-source vector database for storing, indexing, and searching embeddings. Vector Lakebase extends that foundation into lake-native workflows.

Elastic compute has to fetch cold indexes. Our design reduces that transfer with layered quantization: coarse filtering first, higher-precision refinement afterward. IVF also restricts which clusters a query touches. Reducing transfer does not remove the need for a recall budget.

Those choices require retrieval-quality checks, not just smaller downloads. For occasional corpus exploration, what first-query quality would you require before accepting staged refinement?


r/LLMDevs • • 15h ago

Resource I built a proof-by-exclusion machine using the Riemann hypothesis as a test case. Now I'm making it reusable.

1 Upvotes

TL;DR: I developed an alternative RH proof architecture using Weil–CCM, spectral negativity, Schur-complement rigidity, moment constraints and systematic counterexample exclusion. The Alpöge–Claude arithmetic breakthrough supplies the remaining arithmetic contract, and formal verification of the combined closure is underway. I now intend to generalize the architecture for other mathematical problems.

Back in June, I started working on the Riemann hypothesis. In September, I started building a reusable architecture for AI-assisted mathematical discovery.

The idea is simple: rather than searching for a proof directly, systematically eliminate the mathematical space in which a counterexample could survive.

The architecture operates in four stages:

  1. Fingerprint: Identify the mathematical obstruction.
  2. No-hide: Prevent the obstruction from escaping through changes in representation.
  3. Constrain: Progressively restrict its possible existence.
  4. Exclude: Establish a terminal contradiction.

Interestingly, the Alpöge–Claude arithmetic breakthrough satisfies the remaining arithmetic contract of my independently developed spectral architecture. Formal verification of the combined closure is underway.

But RH was only the test case.

I will be putting together a generalized version of the architecture for anyone wanting to tackle other mathematical problems.

Current repository:
https://github.com/HMarcusWH/zeta-23-lean


r/LLMDevs • • 18h ago

Tools An agent's "done" is a self-report. We open-sourced a tool that checks the DB instead

1 Upvotes

This open-source tool checks your database to see if what the agent claimed actually happened.

You put a decorator on a tool. A separate worker reads the record back from your Postgres (read-only) and marks each action as verified, mismatched, or missing. Real output from the demo:

verified mismatch missing failed
create_booking 4 1 1 1

75a021a2 mismatch start_time: expected 10:00, got 11:00:00
e54edf4d missing not found after 0:00:40

  • python. Postgres built-in, anything else is a small verification function you write
  • Runs in your infra, nothing is sent to us
  • With Langfuse, the verdict lands on the tool call as a score
  • or npx skills add yinoni/verilays and let Claude Code / Cursor wire it in

It's something pretty new, my friend and I just created. Would love to hear your opinion, how is it for you, what you would add, etc.

And if you find value in it, we would appreciate it if you could star the repo and let us know.

The demo is one command: docker compose run --build --rm demo


r/LLMDevs • • 18h ago

Resource Why is LLM inference challenging?

1 Upvotes

When I first heard about inference engines, like vLLM, I wondered what makes inference so challenging. That’s why I decided to learn more about LLM inference from a systems perspective. If you already know how transformers work, then this is a fun topic to explore next.

https://mehrdadmahabadi.com/blog/why-is-llm-inference-hard.html


r/LLMDevs • • 18h ago

Help Wanted I'm building a tool to help beginners run local AI on their own hardware. What would you improve?

1 Upvotes

For my final-year project Im building Jaull a free open-source tool for people starting out with local models. I want to add things people actually need not things I think are cool D: thats why i need some help.

Heres what it does right now:

  1. Checks your CPU, RAM and GPU, then asks a few simple questions about what you want to use AI for.
  2. Searches Hugging Face and recommends up to five models that should fit your hardware, including the exact file to download and why it picked each one.
  3. Estimates memory usage, including the KV cache, and how much context your PC can handle.
  4. Lets you benchmark models to see their actual speed on your machine instead of relying only on estimates.
  5. Can set up a local llama.cpp server, work out the memory and context settings, and give you an OpenAI-compatible API endpoint and key to use with other apps or devices on your network (still WIP).
  6. It can start a llama.cpp server for you with the settings already worked out, and give you an address and API key you can use from other apps, or even from your phone on your home network (still WIP).

It runs on Windows, Linux and WSL2 with NVIDIA, Intel Arc or just the CPU. For now you install it from the terminal, which I know isn't ideal for beginners.

So, what would you add? Some ideas I've had: a proper installer, a roleplay/creative writing category, a simple chat window, or tips like "move your monitor to the integrated GPU to free VRAM". I'm also curious what confused you the most when you started.

I dont want to spam but if u want to take a look: https://github.com/Ton-Llop/Jaull


r/LLMDevs • • 19h ago

Discussion Building a multi-tenant RAG application is more than just connecting an LLM to a vector database

1 Upvotes

I built an independent document intelligence platform using Django, Celery and OpenSearch, and wanted to discuss some of the architectural challenges involved.

The application supports separate client workspaces, shared documents, team management, Google Drive and Microsoft Outlook integrations.

The simplified architecture looks like this:
Connected document sources → Background processing → Search index → Tenant-scoped retrieval → LLM response

Some of the important considerations:

  1. Tenant isolation needs to be enforced during retrieval, not just in the frontend.
  2. Document ingestion should run asynchronously so that large files don’t block API requests.
  3. Updating or deleting a document needs to be reflected in the search index.
  4. External document integrations introduce additional permission and synchronization problems.
  5. Retrieval quality needs to be evaluated separately from the quality of the generated answer.

I used Django for the core application, Celery for background processing and OpenSearch for document retrieval, with support for multiple LLM providers.

One architectural question I’m interested in discussing is tenant isolation at the search layer.

For those who’ve built similar systems, do you prefer separate indexes per tenant or a shared index with strictly enforced tenant-level filters?

How has your approach changed as the number of tenants and documents increased?


r/LLMDevs • • 19h ago

Tools We open sourced our OpenAI-compatible inference server: 32% faster single-stream decode than vLLM

1 Upvotes

Astral Inference Server v2.5 is now on GitHub. It's a drop-in OpenAI-compatible server (/v1/completions, /v1/chat/completions, streaming, tool calls) with the host side in Rust and every kernel hand-written in CUDA.

First numbers, Inkling 2 Mini on one H100 PCIe:

• Plain decode: 172.0 tok/s vs vLLM 130.2 (+32%) and SGLang 135.6 (+27%)
• With MTP speculative decoding: 233.3 tok/s vs vLLM 209.6 (+11%) and SGLang 205.9 (+13%)

One request at a time, 512 tokens, greedy, 8,192 context, mean of 32 prompts. MTP uses the DSpark draft: 7 tokens per round for vLLM and SGLang, adaptive 2 to 6 for Astral.

https://github.com/syntheticminds-lab/Astral-Inference-Server

(Full disclosure, I work on it at Synthetic Minds.)


r/LLMDevs • • 23h ago

News UniQL now lists an open-source schema layer + a Flash model at 64.93% on its Oracle text-to-SQL column (best single-model baseline: 49.61%)

Post image
1 Upvotes

UniQL is a 2026 benchmark that translates BIRD's 1,534 text-to-SQL questions into 16 SQL dialects. Oracle is one of the hardest columns: most LLM-written SQL breaks on Oracle-specific rules before it even runs.

UniQL now lists my project, schemagate, on that column: 996 of 1,534 correct (64.93%), with Gemini 3.8 Flash. For comparison, the best published model row there is Claude Sonnet 4.5 at 49.61%.

Before anyone asks, here's what's different about that comparison:

- My entry uses schema retrieval (the model only sees the tables the question needs) and feeds Oracle's error message back to the model once if a query fails. The model rows are single attempts. First try alone, I get 63.69%.

- UniQL re-audited its gold answers in November. My run uses the new answers; the model baselines haven't been re-run on them yet.

Most of the gain came from two Oracle rules in the prompt, not a bigger model. "FROM account AS a" is invalid in Oracle (no AS before a table alias), and bare DATE or NUMBER as column names need quoting. Those two mistakes caused 651 of the 694 failures in my first run.

It's open source (Apache-2.0). Predictions, evaluator output and a GitHub Actions workflow that reproduces the run: https://github.com/ashishsinha1602/schemagate/tree/main/benchmarks/results/uniql_oracle

Leaderboard: https://jerrygao818.github.io/UniQL/