SPC-12 / Service

RAG Development Services

RAG development services connect a knowledge assistant to approved documents so it can retrieve relevant passages before drafting an answer. For support teams, operations leaders and product owners, the outcome is a searchable knowledge workflow with traceable sources, explicit access boundaries and a way to measure where answers still fail.

System designSPC-12
Allowed sourcesRetrieve + citeReview answer
  • Python or TypeScript retrieval services
  • PostgreSQL and permission-aware search
Illustrative workflow. Scope and controls agreed for your project.

01 / Scope and delivery

Which documents can a RAG system safely use?

A RAG system should use documents your organisation is entitled to process and its intended users are allowed to read. Start with a maintained collection, clear source ownership and representative questions. Public availability, a shared folder or a successful upload alone does not establish permission to use sensitive content.

A practical starting collection could be an approved support handbook, product documentation or internal operating procedures. Review duplicated versions, scanned pages, tables and attachments before indexing. Assign somebody to resolve conflicting policies. If the authoritative answer is unclear to staff, a model should not silently choose a policy for them.

Live account balances, stock levels and bookings usually need a controlled API lookup because the latest value matters. Document retrieval can explain a policy while a separate tool supplies current transaction data. Keeping those responsibilities explicit makes failures easier to diagnose and prevents an old document from becoming an operational record.

02 / Scope and delivery

How do access permissions and source citations work?

Authorisation belongs in the retrieval path before source text reaches the model. The application identifies the user, restricts search to permitted material and attaches citations to the passages used. A citation helps someone inspect evidence; it does not prove that an answer is correct or that access controls worked.

Carry document and tenant identifiers through ingestion, search, logs and caches. Test whether a user from another team can retrieve a restricted passage, including through an old conversation or cached answer. Define how revocation affects the index, previously stored responses and support logs. A system prompt is not an access-control mechanism.

Citations should point to an identifiable document version or section that the viewer can open. If several passages disagree, the assistant should expose the uncertainty or escalate. Retrieved content is untrusted input, so instructions embedded in a document cannot grant new tools or change the user’s permissions.

03 / deliverables

What deliverables will your knowledge team receive?

The agreed handover includes a source inventory, retrieval implementation, evaluation questions and operating instructions. These deliverables make the system inspectable beyond a demonstration chat. Scope names the included collections, roles and refresh paths, along with what your team must maintain and which changes require another evaluation before release.

Acceptance should include evidence that a permitted user can find the right passage, a restricted user cannot retrieve it and an unsupported question receives an appropriate response. The deliverable is a working retrieval workflow with known limitations. It is not a promise that every possible question will produce a reliable answer.

Source inventory

A map of included collections, their owners, refresh rules and excluded material. Each source has an agreed permission boundary and a reliable identifier so changed or withdrawn content can be found again.

Retrieval pipeline

Ingestion, parsing, document segments, metadata and search configuration. The implementation preserves the context needed to interpret a passage, including source version and section, rather than treating every fragment as independent truth.

Answer evaluation

A review set with expected evidence, acceptable answers and examples that should receive no answer. Results separate retrieval misses from unsupported generation so the next improvement has a clear target.

Operational handover

Repository, configuration, source-refresh instructions and a runbook for failures. Your team can inspect retrieval traces, revoke a source and rerun the agreed checks before changing the model or document collection.

04 / Scope and delivery

How is retrieval and answer quality measured?

Measure retrieval and answer generation separately using questions written with your subject owners. First check whether search returns the evidence needed to answer. Then review whether the response follows that evidence, cites it accurately and declines unsupported requests. Record failures by type so improvements target the actual source of error.

Include ordinary wording, abbreviations, ambiguous requests, missing documents and access-denied cases. Reserve some questions for review after tuning, otherwise a system can appear better simply because it was adjusted to the test examples. Compare changes on the same document snapshot and keep the model, prompt and search configuration with the results.

Review latency and usage alongside quality. A second retrieval pass may help one question and add delay to many others. Choose acceptance thresholds with your reviewers before rollout, then sample real questions with appropriate privacy controls. No accuracy percentage is promised without an agreed dataset and measurement method.

05 / Scope and delivery

When is RAG the wrong approach?

RAG is a poor starting point when the underlying information is unreliable, access rights cannot be established or a direct database query already answers the question precisely. It is also insufficient for workflows that require actions. Retrieval can supply context, but it does not replace transaction validation, approvals or source maintenance.

