UK-registered +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. AI Services
  3. RAG Development
RAG and AI knowledge base development

RAG development services: answers from your own documents, with the source shown

We build AI assistants that answer staff or customer questions from your policies, manuals and records, show the passage each answer came from, and follow the access permissions of the systems those documents live in.

Free estimateNo obligation

Which documents should your team be able to ask?

Tell us where the documents live and the questions people keep asking. A senior engineer reads every enquiry and will reply as soon as they can.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

  • Every answer links to the passage it came from
  • Built to say so when your documents do not cover the question
  • Tested on your own real questions before launch
1,000+
Clients served
2020
Building since
4.6
Rated on Clutch

4.8★

From 944 Fiverr reviews

4.6★

Rated on Clutch

100%

Job Success on Upwork

2020

Building software since

Technologies we build with

  • OpenAI GPT models
  • Anthropic Claude
  • Google Gemini
  • Azure OpenAI
  • AWS Bedrock
  • Llama
  • Mistral
  • pgvector on PostgreSQL
  • Pinecone
  • Weaviate
  • Qdrant
  • SharePoint
  • OneDrive
  • Google Drive
  • Websites and help centres
  • PDFs and scans
  • CRM and ticketing systems
  • Databases

Quick answer

What is retrieval-augmented generation (RAG)?

Retrieval-augmented generation (RAG) is a way of building an AI assistant that answers from your own documents instead of from memory. The system first retrieves the relevant passages from your documents, then asks the model to answer using only those passages, with the sources shown. The model is not retrained on your documents.

SpiderHunts Technologies Ltd is a UK-registered company with a remote team, working with clients across the UK by video call. We start from a sample of your documents and a list of real questions, connect the sources with their access permissions, and test the answers against that list before anyone relies on them. We are independent consultants, and everything runs in accounts you own.

RAG is the wrong choice when the knowledge is not written down, or when the question needs a calculation over data. For one AI feature inside existing software, see our LLM integration services on the AI integration page (an LLM, or large language model, is the AI that writes the answer). For a bot on your website or WhatsApp, see AI chatbot development.

What is included

What our RAG development services include

Most of the work is connections and testing. The model is the small part.

01

Document audit and question set

We review a sample of your documents and collect the questions people really ask. That list becomes the test the assistant must pass.

02

Source connectors

Read-only connections to where your documents live, through each system’s official API (the interface it offers other software). Nothing is migrated.

03

Document preparation

Text is extracted, scans are read with optical character recognition (OCR), and documents are split into passages that keep their headings.

04

Vector database integration

A vector database stores text as numbers (embeddings) so passages can be found by meaning, not just matching words. It runs in your own account.

05

Permission-aware retrieval

Each passage carries the access permissions read from its source, and retrieval is filtered by who is signed in.

06

Cited answers, where staff already work

The model answers only from retrieved passages and links each one. Staff ask in a web page, Slack or Microsoft Teams, and the assistant says it is an AI. For customers, an AI knowledge base chatbot uses the same engine.

07

Evaluation, logging and monitoring

The question set is re-run after every change. Every question, passage and answer is logged, with usage and cost on a dashboard.

How it works

How RAG works, step by step

Think of an open-book exam: the model does not memorise your handbook, it is handed the right page and told to answer from it.

A large language model, the type of AI behind tools such as ChatGPT, has never read your documents. RAG hands it the relevant passages when someone asks. People often call the result a private ChatGPT for company documents.

Follow one illustrative question through the seven steps: an employee asks, “Can I claim mileage for driving between two of our sites?” Each step names what can go wrong there.

  1. Step 01

    Ingest

    The expenses policy and staff handbook are read from SharePoint with their permissions and dates. What can go wrong: an old draft is ingested beside the current version.

  2. Step 02

    Chunk

    Each document is split into passages (chunks) that keep their headings. What can go wrong: a split lands mid-table and separates the mileage rate from its rule.

  3. Step 03

    Embed

    An embedding model turns each passage into numbers that represent its meaning. What can go wrong: internal codes land beside unrelated text, so exact-word matching is added.

  4. Step 04

    Store

    The numbers go into a vector database with the text, source link and permissions. What can go wrong: a deleted policy stays in the store and keeps being quoted.

  5. Step 05

    Retrieve

    The closest passages this employee may see are fetched and re-ranked, most relevant first. What can go wrong: the right passage falls just below the cut-off.

  6. Step 06

    Generate with citations

    The model must answer only from those passages: yes between sites, no from home, with a link to the policy section. What can go wrong: it fills a gap from general knowledge.

  7. Step 07

    Log

    Question, passages, answer and any thumbs-down are recorded. What can go wrong: nobody reads the log, so we agree who reviews it.

