# RAG development services for answers from your own data

Source: https://www.serverless.direct/rag-development

We build the retrieval system that lets Claude answer from your documents, tickets and records. Each answer shows its sources, and each user only gets what they are allowed to read.

## Why retrieval answers disappoint

- **The right passage never reaches the model.** Documents are split in the wrong places, tables lose their headers, and the search returns text that only looks similar to the question.
- **Answers ignore who is asking.** The index holds HR files, contracts and support notes together. Without access checks, a user can get an answer built from a file they cannot open.
- **Nobody can check where an answer came from.** The answer sounds right but has no link to the source, so a reviewer has to search for it by hand.
- **The index goes stale.** Documents change every day. The index was built once and now answers from old versions.

## What our RAG development services cover

The retrieval part of a Claude feature, from the source systems to the answer your users read.

### Data sources and access rights

We connect the systems that hold your knowledge and carry their permissions into the search.

- Connectors for file stores, wikis, ticketing and databases
- Permissions copied from each source system
- Filters applied before the model sees any text
- Updates and deletions synced to the index

### Chunking and indexing

Your documents are split and stored in a way that keeps their meaning, structure and metadata.

- Splitting rules for each document type
- Tables, headings and lists kept intact
- Metadata such as owner, date and product
- A vector store in your AWS account

### Retrieval and ranking

The search finds the passages that answer the question and puts the best ones first.

- Keyword and vector search combined
- Reranking of the top results
- Query rewriting for short or vague questions
- A limit on how much text each answer uses

### Answers with sources

Claude writes the answer from the retrieved passages and links each claim to the document it came from.

- Source links in every answer
- A clear reply when the data has no answer
- Quality tests on questions from your users
- Cost and response time tracked per request

## How a RAG project runs

We start from real questions your users ask, so every choice can be tested against them.

1. **Collect questions.** We gather real questions and the documents that hold their answers, with the people who know them.
2. **Map the sources.** We list the systems, the document types and the access rules that the search has to respect.
3. **Build and measure.** We build ingestion, search and answers, then measure how often the right passage is found and the answer is correct.
4. **Launch and keep fresh.** We deploy in your AWS account, keep the index in sync with the sources and add new questions to the tests.

## What we work with

- Claude API
- Amazon Bedrock
- Model Context Protocol (MCP)
- AWS Lambda
- AWS Step Functions
- Amazon S3
- Amazon DynamoDB
- Amazon EventBridge
- PostgreSQL
- TypeScript
- Python

## AWS systems we have built

These are AWS projects, not RAG projects. They show the data pipelines and backends that a retrieval system runs on.

- [ELT platform: Rebuilding a platform for data extraction from third-party analytical sources](https://www.serverless.direct/works/elt-platform.md)
  We helped out client rebuild a platform for extracting, analyzing, and visualizing ad performance and marketing data from 3d-party sources.
- [Aggregator platform: Architecture Improvements and Data Migration](https://www.serverless.direct/works/aggregator-platform.md)
  Our team has improved architecture, migrated data, and optimized the performance of the aggregator platform, enabling efficient integration between banks and fintech startups.
  Result: 1.5 sec to 70 msec response time reduction.
- [DemandHelm: Web Platform for Ad Reports Analysis](https://www.serverless.direct/works/demand.md)
  We developed a web platform for DemandHelm, an ad-tech company, to simplify ad report analysis. Our solution included scalable data processing, on-demand resource allocation, and enhanced security.

> They have very deep and in-depth knowledge of the serverless systems. We've been extremely happy with them in terms of the quality of work, and we always stayed within our budget.
>
> Bashir Naimy, CTO, Millnorway

> We are impressed with the great balance between the cost and the quality of execution they've provided.
>
> Matthew Terry, CTO, Nymbus

## FAQ

### What is RAG?

Retrieval augmented generation. Before the model answers, a search finds the passages in your own data that relate to the question, and the model writes the answer from them.

### When is RAG the right approach?

When answers must come from documents that change, are private or are too large to send with every request. If the knowledge fits in one prompt and rarely changes, a simpler setup can be enough.

### How do you stop users from seeing documents they should not?

The index stores the permissions of each source document. The search filters by the user's rights before any text reaches the model.

### Can the answers show their sources?

Yes. Each answer links to the passages it used, so a reader can open the original document and check it.

### How do you measure RAG quality?

With a set of real questions and known correct sources. We measure whether search finds the right passage and whether the answer is correct, and we run the set after every change.

### Where does the data live?

In your AWS account. The index, the documents and the logs stay there, and Claude is called through Amazon Bedrock or the Claude API, whichever your security rules allow.

## Related

- [LLM evaluation](https://www.serverless.direct/llm-evaluation.md): Tests that show an LLM feature is ready to ship and stays that way.
- [AI integration](https://www.serverless.direct/ai-integration.md): Claude inside the product and systems you already run.
- [AI agent development](https://www.serverless.direct/ai-agent-development.md): An agent that runs one business process in your AWS account.

## Tell us which documents Claude should answer from

Describe the sources, who needs the answers and a few sample questions. Kyrylo replies with the next steps.

## Contact
- Email: hello@serverless.direct
- Book a call with Kyrylo Kozak, Founder and CEO: https://meetings-eu1.hubspot.com/kyrylo-kozak
- Website: https://www.serverless.direct
