DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk7 min

Building a Soil Doctor: Inside My RAG-Based Soil Advisory System

Soil Doctor is a retrieval-augmented soil advisory prototype. Here is how its pipeline works, why retrieval quality is not agronomic validity, and which USDA sources matter when interpreting soil readings.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Soil Doctor is a prototype soil advisory system built on retrieval-augmented generation (RAG). According to its author, Israel Durotoye, the system searches a knowledge base of 312 text chunks, reorders the strongest matches, and passes that evidence to a language model before it writes an answer. That retrieval pipeline is the part he describes in detail. The predictive engine is separate development work, and the article does not claim validated predictions or measured gains in farm productivity.

The project details and the quotation below come from an indexed copy of the article, attributed to Towards AI and dated September 24, 2026 (indexed copy). The original publisher page was not available for comparison, so the quotation is reported as it appears in that copy.

As an Amazon Associate I earn from qualifying purchases.

How the pipeline answers a question

The article describes the answer path in five stages. Passages are retrieved in two different ways, then ordered by a reranker before any text reaches the model:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Semantic search. The question and each text chunk are converted into embeddings, so passages with a similar meaning score well even when they share few words with the question.
  2. Lexical search (BM25). A keyword-based ranking scores chunks on exact term matches. This complements meaning-based search, because exact terms such as nutrient names or unit abbreviations can be missed by embeddings alone.
  3. Shortlist. Candidate passages from the two searches form a shortlist. The article does not specify how the two result lists are merged, so the fusion method is unreported.
  4. Reranking. A cross-encoder from the MS MARCO MiniLM family reads each question and passage together and reorders the shortlist. Reading the pair jointly is slower than comparing precomputed vectors, but it usually orders a short list more precisely.
  5. Generation. The top passages are supplied to a language model as evidence, and the model writes the answer.

Each stage changes which text the model sees. None of them checks whether that text is agronomically correct for a given field.

#1 Best Overall
Rapitest Soil Test Kit for Gardens, Vegetables, Flowers and Lawns. USA designed and assembled soil tester completely, quickly and accurately measures/analyzes soil pH acidity and garden nutrients.
  • Quick, at home results for Soil pH, Nitrogen, Phosphorous and Potash Innovative and inexpensive soil test kit features an easy-to-use capsule system and patented color comparators
  • Contains all components needed for 20 tests. 5 for each of pH, N, P and K
  • Contains all components needed to test all variables in several spots in the yard or garden
  • Simple, detailed instructions included. Great for beginners and experienced gardeners alike.
  • Soil pH preference list for over 450 plants included

Measurement, inference, and recommendation

The article’s central design choice is to keep three kinds of statement apart. A soil reading is a measurement. An explanation of what that reading suggests is an inference. A specific action for a specific field is a recommendation. Each needs different support, and the system is designed to show where each one stops.

Layer What it is Illustrative example What must accompany it
Measurement A recorded value with its context A soil moisture reading, with its unit, the time it was taken, and where in the field Measurement type, unit, timestamp, and device or location identifier
Inference A conclusion drawn from measurements and retrieved guidance Readings suggest the root zone is drying faster than the crop uses water The evidence behind it, and what the reading cannot show
Recommendation An action for a particular field A specific nitrogen rate for a maize block Supporting evidence, known unknowns, and the local authority or laboratory data it depends on

The author’s own formulation puts the principle directly: “Every recommendation should make clear what was measured, what was inferred, what evidence supports it, and what is still unknown.” As he describes the goal, the system should make missing information and uncertainty visible rather than turning a numeric soil reading into an unsupported prescription.

What the sensor-to-advisor link must carry

The article says the connection between sensing hardware and advisory software should preserve four things: measurement type, unit, timestamp, and a device or location identifier. This is a design requirement the author describes. It is not presented as a finished or tested interface. The article does not name a sensor model or report testing any hardware.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Measurement type separates moisture from temperature or pH, which need different interpretation.
  • Unit matters because a bare number cannot be compared with guidance written in another unit.
  • Timestamp shows whether a reading was taken before or after rain or irrigation, which changes what it means.
  • Device or location identifier keeps a reading tied to its place in the field, so it is not averaged with readings from elsewhere.

The maize question as a test case

The author’s example reader question is: “I’m growing maize. I have soil readings and want to understand what they mean for water and nutrient management.” Answering it well means separating the readings by type and context, retrieving guidance for maize in the relevant region, and keeping water questions apart from nutrient questions. The article does not report what the system answered to this question, so it shows the request the design is built for rather than a demonstrated result.