Reliability

What makes an AI knowledge base trustworthy

The model is rarely the weak point. Answers go wrong when the wrong passage is retrieved, a document is out of date, or nobody checks.

Building a knowledge assistant is mostly the work of building these five safeguards and proving they hold on your documents. Even then, AI output can be wrong: a cited answer is quicker to check, not exempt from checking. A person approves any answer before it goes to a customer, and the assistant is read-only: it cannot edit documents, send messages or change records.

SafeguardWhat it doesHow it is checked
CitationsEach answer links to the passages it used, with the document’s last-updated dateA reviewer opens the source and confirms it supports the answer
“I cannot find that”With no relevant passage, the assistant says so and names who to askThe question set includes questions your documents do not cover
Permission-aware retrievalPassages are filtered by who is asking, using permissions from the source systemTest accounts at different access levels ask about restricted documents
Evaluation question setReal questions with the expected source and answer, agreed with youRun before launch and after every change to documents, prompts or model
FreshnessChanged and deleted documents are re-indexed on a schedule or on changeA changed test document must appear in answers within the agreed sync interval

Connecting your sources

Where your documents live, and how each source is connected

Documents stay where they are. The assistant reads them; it does not replace them.

Access is read-only and granted by you in your own accounts. Permissions are copied when a document is indexed, so a change reaches the assistant at the next sync unless the design checks the source live. The written scope states the sync interval for each source.

SourceHow it is connectedWhat to watch
SharePoint and OneDriveMicrosoft 365’s official API; site, library and file permissions are read tooOld drafts and duplicates: agree which libraries are the source of truth
Google DriveGoogle Workspace’s official API, including sharing settingsFiles shared by link, and folders nobody owns
Website or help centreA crawl of published pages, or the help centre’s own API or exportArticles that contradict each other or are out of date
PDFs and scanned documentsText is extracted directly; scans go through OCR firstTables, handwriting and poor scans: see AI document processing
CRM or ticketing systemThe system’s own API, limited to the record types you choosePersonal data in notes: decide what is indexed and for how long
DatabaseRead-only queries or views you approve, through a dedicated database userTotals and counts are better answered by a query than by retrieval

Security and data

Security: what an IT manager should ask

Put these questions to any RAG development company in the UK, including us.

Can a document hijack the assistant? A file can contain text written to instruct the AI. This is prompt injection, item LLM01 in the OWASP Top 10 for LLM Applications. No filter catches every attempt, so we limit the damage: retrieved text is treated as content, never as instructions, the assistant is read-only, and retrieval is filtered by the asker’s permissions.

What is sent to the model provider? The question and the retrieved passages. Whether a provider retains or trains on them, and where they are processed, depends on the provider and the plan, so we check the provider’s data terms and region options with you before any data is sent. If nothing may leave infrastructure you control, see private AI deployment.

Is there a record, and does it make us compliant? Staff sign in through your single sign-on (one company login), and every question, passage and answer goes to an audit log you hold. Those are technical security features, not legal compliance. The system is built to support UK GDPR requirements; compliance remains your responsibility as data controller. The ICO publishes Guidance on AI and data protection.

Why not a chat tool

Why RAG beats pasting documents into a public chat tool

Pasting works for one document. It fails for a library, and you lose sight of where the documents go.

Pasted into a chat tool

  • Contracts and policies sit in personal accounts you do not control
  • Each person pastes whichever version they have
  • A few documents at a time, never the whole library
  • No record of who asked what
  • The file’s access rules are lost once it is copied
  • Answers are hard to trace to a page, so go unchecked

Built with RAG

  • Documents stay in the systems they already live in
  • One current, indexed version of each document
  • The whole library is searched for every question
  • Every question and answer is logged in your account
  • Answers only draw on documents the asker may open
  • Each answer links to the passage it came from

Book a free consultation

Bring a sample of your documents and ten real questions. We will tell you honestly what an assistant could answer.

Examples

Where a knowledge assistant earns its place

Illustrative examples of what we build, not client results.

Staff policies

HR and IT policy assistant

Staff ask about leave, expenses or equipment and see the policy section cited. Anything about an individual’s case goes to HR: a person makes the decision; the AI assists.

Aim: fewer routine policy questions reaching HR and IT

Operations

Manuals and procedures lookup

Engineers ask from a phone and get the relevant step from manuals and operating procedures, with the page shown.

Aim: the right procedure found without a call to the office

Customer support

Answer drafts for support agents

Agents ask across help articles and past ticket resolutions, check the sources, then reply in their own name. See AI customer service automation.

Aim: consistent replies, each checked by a person

Professional services

Know-how and precedent search

