WizCodes
WorkAbout
WizCodes

Production-ready web platforms, mobile apps, and AI systems. Based in Ahmedabad, India.

Serving clients in US · UK · Canada · Europe

hello@wizcodes.site
Ahmedabad, India · Est. 2025

Services

ServicesWeb DevelopmentMobile AppsAI AutomationMVP DevelopmentUI/UX DesignHire DevelopersIndustries we servePricingWhat drives the cost

Company

WorkAboutWorking across bordersContact

Resources

BlogComparisonsOpen SourceFAQTestimonials
Listed on
ClutchGoodFirmsThe Manifest
MSME CertifiedDUNS RegisteredGDPR & DPDP256-bit TLS100% code ownership
© 2026 WizCodes. All rights reserved.Ahmedabad, India — Global Clients
Privacy·Terms
  1. Home/
  2. Services/
  3. AI Automation/
  4. RAG & Knowledge Bases
RAG & knowledge bases

Answers from your own documents, with the receipts attached.

Retrieval-augmented generation built where quality actually lives — chunking, hybrid search and re-ranking — with citations on every answer and an evaluation set so a change cannot silently make it worse. Deployed to your infrastructure.

Get a free prototype Want a chatbot instead?
Citations on every answer Retrieval measured, not assumed Runs in your cloud
Policy.pdf
Handbook
Contracts
Handbook p.14
Where quality comes from

Three things that decide whether it works

01

Retrieval decides the answer

The model can only reason over what it is given. Nearly every wrong answer from a RAG system is a retrieval failure wearing a generation costume — the right passage was never fetched. So the engineering effort goes into chunking, hybrid search and re-ranking rather than into prompt wording.

02

Measured, not hoped for

A representative question set with known-good answers, run on every change. Without it, "improving the prompt" is guesswork and you find out it regressed from a customer. The evaluation harness is part of the delivery, not an internal tool we keep.

03

Citations as a first-class output

Every answer carries the passage and source it came from, so a user can verify in one click and you can debug a bad answer in seconds. An uncitable answer is unusable in any context where being wrong has a cost.

Scope

What a build includes — and what it cannot fix

Included

The whole pipeline, plus the tooling to keep it honest.

  • Ingestion from your documents, database and APIs
  • Chunking strategy tuned to your content shape
  • Hybrid semantic and keyword search
  • Re-ranking so the best passage reaches the model
  • Citations resolved back to the source
  • Evaluation set with known-good answers
  • Incremental re-indexing as content changes
  • Access control so retrieval respects permissions

What it will not do

Named plainly, because these are the usual misconceptions.

  • Fine-tuning or training a model on your data
  • Guaranteeing an answer is never wrong
  • Answering from documents you do not have
  • Fixing contradictions in your source content
  • Replacing a search engine for exact-match lookup

Need something on this list anyway? Fine-tuning, a self-hosted model, or a bespoke parser for an awkward document format are all things we can build — they are off the default list because they are rarely the cheapest way to get a good answer, not because we will not do them.

The failure nobody warns you about

A better model will not fix a bad retrieval pipeline

When a knowledge assistant answers wrongly, the instinct is to blame the model and upgrade it. That almost never helps, because the model was reasoning correctly over the wrong passage. The correct passage was in your documents and never reached it.

Chunking splits the answer

A document cut mid-idea leaves no chunk containing a complete answer. Tuned to your content shape, not a default size.

Semantic search misses exact terms

Product codes, policy numbers and part references need keyword matching too. Hybrid retrieval, not vectors alone.

No re-ranking

Retrieve broadly, then re-rank so the genuinely best passage is what the model actually sees.

Your documents disagree

Two versions of a policy and no way to know which is current. We surface these during ingestion — you decide which wins.

Tech stack

One database where one will do

Retrieval
pgvectorHybrid BM25 + vectorRe-rankingChunk overlap tuning
Models
ClaudeOpenAIOpen-weight where residency requiresEmbedding models
Pipeline
PythonFastAPIDocument AIOCRQueues
Operations
Evaluation harnessTracingIncremental indexingYour cloud account
Shipped

Retrieval in production

See all work
CP
LiveUS

CuePilot