Rank #2
MySoil Soil Test Kit, Unlock Your Lawn & Garden Potential, Complete & Accurate Nutrient and pH Analysis with Recommendations Tailored to Your Soil and Plant Needs
  • KNOW BEFORE YOU GROW | Grow the healthiest, sustainable lawn and garden with the most accurate and easy to use professional soil test kit on the market
  • FAST & ACCURATE | Unlike at-home pH meters and test strips, our mail-in professional lab analysis accurately measures 13 plant-available nutrient levels, including Nitrogen and pH. Results in 6-8 days
  • FOR ANY GROWING SCENARIO | Tests any soil type and growing condition - lawn & turf, vegetable gardening, flowers, compost, trees, vines, ornamental landscape, house plants, soil-less media or hydroponics
  • SAVE TIME & MONEY | Stop applying products you don’t need. Learn exactly what products and amounts you need to grow the healthiest plants possible
  • CUSTOM RECOMMENDATIONS | What to apply, how much to apply, and when to apply it. Provides both organic and non-organic fertilizer recommendations to effectively amend your soil

What 312 chunks does and does not show

The prototype knowledge base holds 312 text chunks, according to the author. He cautions that the count alone establishes neither completeness nor quality. A chunk count measures size. Coverage depends on whether the included sources address the crop, region, and soil conditions a user asks about. Quality depends on whether each chunk accurately reflects its source and keeps that source’s date and geography. The account used here does not identify the sources behind the 312 chunks.

Official US sources and what each one is for

The article does not report that Soil Doctor uses any of the sources below. They are complementary, and each answers a different question.

Source Primary purpose What it covers What it does not contain
SSURGO Portal Beta (USDA NRCS) Access official soil survey data Spatial and tabular soil survey data, with queries, maps, and ratings or interpretations of soil properties Your field’s own sensor readings or laboratory results
FRST Decision Aid (USDA) Soil-test interpretation for crop nutrient management Interpretation of soil tests, aimed at more transparent and consistent results A universal fertilizer rate; it is intended to augment state recommendation systems, not replace them
Laboratory soil health testing (USDA NRCS guidance) Measure biological, physical, and chemical soil properties Guidance on choosing a laboratory, sampling fields, and reading laboratory reports Sensor data; the guidance does not assess Soil Doctor

Soil health testing and sensor readings

NRCS describes soil health tests as assessing biological, physical, and chemical soil properties. Its guidance points to resources for selecting a laboratory, field sampling instructions, and technical information on reading soil health laboratory reports. NRCS also describes CEMA 216 as a soil health testing activity for eligible EQIP participants. See NRCS soil health testing.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A moisture, temperature, or pH reading from a sensor needs its measurement context and suitable interpretation. Neither a language model nor a retrieval system makes that reading agronomically valid on its own. The NRCS materials support the importance of appropriate testing and interpretation, but they do not evaluate Soil Doctor.

Rank #3
AKSBTEC Soil Test Kit 4-in-1 for Lawns & Gardens – 40 Tests (pH, Nitrogen, Phosphorus, Potassium) – Easy Soil Testing Kit for Vegetable Garden, Lawn & Plants
  • Complete 4-in-1 Soil Test Kit (pH, N, P, K) – This garden soil test kit measures soil pH, Nitrogen, Phosphorus, and Potassium, giving you a full picture of your soil condition to improve fertilization and plant growth.
  • 40 Accurate Tests for Long-Term Use – Includes 10 tests for each element (40 total tests), making this soil testing kit ideal for repeated use across multiple areas of your lawn, vegetable garden, or flower beds.
  • Fast & Easy Soil Testing at Home – No calibration or complex tools needed. Simply mix soil with water, add the reagent, and compare the color chart for instant results. Perfect for beginners and experienced gardeners.
  • All Tools Included for Convenience – This soil testing kit comes with test tubes, reagents, droppers, and a color comparison chart. Everything you need is included to perform reliable soil tests right at home.
  • Improve Plant Growth & Save Fertilizer – By using this soil test kit for lawns and gardens, you can accurately balance soil nutrients, reduce waste, and grow healthier vegetables, flowers, and grass.

SSURGO Portal Beta