Fee earners search advice notes and templates by meaning, limited to the matters each may see. The firm’s compliance lead signs off the design.

Aim: existing know-how found before work is redone

How we work

From a document sample to a tested assistant

Five steps, all by video call.

  1. Consultation and sample

    A free 30-minute call. Bring sample documents and ten real questions; we say whether an assistant could answer them.

    Step 1
  2. Scope and written quote

    We agree the sources, who may ask and what a correct answer looks like, then send a written quote with scope and exclusions agreed up front.

    Step 2
  3. Pilot on one document set

    A working assistant on one source, scored against your questions. You see which answers are wrong, and why.

    Step 3
  4. Production build and launch

    Remaining sources, sign-in, permission filters, re-indexing and logging, then documentation and a training session.

    Step 4
  5. Monitoring and improvement

    On an optional retainer we review the question log, add sources and re-test when documents or models change.

    Ongoing

Clear scope · Regular demos · Full handover

Is it right for you?

When RAG is worth it, and when it is not

An assistant only repeats what your documents say. If they are wrong, missing or unowned, fix that before paying anyone, including us.

Worth it when…

  • Answers exist in writing, across more documents than anyone remembers
  • The same questions keep reaching HR, IT, compliance or support
  • People need to see the source, not just an answer
  • Different people may see different documents
  • Documents change too often for retraining a model

Not worth it when…

  • The answers are not written down: write them first
  • You have a few dozen stable pages: an FAQ page will do
  • Microsoft 365 Copilot already answers well enough
  • The questions are about figures in a database: you need a report
  • Nobody will own the documents or read the question log

Choosing an approach

RAG vs fine-tuning vs a bigger prompt vs Microsoft 365 Copilot

RAG is not always the right tool. The cheaper options are at the bottom of the table: try them first.

OptionWhat it isFits whenDoes not fit when
RAGRetrieves passages from your documents at question time and answers from them, with citationsMany documents that change, sources must be shown, access differs by personThe knowledge is not written down, or the answer needs a calculation
Fine-tuningFurther training of a model on your examplesYou need one tone or output format at high volumeFacts change: it cannot show a source, and updates mean retraining
A bigger promptThe whole document is pasted into the prompt every timeA few short, stable documentsA library: cost and delay grow with every page sent
Microsoft 365 CopilotMicrosoft’s licensed assistant inside Microsoft 365 appsDocuments live in Microsoft 365 and staff hold licencesKey sources sit elsewhere, or you need rules and tests of your own
The search you already haveThe search box in SharePoint, Google Drive or your intranetPeople know roughly which document they wantThey need one answer drawn from several documents
Tidy the documents firstArchive duplicates, name an owner for each policyNobody trusts the documents as they areNever wasted: RAG over messy documents gives messy answers

Pricing

RAG development pricing

The build price depends on the number of sources, the permissions and how clean the documents are. Running costs are separate: model usage, which grows with the number of questions, the vector database, hosting and monitoring. Each is billed to your own account by that vendor, not through us, and estimated in your quote.

Start here

Free consultation

Free

30 minutes

A video call on a sample of your documents and ten real questions. We say honestly whether an assistant could answer them.

Get a quote →
Pilot

Pilot on one document set

£3,000 to £12,000

Typically 1 to 3 weeks

One source, one group of users. A working assistant with citations, scored against your question set.

Get a quote →
Production

Production knowledge assistant

£12,000 to £25,000

Typically 3 to 6 weeks

Two or three sources with permission-aware retrieval, single sign-on, re-indexing, an audit log and a usage dashboard.

Get a quote →
Scale

Multi-source AI platform

£25,000 to £50,000+

Typically 4 to 12 weeks

An enterprise AI assistant across many sources and departments, with role-based access and, where needed, a privately hosted model.

Get a quote →

Prices exclude VAT. Every project gets a written quote with scope and exclusions agreed up front. Vendor licences and usage fees are paid by you to the vendor; we are independent consultants and resell none of them.

Who you are hiring

1,000+ clients since 2020, reviewed on independent platforms

Reviews from clients who hired us for automation, data and development work. They are not reviews of RAG projects.

4.8★

From 944 Fiverr reviews

4.6★

Rated on Clutch

100%

Job Success on Upwork

UpworkVerified review
Working with Shahrukh was smooth, professional, and efficient. I highly recommend him for any data extraction, automation, or development-related tasks.
Ali H.Data extraction and automation
UpworkVerified review
Shahrukh understood what we wanted even we did not know all ourselves. He guided us through the project and delivered what promised and even more. Recommend!
Mikko P.Influencer marketplace
ClutchVerified review
I was impressed by their ability to deliver unparalleled quality at an extremely fast pace and for great value.
Angelos BougasManaging Director, Ocley Group

