SFX Support sfxsupport.com Discuss a project

Custom RAG solutions

AI answers from your own documents and data, with the source for every answer.

RAG (retrieval-augmented generation) means the AI first finds the right passages in your content, then is instructed to answer from them. We build the whole pipeline: cleaning and chunking your content, search, access control, the answer step and a test set that shows how often it's right.

  • Written scope before work
  • Fixed quote, no hourly surprises
  • Built and tested in your sandbox
  • Handover notes; the code is yours

The problem

The AI sounds confident and is wrong

Most bad RAG answers come from bad retrieval, not a bad model: documents split in the wrong places, outdated versions, no keyword search for product codes, or users seeing content they shouldn't. We build and measure retrieval first.

Good fit

  • Policies, product docs, Knowledge articles or past cases people search every day
  • Answers must link to the source so people can check them
  • Different users may see different content
  • You want to measure accuracy, not just try a demo

You probably don't need this if

  • Your content is a few pages a person could read in minutes
  • The answer needs live calculations rather than documents (that's an agent with tools)
  • Nobody owns keeping the content up to date

What we build

What a RAG build includes

Content pipeline

Load PDFs, web pages, Knowledge articles or records; clean them, split them sensibly and keep them in sync when they change.

Scoped per source

Hybrid search

Embeddings for meaning plus keyword search for names, codes and error messages, ranked together.

Measured on your questions

Access control

Users only retrieve content they're allowed to see, using your existing permissions where possible.

Designed in, not added later

Grounded answers with citations

The model is instructed to answer only from retrieved passages, link each source and decline when nothing fits. Wrong answers are still possible, so we measure and review them.

Claude, OpenAI, Gemini or Agentforce

RAG inside Salesforce

Answers from Knowledge, cases and records in a Lightning component, an Agentforce action or Data Cloud grounding.

Your org, your data

Evaluation set

A list of real questions with the right answers, run after every change so quality can't quietly drop.

Included in every build

How we build it

Retrieval first, model second

Technology we use

  • Embeddings with cosine similarity, plus keyword (BM25 or TF-IDF) search
  • Vector storage: Data Cloud, Postgres with pgvector, or a managed vector database
  • Claude, OpenAI, Gemini or the Salesforce Models API for the answer step
  • Salesforce Knowledge, files and records as sources

Safeguards in every build

  • Answers grounded in retrieved sources, with citations
  • 'I don't know' when nothing relevant is found
  • Per-user access filtering before anything reaches the model
  • Evaluation set rerun before every release

How it works

From first message to working RAG system

  1. Share sample content and questionsA sample of your documents and 20–50 real questions people ask.
  2. Scope and fixed quoteSources, access rules, where answers appear, how we'll measure accuracy, timeline and price.
  3. Build the pipelineIngestion, search and the answer step, tested against your questions.
  4. Measure and tuneWe show you which questions it gets right, wrong or declines, and improve retrieval.
  5. Launch and hand overDeployment, sync schedule and notes on how to add content and rerun the tests.

FAQ

Questions about custom rag

Anything else? WhatsApp 94148 49173, call 76118 96026, or email the founders.

founders@sfxsupport.com
What is RAG?

Retrieval-augmented generation: the system first searches your content for relevant passages, then the AI model is instructed to answer from those passages and link back to them. It can still occasionally produce an unsupported answer, which is why we test and review.

Do we need a vector database?

Not always. Small collections can use simpler storage, and Salesforce teams may use Data Cloud. We choose based on size, access rules and what you already run.

How do you stop wrong answers?

They can't be ruled out completely. We reduce them with better retrieval, instructions to answer only from sources, an 'I don't know' path, and an evaluation set of real questions run before every release.

Can it respect who is allowed to see what?

Yes. Access filtering happens during retrieval, so restricted content never reaches the model for users who can't see it.

Can RAG work without sending data to an external AI?

Retrieval with keyword search or self-hosted embeddings can run entirely in your systems. For the answer step you can use a model hosted in your own cloud account, or skip generation and return the best matching passages. Vendor models, including those reached through Salesforce, process the prompt outside your systems.

Are you a Salesforce partner?

No. SFX is an independent Salesforce + AI team, not a Salesforce partner and not endorsed by Salesforce. A founder writes every scope and reviews every delivery.

Discuss your project

Tell us what your AI should answer from.

A founder reads every message and replies personally, usually within one working day. If it's a fit, we send a written scope and quote.

Describe your project

No payment is taken here. We reply with questions or a scope.

Your message is saved in the private SFX leads inbox and used only to reply about your project. Don't include passwords or customer data. See our privacy policy.

WhatsApp Discuss a project