According to NRCS documentation, the SSURGO Portal beta imports spatial and tabular soil survey data into SQLite, lets users query it, create maps, and produce ratings of soil properties and interpretations. NRCS states that the beta requires Python 3.9 through 3.11, and that official testing was completed on Python 3.10.2. These are current documentation details and may change. The article does not say whether Soil Doctor uses SSURGO data.

FRST Decision Aid

The FRST Decision Aid states that it aims to make soil-test interpretation more transparent and consistent, and to support soil-test-based crop nutrient management. It is intended to augment existing state recommendation systems, not replace them. A general model answer about nitrogen or phosphorus therefore cannot stand in for the state recommendation that applies to a given field.

Annual Soils Refresh and version tracking

NRCS performs its Annual Soils Refresh each October 1. The 2026 refresh was released on October 1, 2026, and changes differ by survey area. NRCS reports 3,386 soil survey areas and 3,937,519 acres of new soil data for that 2026 refresh. Any system that uses these data has to record the source version, its date, and the geography it covers, because the reference data change from year to year.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How the evaluation is set up, and what it has not yet shown

The article names two evaluation directions. The first is Recall@k, which measures how often the relevant passages appear among the top k results. The second is claim-level review, which checks whether each generated statement is supported by the retrieved evidence. The article reports no completed comparison showing that hybrid retrieval or reranking improves answers.

Rank #4
Soil Test Kit – 100 Soil pH Test Strips (3.5–9 Range) for Garden, Lawn & Indoor Plants – Easy At-Home Soil Testing
  • Accurate Soil pH Testing: Dewildetradingco Soil pH Test Strips offer measurements of soil pH levels (pH 3.5-9). As an essential tool for every gardener and grower, these test strips help determine the optimal pH for various plants, such as outdoor plants, indoor plants, gardens, grass lawns, fruit trees, flowers, vegetables, and forest shrubs.
  • User-Friendly Testing Procedure: The testing process is simple and efficient. Mix the sample soil with water, let the solution sit for 30 minutes, dip one strip into the solution for 3 seconds, and then hold it horizontally for 60 seconds. Compare the results against the provided color chart on the bottle for quick and reliable readings.
  • Cost-Effective and Versatile: With 100 Soil PH checker strips included in each package, Dewildetradingco provides a cost-effective solution for soil testing. It caters to various planting needs, offering valuable insights for a wide range of horticultural applications.
  • Optimize Plant Health and Growth: Maintaining the correct pH is crucial for optimal plant growth and bountiful yields. Dewildetradingco Soil pH Test Strips enable gardeners and growers to adjust their soil conditions, ensuring nutrient availability and preventing wasteful spending on ineffective amendments.
  • Convenient On-the-Go Monitoring: The Dewildetradingco Soil pH Test Strips are designed for portability, allowing gardeners to perform quick soil testing in various locations. As an essential tool in every gardener's soil tester kit, these pH strips help ensure thriving plant life and efficient resource management.

A comparison that would test the design needs the same labeled questions, with relevant passages identified for each, run through three configurations:

  • semantic retrieval alone;
  • hybrid retrieval, combining semantic and BM25 results;
  • hybrid retrieval followed by reranking.

Retrieval scores measure only whether the right passages reached the model. Generated claims need a separate check against the passages they cite, because a correct passage can still be summarized incorrectly. Better retrieval does not make the underlying evidence scientifically correct or a farm recommendation correct.

What retrieval-augmented generation does and does not guarantee

A 2023 survey by Yunfan Gao and coauthors, Retrieval-Augmented Generation for Large Language Models: A Survey, describes the common RAG workflow. Documents are indexed as chunks and vectors, material relevant to a query is retrieved, and that material is supplied to a language model during generation. The survey also discusses the limitations and evaluation of RAG. It is useful background for the pattern, but it is not evidence that RAG guarantees factual or safe agronomic advice.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What to do with your own soil readings

For a grower with maize readings, the article’s framework suggests a practical order of operations:

  1. Record each reading’s type, unit, date, and position in the field before interpreting it.
  2. If the decision involves nutrients or soil health, obtain laboratory testing, using the NRCS laboratory-selection and report-reading guidance described above.
  3. Check the official soil survey for your location through the SSURGO Portal or your local NRCS office, and note the survey version and date.
  4. For nutrient rates, use your state’s recommendation system. FRST is designed to complement it.
  5. Treat any language-model answer as a list of questions to verify against those sources, not as a rate or a schedule.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.