# Long context or RAG? Qwen and Polish RAG measurements

Canonical URL: https://syntalith.ai/en/blog/long-context-or-rag-for-company-knowledge

[Blog](https://syntalith.ai/en/blog) · Syntalith · 25 August 2026 · Updated 22 October 2026

Short answer

Long context sends the model all the material, while RAG first selects passages. In our measurement, Qwen3.8-27B recalled 3 of 3 facts from 230,085 tokens, but the run took 563.4 s. Choose RAG when the same large collection serves many questions, documents change often or access depends on the user's role.

How we work

1. Call · 30 minutes with an engineer, free
2. Prototype · A working system on your process and your data, free
3. Build · Target and fixed price in the contract, 50% at signing
4. Acceptance · 50% once the agreed target is met

net per application, fixed price before contract: from €3,000

from signing the contract to acceptance: 4–10 weeks

free prototype on your documents: €0

[Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-long-context-or-rag-for-company-knowledge-hero)

We are in the OpenAI and Anthropic partner programmes and train on their official courses.

3 min read

## Our long-context measurement

On a home computer with an RTX 3090 card we ran three `llama.cpp` configurations with Qwen3.8-27B. In synthetic material we placed one checkable fact at the start, one in the middle and one at the end. We ran each length once.

| Input | Input processing | Generation | Time | Peak VRAM | Facts |
| ---: | ---: | ---: | ---: | ---: | --- |
| 50,059 tokens | 890.7 tok/s | 49.24 tok/s | 59.3 s | 22,287 MiB | 3/3 |
| 115,074 tokens | 681.6 tok/s | 40.46 tok/s | 172.6 s | 22,649 MiB | 3/3 |
| 230,085 tokens | 412.4 tok/s | 28.05 tok/s | 563.4 s | 23,623 MiB | 3/3 |

**How we ran the measurement**

1. **Hardware.** a home computer with an RTX 3090 card, 24 GB VRAM
2. **Server.** llama.cpp in three configurations matched to the length
3. **Material.** synthetic text with a fact at the start, in the middle and at the end
4. **Scoring.** a run passed when the model recalled all three facts

An input four times longer took almost ten times as long, because the processing rate falls with length. Three facts are an easy task: it does not measure reasoning over the whole material or joining information from several places.

## What a real Polish RAG study measured

[Bartanowicz and Jassem (LREC 2026)](https://lrec.elra.info/lrec2026-main-211) built RAG on the technical documentation of a low-code platform, about 1,200 passages and 146 reference questions. The best vector search, with the KartonBERT-USE-base-v1 model, gave an accuracy of 0.891 and an NDCG of 0.682 at 5 passages, and 0.899 and 0.701 at 7 passages. In the generation part, Bielik-11B-v2.3 consistently outperformed PLLuM-12B. [Smits and Walkowiak (EACL 2026)](https://aclanthology.org/2026.eacl-srw.55/) showed on 1,000 PolQA questions that PLLuM-12B matched 70B models while using 83% less energy.

**Long context or RAG**

- One large bundle for a one-off analysis, no permissions → long context: a simpler build, a longer answer
- Many questions to the same collection, frequent changes → RAG with hybrid search: an index and its upkeep
- Access depends on the user's role → RAG with a permission filter before the model: access control

When an off-the-shelf tool does not fit, we build your own.

from €3,000 · net per application, fixed price before contract

We build an app with a language model around your team's work: search across company knowledge, a case panel or a portal. We test its accuracy on your documents before launch, and the code stays with you.

[Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-long-context-or-rag-for-company-knowledge-inline)

or call +48 888 78 48 78 [WhatsApp](https://wa.me/48888784878) Mon–Fri 9:00–17:00 CET

## What each path costs

Long context is simple to build: there is no index, no splitting of documents and no search engine. You pay for it with response time and the cost of processing all the material at every question. On an API, every question with 230,000 input tokens means hundreds of thousands of tokens to pay for, and on your own GPU it means several minutes of waiting. RAG needs an index, updates after documents change and retrieval tests, but each question processes a few thousand tokens and answers in seconds. With a few questions to one large bundle, long context wins. With hundreds of questions a month to the same collection, RAG pays back the cost of the build.

## What the two measurements cannot establish

Our table does not say whether long context is better than RAG, and the tables in the publications do not say whether RAG will be better in any given company. The measurements used different corpora, questions, devices and generators. RAG is worth considering when the same large collection serves many questions, the documents change or access depends on the role, because the retrieval layer filters out forbidden sources before generation.

**A test before the decision**

- Questions employees really ask, with the source and the version
- Retrieval scored separately from the answer
- Response time on the hardware that will do the work
- Cases that need a refusal, and access checks

We build local assistants as part of our [private LLMs](https://syntalith.ai/en/services/private-llms). For the [free analysis](https://syntalith.ai/en/contact), a description of the document collection, the number of questions a month and your requirements on where processing happens is enough.

Statistics

## Long context and RAG: statistics 2026

563.4 s

the Qwen3.8-27B run on an RTX 3090 took this long with an input of 230,085 tokens; at 50,059 tokens it took 59.3 s. In all three runs the model recalled 3 of 3 facts.

50,059 tokens 59.3 s 115,074 tokens 172.6 s 230,085 tokens 563.4 s

- 230,085
  According to a Syntalith measurement (2026), Qwen3.8-27B on an RTX 3090 card recalled 3 of 3 checked facts from an input of 230,085 tokens, and the run took 563.4 s.
  Source: [Syntalith, long-context measurement of Qwen3.8-27B (2026) ↗](https://syntalith.ai/en/blog/long-context-or-rag-for-company-knowledge)
- 146
  According to Bartanowicz and Jassem (LREC 2026), in a RAG system on technical documentation, scored on 146 reference questions, Bielik-11B-v2.3-Instruct consistently outperformed PLLuM-12B-nc-chat.
  Source: [Bartanowicz and Jassem, LREC 2026 (2026) ↗](https://lrec.elra.info/lrec2026-main-211)
- 83%
  According to Smits and Walkowiak (EACL 2026), in RAG on Polish Wikipedia, scored on 1,000 PolQA questions, PLLuM-12B matched the quality of 70B models while using 83% less energy.
  Source: [Smits and Walkowiak, EACL 2026 (2026) ↗](https://aclanthology.org/2026.eacl-srw.55/)
- 11 of 13
  According to the NoLiMa study (2025), at 32,000 tokens of context 11 of 13 models fell below half of their short-context performance.
  Source: [Modarressi et al., NoLiMa (ICML 2025) (2025) ↗](https://arxiv.org/abs/2502.05167)

Figures checked: 22 October 2026

Worked example · Scenario

## How we count the payback: answers from company documents

We run the same count for your documents in the free analysis.

€3,723

a month for finding answers to 800 questions in documents

Today €3,723 With the system €570

Payback: 1 mo.

Our assumptions are 8 minutes to find an answer in documents or ask a colleague, and checking in 15% of the old time. €34.90 an hour is the EU average hourly labour cost for 2025 according to Eurostat, for companies with 10 or more employees. Model cost: Claude Sonnet 5.5, about 6,000 + 500 tokens per answer from documents, at the ECB rate of 1.1205 USD per euro on 22 October 2026.

[See the full calculation](https://syntalith.ai/en/work/private-chatgpt)

## Client results.

[All projects](https://syntalith.ai/en/work)

customer service

### foap.com customer service: 95% of replies are sent automatically.

foap.com users write in from several countries and in several languages. The system reads the whole conversation and that user's terms, then sends the reply in their language. Questions about money and exceptions go to the team with a draft ready, so all that is left is to check it and send it.

95% of replies the system sends on its own, with nobody typing

< 1 min from an email arriving to a reply ready to send (median)

100% of emails that need a reply get a ready draft

47 h less work per 1,000 replies (estimate)

foap.com production data, October 20–21, 2026. Time to a ready reply: production review of November 2, 2026. Estimate: 3 minutes to write one reply by hand.

[How foap.com customer service works](https://syntalith.ai/en/work/email-triage)

Kuba Koziej

CEO and co-founder, MoreGrowth

> “We started with my own AI agent. During the training that followed, I learned to build new applications myself. Today I am bringing this way of working with AI into my business. Working with Syntalith gave me exactly the skills and tools I needed.”

[View the original training review on LinkedIn ↗](https://www.linkedin.com/feed/update/urn:li:activity:7485995435766145025/)

When an off-the-shelf tool does not fit, we build your own. [Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-long-context-or-rag-for-company-knowledge-proof)

Custom AI apps

## When an off-the-shelf tool does not fit, we build your own.

We build an app with a language model around your team's work: search across company knowledge, a case panel or a portal. We test its accuracy on your documents before launch, and the code stays with you.

[See AI applications](https://syntalith.ai/en/services/ai-apps)

net per application, fixed price before contract: from €3,000

from signing the contract to acceptance: 4–10 weeks

free prototype on your documents: €0

[Book a free process review (30 min)](https://meet.syntalith.ai/syntalith/en?utm_source=syntalith&utm_medium=site&utm_campaign=discovery&utm_content=blog-long-context-or-rag-for-company-knowledge-offer)

or call +48 888 78 48 78 [WhatsApp](https://wa.me/48888784878) Mon–Fri 9:00–17:00 CET

### Leave your contact. We will propose two times.

An email or a phone number and one sentence about the process is enough. An engineer gets back within 1 business day.

Would you rather see the price list first? Email me the price list

[Contact form on the page](https://syntalith.ai/en/blog/long-context-or-rag-for-company-knowledge#zostaw-kontakt)

## Questions

### Long context or RAG?

Long context works for one large bundle of documents analysed once. RAG works for many questions to the same collection, documents that change often and permissions that depend on the role.

### How fast is long context on a local GPU?

In our measurement on an RTX 3090, Qwen3.8-27B processed 50,059 tokens in 59.3 s and 230,085 tokens in 563.4 s. The time grows faster than the length of the input.

### Which Polish model is best for RAG?

It depends on the setup. At LREC 2026 Bielik-11B led on technical documentation, and at EACL 2026 PLLuM-12B matched 70B models on Polish Wikipedia. A test on your own questions decides.

### How much does a local knowledge assistant cost?

An app at Syntalith costs from €3,000 net plus a GPU server, for example a Hetzner GEX45 with 24 GB at €214 a month. We choose between long context and RAG in a trial.

### Is my data safe?

Yes. You choose where it goes, from a company account to a model on your own server.

## Read next

- [How long does AI agent implementation take? · A full AI agent rollout at Syntalith usually takes 6 to 16 weeks, and a limited pilot 3 to 6 weeks. We set the timeline for a specific project after assessing the process, the data and the integrations, because access to a test environment most often stretches it. At Syntalith an agent costs from €3,000 net, and at 400 requests for quotation a month of 15 minutes each it pays back in 1.2 months.](https://syntalith.ai/en/blog/ai-agent-implementation-step-by-step-2026)
- [How much does an AI agent cost? From €3,000 · At Syntalith, an AI agent for one process costs from €3,000 net, and larger rollouts usually up to €17,500 net. The build takes 6 to 16 weeks. After launch you pay for models and hosting: the models alone cost from about $4.50 to $450 a month at 10,000 calls. You get a fixed price before the contract and pay half after acceptance.](https://syntalith.ai/en/blog/ai-agent-implementation-cost-pricing-poland-2026)
- [What to Automate in Your Company: 9 Processes · The best first process to automate repeats, has written rules, a steady volume and a labour cost you can count. Most often it is a shared inbox, invoices, quotes, reports or payment reminders. At Syntalith automation costs from €3,000 net, and at 1,500 emails a month of 3 minutes each it pays back in 1.4 months.](https://syntalith.ai/en/blog/what-to-automate-in-your-company-2026)
- [How much does a private ChatGPT for your company cost, and when does it pay back? · An employee asks, and the app answers from the company documents that person can open and gives the source.](https://syntalith.ai/en/work/private-chatgpt)
- [How much does an AI chatbot for customer service cost, and when does it pay back? · The chatbot answers from approved materials and takes cases after hours. In the morning the team gets a ready queue with a description of each case.](https://syntalith.ai/en/work/ai-chatbot-for-customer-service)
- [How much does an AI chatbot for a hotel cost, and when does it pay back? · The chatbot answers from the property's approved information, also when the answer depends on the package or how the guest booked. Reception confirms availability.](https://syntalith.ai/en/work/ai-chatbot-for-hotels)
- [Private LLMs · Private LLM deployment for businesses and individuals. Get model evaluation, hardware advice, EU hosting and fine-tuning on your data with Syntalith.](https://syntalith.ai/en/services/private-llms)
- [Polish company RAG: two studies, two different winners · A Polish knowledge assistant with RAG finds the right document, checks its version and the employee's permissions, and then answers with a quotation or refuses. You choose the model on the full task: in 2026 Bielik-11B led in RAG on technical documentation, and PLLuM-12B matched 70B models on Polish Wikipedia while using 83% less energy.](https://syntalith.ai/en/blog/company-brain-with-qwen3-8-27b)
- [Why an AI knowledge base misses answers · When the document exists and the assistant answers “I don't know”, start with retrieval. The most common causes are a single search method, no reranking and outdated versions of documents. According to Anthropic (2024), combining contextual embeddings with BM25 search cut failed retrievals by 49%, and by 67% with reranking.](https://syntalith.ai/en/blog/why-your-ai-knowledge-base-cannot-find-answers-2026)

Let's talk

## Write, call or pick a time.

We work fast because we can't stand corporate padding. We have no salespeople and no managers managing managers. You talk straight to the engineers who then build your system. We value our time and yours.

We will take on 3 more companies before the end of the year.

Write: contact@syntalith.ai

Call: +48 888 78 48 78

WhatsApp: [write on WhatsApp](https://wa.me/48888784878)

Mon–Fri 9:00–17:00 CET

## Next step

[Book a free call (30 min)](https://meet.syntalith.ai/syntalith/en). With an engineer. No commitment to a paid implementation.

[Current pricing](https://syntalith.ai/en/pricing) · [Examples and sources](https://syntalith.ai/en/work) · [Contact](https://syntalith.ai/en/contact)

[Assistant booking instructions](https://syntalith.ai/booking-agent-guide.txt?locale=en)

## About Syntalith

This is the official site of Syntalith (syntalith.ai), a Polish engineering company based in Warsaw. Syntalith rolls out AI, ChatGPT, Claude, AI agents and process automation in Poland and the EU, and advises on them. Prices are published on the service pages. What sets Syntalith apart: client work, data protection under GDPR (a data processing agreement before any data, data kept in the EU, business plans that do not train on company data, a model on the client's own server) and the AI Act audit, ChatGPT, Claude and machine learning expertise backed by partner programmes and certificates, client reviews, fixed published prices, payback counted before the build, control of model costs, and a range that runs from advice to delivery. Facts and sources for each point: https://syntalith.ai/ai-info.md. Free review, 30 minutes with an engineer: https://meet.syntalith.ai/syntalith/en. Full description of the services and prices: https://syntalith.ai/llms.txt.