Technology

The technology behind a RAG system

We are independent of every vendor below. The choice follows your documents, data rules and budget.

Language models (write the answer)

  • OpenAI GPT models
  • Anthropic Claude
  • Google Gemini

Cloud routes and private hosting (where the model runs)

  • Azure OpenAI
  • AWS Bedrock
  • Llama
  • Mistral

Vector databases (find passages by meaning)

  • pgvector on PostgreSQL
  • Pinecone
  • Weaviate
  • Qdrant

Document sources (what it reads)

  • SharePoint
  • OneDrive
  • Google Drive
  • Websites and help centres
  • PDFs and scans
  • CRM and ticketing systems
  • Databases

Sectors

Sectors with a lot of written knowledge

In regulated sectors your own compliance lead signs off the design, and we make no claim of regulatory approval.

Law firmsKnow-how and precedents, limited by matter and team.Accountancy practicesTechnical guidance, procedures and client FAQs.
Healthcare providersStaff policies and procedures, not clinical advice or patient records.
Construction and engineeringMethod statements, manuals and specifications.
Customer support teamsHelp articles and past resolutions in one place.
Charities and membership bodiesGuidance and policies for staff and volunteers.

FAQ

RAG development FAQs

Straight answers to what buyers ask before they sign.

Still have a question?

Ask us directly. A senior engineer reads every question.

Ask about your project

What is RAG in artificial intelligence?

RAG is a method where an AI system first retrieves the relevant passages from your own documents, then asks a language model to answer using only those passages, with the sources shown. The model is not retrained on your documents.

How much does RAG development cost in the UK?

A pilot on one document set typically costs £3,000 to £12,000 and takes 1 to 3 weeks. A production knowledge assistant is typically £12,000 to £25,000 over 3 to 6 weeks, and a multi-source AI platform £25,000 to £50,000+ over 4 to 12 weeks. Prices exclude VAT, and every project gets a written quote.

How is RAG different from fine-tuning a model?

RAG looks facts up at question time; fine-tuning changes how the model behaves. With RAG the model reads passages from your documents and cites them, so an updated document changes the answer at the next sync. Fine-tuning suits a set style or format, but cannot show a source and needs retraining when facts change.

Will the AI make things up?

It can, so the system is built to make wrong answers rarer and easier to spot. The assistant must answer only from retrieved passages, cite each one, and say when your documents do not cover the question. People should still open the source for anything that matters.

Can it respect who is allowed to see which documents?

Yes. Each passage is stored with the access permissions read from its source system, and retrieval is filtered by the signed-in person, so answers only draw on documents that person could already open. Permission changes reach the assistant at the next sync. We test this with accounts at different access levels.

Do our documents get used to train the model?

Not by RAG itself, which does not retrain any model. Whether a model provider retains or trains on the passages it receives depends on the provider and the plan, so we check the provider’s data terms and region options with you before any data is sent. The system is built to support UK GDPR requirements; compliance remains your responsibility as data controller.

How do we keep the knowledge base up to date?

You keep editing documents where they already live, and the index is refreshed from those systems. Changed files are re-indexed on a schedule or when the source reports a change, and deleted files are removed. Someone in your organisation still has to retire old versions and keep each policy current.

Can we use Microsoft Copilot instead?

Often, yes. Microsoft 365 Copilot is the licensed assistant inside Microsoft 365 apps. If your documents live there and it answers your test questions well, you may not need a custom build. Custom RAG earns its place when important sources sit outside Microsoft 365, or you need rules and tests of your own.

How do you build an AI knowledge base?

You build an AI knowledge base in five stages: collect the real questions people ask, connect and clean the document sources, index the documents in a vector database, set up retrieval and answers with citations, then test against the question set. Most of the effort goes into the documents and the testing.

Are you a certified Microsoft, OpenAI or Anthropic partner?

No. SpiderHunts is an independent consultancy, not a partner, reseller or certified provider of Microsoft, OpenAI, Anthropic or any other vendor. You buy licences and usage from the vendor or a reseller, and we work inside your own accounts. That leaves us free to recommend Copilot, or no build at all.

Who owns the system, and what happens after launch?

You own it. Ownership of the code, prompts and configuration transfers on full payment, as set out in your contract, and the accounts are in your name. After launch you can run it from the handover documents, or agree an optional support retainer in writing.

Start here

Ready to ask your documents a question?

Tell us where your documents live and what people keep asking. We will say whether RAG fits and what a pilot would involve, with a written quote.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate, with no obligation.
Free estimateNo obligation

Get your RAG estimate

Tell us a little about the project and we will come back with a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →