Ravi Singh · AI/ML Engineer · India, working remotely
Python automation, reliable data pipelines, and AI workflows you can test.
I take on fixed-scope remote work: one workflow automated, one data pipeline built or repaired, or one LLM/RAG workflow evaluated. Each starts with written scope and acceptance criteria and ships in milestones.
- Experience
- 4 years, professional
- Availability
- 5–10 hours a week
- Working style
- Asynchronous, from India (IST, UTC+05:30)
Retrieval lab Synthetic corpus · local demonstration
Can this search find the right source for this question?
Fourteen invented public-service pages from a fictional town called Elmbrook, ten questions with known right answers, and two ways to search. Choose a question and compare plain keyword matching with keyword matching plus a small synonym map you can see and switch off.
Question
How much does it cost to take away an old sofa?
Expected source
- D03 Bulky item collection
A Keyword matching
Searched for cost take away old sofa
No document shares a searchable word with this question.
B Keyword + synonym map
Searched for cost take away old sofa furniture ← sofa charge ← cost
-
B1 Bulky item collection D03
Furniture, mattresses and large appliances can be collected from your home. The charge is 25 per load of up to five items. Book at least five days ahead.
-
B2 Residential parking permits D05
Residents in a controlled parking zone can apply for a permit for each vehicle registered at their address. They carry an annual charge and must be displayed in the windscreen.
-
B3 Borrowing, renewals and overdue items D10
Books can be borrowed for three weeks and renewed twice. Overdue items borrowed on a child account have no charge. Adult accounts pay 20p per item per day.
What changed
The synonym map added “sofa” → “furniture”; “cost” → “charge”. That moved the expected source from not retrieved at all to rank 1.
The synonym map
Approach B adds these words when the question contains the word on the left. Added words count at half weight. Switch a rule off to see what it was doing.
Across all questions
Recall@3
Of the expected sources, what share appear in the top 3 results, averaged over questions.
- A · Keyword
- 0.65
- B · + Synonyms
- 0.90 +0.25
MRR@3
How near the top the first expected source sits: 1.00 means always first, 0.50 means second on average, 0 if it is not in the top 3.
- A · Keyword
- 0.60
- B · + Synonyms
- 0.80 +0.20
Computed from 10 labeled questions over 14 synthetic documents.
| Question | A · Keyword | B · + Synonyms | B vs A |
|---|---|---|---|
| How much does it cost to take away an old sofa? | not found | 1 | better |
| Which day do they empty my bin? | 6 (outside top 3) | 1 | better |
| Can I park my car outside my house? | 1 | 1 | same |
| Who do I tell about a pothole on my street? | 2 | 2 | same |
| Do I need a permit to sell beer? | 2 | 1 | better |
| Can I get a permit for my van? | 1 | 2 | worse |
| What are the library rules for kids? | 1 | 1 | better |
| Is there a council tax discount if I live alone? | 1 | 1 | same |
| How do I complain about loud parties next door? | 1 | 1 | same |
| Who fixes a dark lamp post? | not found | not found | same |
The trade-off
Synonyms raise recall: the sofa, bin and beer questions only find their pages because of them. They also
bring in new wrong answers. The rule permit → licence fixes the beer question and breaks the
van question, where the street-trading page now outranks parking permits. And no rule helps “lamp post”,
because nobody wrote one. In a real project, that is why a synonym list, a prompt or a retriever change gets
judged on a labeled question set, not on the one example that prompted it.
How it works
- Words. Each question and document is lowercased and split into words. Common words such as “the” and “do” are dropped, and a small suffix rule makes “permits” match “permit”.
- Scoring (A). Each document is scored with BM25 (k1 = 1.2, b = 0.75), a standard keyword formula: matches on rarer words count more, repeats help with diminishing returns, and long pages are discounted.
- Synonyms (B). Same scoring, but each rule whose left-hand word appears in the question adds its words at 0.5× weight.
- Ranking and ties. Higher score first. Equal scores are ordered by document id, so the same input always gives the same ranking. Documents sharing no word with the question are not retrieved.
- Metrics. Recall@k and MRR@k are calculated per question from those rankings, then averaged over all 10 labeled questions. The table reports the rank of the first expected source.
Everything runs in this page. No model, API, network request, cookie or stored visitor data. The corpus, questions and labels are invented for this demonstration.
Services
Three fixed-scope offers, each with a handoff you can check
Pick one deliverable. Before any work starts, we agree in writing on what you send, what you get back, and the test that decides it is done. The examples below show the shape of an engagement. They are illustrations, not past client work.
-
Automate one workflow or API integration
A repetitive task that runs on copy-paste, or two tools that should talk to each other and don’t.
- Example input
- A weekly CSV export from your billing tool, read access to your CRM’s API, and a description of what someone currently does by hand.
- Output
- A Python job that reads the export, matches each row to a CRM contact and updates it, writing a run log and an exceptions file. Includes a README so your team can run and change it.
- Accepted when
- On a sample week you supply, every row is either updated or listed in the exceptions file with a reason, and running it twice makes no duplicate changes.
-
Build or repair one data pipeline
A report that is late, wrong, or rebuilt by hand. Or a pipeline nobody wants to touch.
- Example input
- Read access to three source tables, the report or table they should feed, and one month you have checked by hand.
- Output
- Tested SQL and Python transformations that build the target table on a schedule in your environment, with data-quality checks and a short runbook.
- Accepted when
- Row counts and totals reconcile with your hand-checked month, and the run fails loudly, naming the column, when a key is null or duplicated.
-
Evaluate one LLM or RAG workflow
An assistant or search feature that seems fine in demos, and you can’t say how often it is wrong.
- Example input
- Your current prompt or retrieval setup, plus 30 to 100 real questions with known-good answers or source documents.
- Output
- A labeled test set, a repeatable evaluation script reporting retrieval and answer metrics, and a written summary of failure patterns with ranked fixes.
- Accepted when
- One command reproduces the reported numbers on your machine, and every recommended fix cites failing examples from your test set.
How an engagement runs
- Send the problem. What happens today, a few sample inputs, the output you want, and your deadline.
- Get a written scope. One deliverable, a fixed price, acceptance criteria you can check, milestones, and what is out of scope. Nothing starts until you agree.
- Receive it in milestones. Each milestone ships with a short note on what changed and how to verify it. The final handoff includes docs, and a call if useful.
About
Ravi Singh
I’m an AI/ML engineer with four years of professional experience in data science and machine learning, based in India.
My recent work is in financial-crime compliance: matching messy personal names against large reference lists, building the ETL that prepares those lists, and serving the matching through Python APIs. Work like that is judged on misses, so I agree on the acceptance check before I write the code.
Day-to-day tools Python · SQL · pandas · PyArrow and Parquet · FastAPI · Redis · Docker