A small, stable FAQ may work well with ordinary search and carefully written answers. A calculation should use a validated calculation path. If your goal is to route requests across models, that belongs to LLM integration. If the system must change a record or coordinate several tools, the agent workflow needs its own controls.

06 / process

How does the process determine the delivery timeline?

Delivery follows source review, a retrieval baseline, controlled answer generation and a limited release. The timeline depends on access approvals, document quality, role complexity and the availability of reviewers. We agree milestones against those dependencies, with a review point before the collection or audience expands beyond the initial scope.

Bring a sample collection, the questions people struggle to answer and a list of user roles. Identify the person who can approve answers and the person who can authorise data access. These inputs let us distinguish engineering time from waiting for permissions, policy decisions or document corrections.

  1. Review access and content

    Confirm one audience, one collection and a responsible content owner. Access approval and representative sample questions come before implementation. Incomplete permissions or unmaintained policies are recorded as blockers rather than hidden inside the build schedule.

  2. Build a retrieval baseline

    Load a limited collection, retain source metadata and compare search results with the evidence reviewers expect. Establish a repeatable baseline before adding complex ranking or generation. Review incorrect passages together with the people who know the material.

  3. Add answers and controls

    Connect the selected model, show citations and handle missing evidence explicitly. Test access across roles, stale documents and misleading instructions inside retrieved text. Approval to broaden the audience depends on the agreed review results.

  4. Release and transfer operations

    Run a controlled release, observe unanswered questions and document refresh behaviour. Agree the calendar after source access and evaluation responsibilities are known. A pilot schedule and any production expansion are scoped separately, with time for your reviewers to respond.

07 / technology

Which technology supports retrieval and handover?

The stack can combine Python or TypeScript services, PostgreSQL, a search index and an agreed language model. Tool selection follows document structure, access rules and operating needs. Your existing identity provider and hosting environment matter more than choosing a vector database before anyone has inspected the content or questions.

Index configuration, embedding choices and document-processing tools are agreed during scoping. The handover explains how to rebuild the index, change a source and inspect failed ingestion. Model keys remain on the server. Search metadata must retain enough context to enforce permissions and trace an answer back to its evidence.

08 / Scope and delivery

What affects the scope and cost of a RAG project?

Source preparation, access boundaries, refresh frequency and evaluation effort determine scope. A focused document assistant can use the existing assistant budget band when its requirements match that offer. Multiple repositories, complex permissions, scanned archives or actions through business systems need a separate scope instead of assuming that every retrieval project is equivalent.

Our published simple-assistant band is USD 5,000 to 25,000. It is context for a matching document assistant, not a quote for an enterprise search programme. Hosting, model usage, source subscriptions and ongoing content review are separate considerations. We agree the included work and acceptance conditions before a project begins.

What else should you know before starting?

These answers cover common decisions before an engagement begins. Use them to prepare your brief, identify the people who need to review the work and separate implementation responsibilities from your internal decisions. Any additional requirements become part of the written scope before delivery starts.

Will RAG train a model on our documents?

Retrieval supplies selected passages at request time; it does not by itself train model weights. The chosen provider’s data handling, storage and retention settings still need review. We agree what may leave your environment and what belongs in logs before connecting a document source.

Can we start with a single department?

Yes. A bounded audience and maintained collection make a useful starting scope. Include realistic permission differences even in a small pilot. Expansion should follow an evaluation of the first collection rather than automatically granting every department access to the same index or stored conversations.

How are outdated documents removed?

The source owner and refresh design determine how changes and deletions propagate. We document index updates, cached answers and retained traces separately. Acceptance includes withdrawing a test source and checking that new retrieval requests cannot continue using the removed material.

Which related services could your project need?

Choose the next service around the work that remains after this engagement. The links here cover closely connected implementation and decision support. Share your existing systems and intended outcome so we can identify the right starting point and avoid paying for overlapping scopes or unnecessary changes.

Your next step

How do you discuss a scoped project with MLChronix?

Bring one concrete workflow, the systems involved and the decision you need to make. We will discuss access, dependencies, deliverables and acceptance criteria, then agree the next step. A useful first conversation can also conclude that an existing tool or a smaller change is sufficient.

MLChronix is a remote company founded in 2020, specialising in AI and software development. It provides AI consulting, technology and software consulting, AI agents, chatbots, voice agents, workflow automation, LLM integration, web development, mobile apps and custom software for startups and businesses in the United States, the United Kingdom, the United Arab Emirates, Belgium, Australia, Norway, Saudi Arabia, Qatar, Ireland, the Netherlands and other markets.

Talk with MLChronix about your requirements