RAG & machine learning
RAG and Machine Learning Development
DartSol builds AI assistants that answer from your own documents and data, with sources and permissions, and machine learning models that turn your history into useful predictions.
In short: what is RAG?
Retrieval-augmented generation (RAG) connects a large language model to your approved content. For each question, it retrieves the relevant passages first, then writes an answer grounded in them, with citations. It's the most practical way to build an AI knowledge base that stays current.
Where RAG and machine learning help
Internal knowledge assistants
Staff ask questions in plain English and get answers from your policies, procedures and past work, with links to the source.
Customer support answers
Draft accurate replies from your help center and product documentation, with a person approving before anything is sent.
Document search and Q&A
Search contracts, reports and manuals by meaning, not just keywords, and get the relevant passage back.
Forecasting
Machine learning models that predict demand, workload or revenue from your historical data.
Classification and routing
Automatically categorize documents, tickets or leads so they reach the right person faster.
Scoring and prioritization
Rank leads, risks or tasks by likelihood, based on patterns in your own data.
How we build a production RAG system
Ingestion and cleanup
We connect approved sources (documents, wikis, databases, tickets), remove duplicates and keep the content in sync as it changes.
Chunking and embeddings
Content is split into meaningful passages and converted into embeddings, stored in a vector database such as pgvector or a managed service.
Retrieval and reranking
Hybrid keyword and semantic search finds candidate passages; reranking keeps the most relevant ones for the answer.
Permission-aware answers
Users only retrieve content they're allowed to see, and answers cite the passages they came from.
Evaluation
We test retrieval quality and answer faithfulness against real questions before launch, and again whenever models or content change.
Monitoring
Usage, unanswered questions and low-confidence answers are logged so the knowledge base keeps improving.
Custom machine learning, done carefully
- A data audit first: what you have, how clean it is, and whether it can answer the question
- Simple, explainable models first (often gradient-boosted trees); deep learning only when it clearly helps
- Evaluation on held-out data with metrics that match the business cost of mistakes
- Deployment as an API or scheduled job that fits into your existing systems
- Monitoring for data drift, with retraining when performance slips
Accuracy, privacy and safeguards
- Answers grounded in your approved sources, with citations users can check
- “I don't know” instead of a guess when the sources don't cover a question
- Access controls inherited from your systems, plus audit logs
- Model providers and settings chosen to match your data policies
- Sensitive data minimized or excluded before it reaches any model
How a project runs
- 1
Discovery
Pick one high-value use case, the sources it needs and how success will be measured.
- 2
Prototype
Build a working version on a sample of your data and test it with real questions.
- 3
Production build
Add permissions, sync, evaluation, monitoring and the interface your team will use.
- 4
Launch and improve
Roll out to users, review feedback and unanswered questions, and keep improving.
Frequently asked questions
What is retrieval-augmented generation (RAG)?
RAG is a way of building AI assistants that answer from your own content. When someone asks a question, the system first retrieves the most relevant passages from your approved documents or data, then gives them to a large language model, which writes an answer based on those passages and can cite them. Your knowledge stays current without retraining a model.
Is RAG better than fine-tuning a model?
They solve different problems. RAG is usually the better fit when answers depend on your documents and those documents change, because you update the content, not the model. Fine-tuning helps when you need a particular style or format. Many systems use RAG alone; some combine both.
Which language models and vector databases do you use?
We choose based on your data policies, accuracy needs and budget, and design the system so the model can be swapped later. Vector storage can live in a database you already run, such as PostgreSQL with pgvector, or a managed vector database.
How accurate will the answers be?
Accuracy depends on the quality and coverage of your content. We measure it before launch with a set of real questions, design the assistant to say when it doesn't know, and show sources so people can verify answers. No AI system is right every time, so important decisions should stay with people.
How much data do you need for a machine learning project?
It depends on the problem. Some forecasting or classification projects work with a few thousand historical records; others need much more. The data audit at the start tells you whether your data can support the model before you invest in building it.
Can our data stay private?
Yes, within the limits of the services you approve. We keep data in systems you control where possible, minimize what reaches any model, and use providers and settings that match your policies. Options for privately hosted models exist and we can discuss the trade-offs.
Discuss Your Project
What happens next
- 1We review your request.
- 2We reply by email with any questions, or suggest a short call.
- 3If it's a good fit, you get a written quote for the agreed scope.
Prefer another way? Email info@dartsol.com or pick a time on Calendly (opens in a new tab).
DartSol LLC is registered in Austin, Texas, and works remotely with businesses across the United States, as well as in Canada and Australia.
