Work / AI product engineering
Mushroom Oracle
A research evidence server for mycology: hybrid retrieval over 321 sources, exposed as an MCP server that cites every factual claim or says it lacks the evidence.
- Role
- Sole designer and developer
- Period
- 2026 – Now
The problem
ShroomSpy publishes cultivation guidance, and a wrong temperature or substrate ratio is worse than no answer. The site's factual content needed a source that answers only from the research literature and admits when the literature is silent.
The system
✕ marks where the system refuses.
What I built
- A retrieval-augmented generation pipeline in TypeScript that extracts text from PDF, EPUB and DOCX research documents, chunks it with overlap, enriches each chunk with LLM-extracted metadata, and embeds it with OpenAI text-embedding-3-small into SQLite.
- Hybrid retrieval combining FTS5 lexical search and sqlite-vec vector search with Reciprocal Rank Fusion.
- An MCP server with 14 tools, including question answering, evidence search and claim fact-checking. Answers are generated only from retrieved passages, with a citation for every factual claim, and report insufficient evidence rather than speculate.
Outcomes
- A corpus of 321 sources and about 20,600 chunks.
- The Oracle is the required source for ShroomSpy's factual content: constants and claims in species pages, growing guides and cultivation calculators must be oracle-sourced rather than guessed.
Stack
- TypeScript
- SQLite
- FTS5
- sqlite-vec
- OpenAI embeddings
- Model Context Protocol