Real-time voice AI for customer support teams. Listens to live calls, transcribes with Whisper, and surfaces optimal response suggestions — so agents handle complex clients with confidence.

  • < 200ms latency
  • Real-time pipeline
  • Enterprise support
MO
ShippedIN

Medical OCR System

Advanced OCR pipeline for a medical agency. Processes complex multi-page questionnaires and deep medical forms with structured JSON output and validation layers.

  • Medical-grade accuracy
  • Complex form processing
  • Structured output
AL
ShippedUnited Kingdom

AI Lead Generation Agent

Fully autonomous lead generation and outreach agent. Identifies prospects from target websites, generates personalized proposals via LLM, and delivers them — zero human touch.

  • Zero human touch
  • Personalized at scale
  • End-to-end automation
Questions

Answered before you ask

Why does an assistant give wrong answers when the right document is right there?

Because the document being in your knowledge base is not the same as the relevant passage reaching the model, and that gap is where most RAG projects fail. Four causes account for nearly all of it. Chunking that splits a document mid-idea, so no single chunk contains a complete answer. Pure semantic search, which is excellent at topic similarity and unreliable at exact terms like a product code or a policy number — which is why hybrid search matters. No re-ranking, so a marginally relevant passage outranks the correct one and the model answers from the wrong context. And contradictory source material, where two documents disagree and the system has no basis for preferring the current one. Notice that none of these are model problems, which is why swapping to a more expensive model rarely fixes a bad RAG system.

What file types and sources can it read?

PDFs, Word documents, spreadsheets, HTML and Markdown, plus live sources — a database, an API, a help centre, a wiki, a shared drive. Scanned documents and images go through OCR, which we have shipped before on medical records. The realistic caveat is that extraction quality varies enormously by format: clean text extracts perfectly, while complex tables, multi-column layouts and scanned forms need specific handling and sometimes a bespoke parser. That work is scoped once we have seen samples of your actual documents rather than estimated from a description, because a folder of clean policy PDFs and a folder of scanned faxes are entirely different projects. The other decision worth making early is live versus snapshot: connecting to a source your team already maintains means the assistant stays current with no extra process.

How often does the knowledge base need updating?

Ideally never manually, which is a design decision rather than a maintenance discipline. Where we connect to a living source — your help centre, database or document store — new and changed content is re-indexed incrementally as it appears, and there is no separate process for anyone to remember. Where content only exists as files, someone has to upload revisions, and that is the setup worth avoiding if you can. What does deserve periodic attention is quality rather than freshness: reviewing the questions that produced weak retrievals, and resolving contradictions between documents. That is usually a short review in the first weeks and infrequent afterwards. The evaluation set makes it safe, since you can confirm a content change improved things before it reaches users.

Do we need a vector database?

Usually not a separate one, and this is over-sold. For the large majority of business knowledge bases, pgvector inside the PostgreSQL you are already running is entirely sufficient and considerably simpler — one database to operate, back up and secure, and your permissions live alongside your embeddings rather than in a second system that has to be kept in sync. Dedicated vector databases earn their place at genuinely large scale, or with specialised filtering requirements, and those thresholds are far higher than most vendors imply. We would rather you ran one database well than two adequately. If your situation genuinely calls for a dedicated store we will say so, but it is not the default and should not be assumed at the start of a project.

Can this run without sending our data to OpenAI or Anthropic?

Yes, with a real trade-off that should be decided deliberately rather than by default. The strictest option is an open-weight model self-hosted in your own infrastructure, so no content leaves your network at all — appropriate for genuinely sensitive material, at the cost of capability and of running GPU infrastructure. A middle path keeps retrieval and your document store entirely in your environment and sends only the retrieved passage to a commercial API, which is a much smaller data exposure than sending whole documents and is what most regulated clients settle on. Under standard API terms the major providers do not train on data submitted through the API, and providers offer regional processing where residency is the concern. We size this to your actual obligation rather than to the most cautious possible reading, because the strictest option costs real capability.

A fuller engineering treatment of retrieval, prompt design and guardrails is in LLM integration done right.

Start a knowledge base project

Tell us where your answers currently live and who needs them. We'll look at real samples of your documents before scoping — extraction quality is what decides the effort.

Get a free prototype All AI services