Skip to main content
Start screen of the wiki assistant, German interface: the headline “What would you like to know about foodsharing?”, below it “Answers only from the foodsharing wiki, each with a source.”, a large input box and six example questions about rice, bread with mould, canned tuna, cooperation with a business, becoming a food saver and a missed pickup

An AI chatbot for the foodsharing wiki

RAG on real data and five ways the chatbot answers

At a glance

Starting point
An AI chatbot should answer questions only from the public foodsharing wiki, cite a source for every statement and say when something is not in it.
My role
Self-initiated experiment. The idea, the design, the choice of answer formats and checking the answers are mine. Claude proposed and built the technical setup.
Result
An unofficial demo with five answer formats and a table showing when each format fits. Not tested with users.
Scope
137 wiki articles, 870 sections, two automated test runs with 35 and 27 questions.

An AI chatbot meant to answer only from the foodsharing wiki, with a source for every statement

I have been an active foodsharer for years. That is why I chose the foodsharing wiki as the basis for an AI chatbot: I can judge whether the chatbot answers a question correctly. The chatbot is meant to answer questions only from the wiki, back every statement with a source, and say when something is not in it. Unlike my other projects, this chatbot works with real data: 137 articles with around 170,000 words. The idea, the design, the choice of answer formats and checking the answers are mine. Claude proposed and built the technical setup. Inside the chatbot, the language model Claude Sonnet 5.5 writes the answers.

Foodsharing is a volunteer initiative that actively works against the waste of edible food. A food saver is someone who rescues food. According to the wiki, food rescue is organised in districts, which usually cover one or more towns or a rural district. Coordination in a district lies with the “ambassadors”.

Important: the chatbot is an unofficial demo and not a service of foodsharing e.V.

For product managers who put a chatbot on their own content and decide how the chatbot answers

The chatbot has five answer formats, each with a real example from the wiki: companion graphic, click-through flow, plain answer, handover to a person and selection with search. A table to download shows when each format fits, and the demo is open to try.

What RAG is, and how 137 wiki articles became 870 sections with a path

RAG (retrieval augmented generation) means: before every answer the chatbot searches a fixed text collection for matching sections, and the language model is meant to answer only from those sections. Here the text collection is the foodsharing wiki.

The wiki runs on MediaWiki, so the content comes through the open interface, which delivers pages, structure, categories and change dates in a structured form. The articles are split into sections along the wiki’s own structure instead of a fixed character count. Every section carries its path “page > section > subsection”, because sections like “But!” or “Exceptions” could not be found without it. The result: 870 sections with a median of 163 words. To make each answer cost less, the language model only receives the sections that sit close to the best search match. An even leaner version was reverted at Claude’s suggestion, because one answer was cut off and the decisive rule about the use-by date was missing.

The hard case is a question the wiki does not answer. Whether a question can be answered cannot be read from the search alone, so the language model has to decide. The rule for this has three cases: answered, partly answered with the gap named, not answered and then without any statement on content. Claude proposed the rule after the language model had reported “not answerable” and still made claims that would have appeared in the interface without a source.

Technology at a glance

Reading in: through the MediaWiki interface, all content areas, redirects skipped, glossary tooltips removed. Scope: 137 articles, around 170,000 words, 870 sections. Search: in a Cloudflare Worker with Vectorize and the model bge-m3. Answers: by the language model Claude Sonnet 5.5 with a duty to cite sources, at most 1,000 output tokens. Protection: a separate workspace with a spending limit and a limit per visitor, only sabinereichel.de may call the chatbot.

Five ways the chatbot answers, each with an example from the demo

The demo exists only in German, so the screenshots show the German interface and interface texts are quoted in English translation.

The start page shows six example questions below the large input box, all of them visible on a phone.

Start page of the demo on desktop, German interface: headline “What would you like to know about foodsharing?”, large input box and six example questions, below them the note that this is a demo project and not a service of foodsharing e.V.
The entry point: six example questions below the input box.

1. Companion graphic

An image stays visible while the conversation in the chat goes on, for example a process, a diagram, a map or an overview. In the chatbot this is the infographic “Setting up a cooperation”, which from 1,280 pixels wide stays on the right next to the chat, with “You are at” and the current step below the graphic. On narrower screens the graphic appears once in the first step. Highlighting the current box in the graphic would be stronger, but in Claude’s assessment the highlight would need coordinates from Figma, so for now only the text line shows the step. The companion graphic fits when a topic already has an image that several answers refer to.

Chat about setting up a cooperation with a business, German interface: on the left the first question with the buttons Yes and No, on the right the infographic “Aufbau einer Kooperation”, below it the current step

The graphic stays visible while the chat continues, the line below it shows the current step.

2. Click-through flow with answer buttons

“How do I set up a cooperation with a business?” starts a fixed flow. Each step is a question with buttons, a task with “Done” or a result card with a task list and a wiki source. After a click the buttons disappear, the choice stays in the history, and “Change answer” rewinds to that step. The steps are fixed in the code, the language model does not write them. The click-through flow fits processes with fixed steps and branches, because every choice stays visible and can be changed.

End of the cooperation flow, German interface: answers as bubbles in the history, “change answer” below each step, and finally the result card “no cooperation came about” with three tasks
Every choice stays in the history and can be changed.

3. Plain answer with source cards

Without a special answer format, the chatbot answers in running text, with the sources below as separate cards. Each card has a line “Read in the wiki ↗” with the address in the wiki. The line exists because I asked for a source reference to the original wiki, although the titles were already linked: the link was too easy to miss. The plain answer fits when one section of the text collection answers the question directly.

One example is the question “Can I still eat rice the next day?”. “Passing on” means at foodsharing: the food may be redistributed to others according to the hygiene rules. In the live demo on 21 November 2026 the chatbot answers: rice that has stood unrefrigerated for more than about two hours should not be passed on. As a second source the answer cites a wiki page on buffet food and prepared dishes: if rice takes longer than two hours to cool from 60 °C to 10 °C, eating it is a risk. After cooking, rice should be cooled as quickly as possible and reheated all the way through, and if storage is unclear, the rice is not passed on.

The answer gives no maximum storage time in the fridge. In another request on the same day the chatbot also says that the rules refer to passing food on, not explicitly to eating it yourself. The background comes from the hygiene handbook in the wiki: cooked rice can contain spores of Bacillus cereus, and some of the toxins that form are not destroyed by reheating.

Answer of the demo to the German question whether rice can still be eaten the next day: running text with numbered references, a note “if in doubt, don’t pass it on” and two source cards from the wiki, the hygiene handbook and a page on buffet food and prepared dishes, each with “read in the wiki”
“Can I still eat rice the next day?” in the live demo on 21 November 2026, with two source cards.

4. Handover to a person

When the wiki has no answer, the sentence “Not in the wiki” is followed by the card “A person can help you here” with ways to get in touch, each with a link and an “According to the wiki” reference. The ambassadors or forum of the local district are always included. Depending on keywords in the question, IT support, the local reporting group or the welcome team are added, and finally “Report a gap” as a prepared email. Claude proposed this card so that a dead end becomes a next step. The handover fits when the text collection has no answer.

The keyword rules are rough and not evaluated. In the demo “Report a gap” goes to me, not to foodsharing.

Answer to the German question whether sprouting potatoes can still be eaten: card “not in the wiki”, below it “a person can help you here” with the way to the district’s ambassadors or forum and the block “report a gap”
Where the wiki cannot help, the card shows who can.

5. Selection with search and result card

A Fairteiler is a partly publicly accessible place, usually with refrigeration, where food can be stored safely and picked up. “Can this go into the Fairteiler?” opens a searchable list of 29 foods. The result comes as a card with one of three symbols: a tick, an exclamation mark or a red X. The card also shows sources and the sentence “Your district may have stricter rules”. If the search finds nothing, “Ask the assistant” sends the question to the chatbot as a normal question. Claude proposed the fixed list instead of free text, because the rules depend on the individual food. This way the language model does not decide what is allowed or forbidden. The selection with search fits when the rules depend on an item and a fixed list with a source carries the answer.

Selection with search, German interface: the question which food should go into the Fairteiler, the input “jog” in the search field and one match in the list
The choice comes from a fixed list, not from free typing.
Result card after selecting a food, German interface, with a symbol, an explanation of the rule and the sentence that the district may have stricter rules, below it two source cards from the wiki
The rule comes from the list, with a source from the wiki.

Trust depends on two things: the linked source and the sentence “Not in the wiki”

An older source shows its date on the card, for example “As of 11/2020, older than 2022”. Following Claude’s suggestion, this note comes from the data, because in the answer text the note appeared for only one of three old sources. The interface also carries the label “Unofficial demo” and, below the input, the sentence “Answers may contain errors. The wiki itself is always binding.”

In the test with 27 frequent Google search questions the chatbot said “Not in the wiki” for 7 of them: freezer burn, sprouting and green potatoes, brown bananas, flowering basil, bolted lettuce and selling after the best-before date.

The chatbot does not stick to its own rule completely. For two of the seven questions the chatbot still added “If in doubt, don’t pass it on”, which is a statement on content after all. One answer about tofu hit exactly the maximum length of 1,000 output tokens (word fragments the language model computes in and the provider bills by), so the answer risked being cut off.

Two automated test runs with 35 and 27 questions, and Google is only one source

My own check

I read answers against the wiki, all suggested questions and 5 additional test questions.

The first evaluation on 8 October 2026 tested the search on its own and the finished answers, with 35 test questions written by Claude, 32 answerable and 3 deliberately not. The search found the right page in first place for 28 of 32 questions and among the top five for all 32. All 32 answerable questions were answered, 31 of them with one of the expected wiki pages as a source, and all 3 unanswerable ones were declined. The limits: questions not from real users, content checked by Claude alone, one run per question.

Because the 35 questions use the wiki’s vocabulary, I added 27 frequent Google search questions, found through keyword research with OpenSEO and kept in the way people type them, to cover phrasings that do not appear in the wiki like that. Search data shows general food safety questions, though, not the questions food savers have about pickups, rules or the quiz. In a real project it has to be checked which questions food savers actually ask, and Google can only be one of several sources for that.

The first run with these questions on 20 November 2026 failed because the chatbot did not answer. In the repeated run against the live demo, all 27 were answered without a technical failure, 20 with an answer from the wiki and 7 with “Not in the wiki”. The checklist for correctness of content in the test report is not filled in. Claude only checked samples against the wiki texts, for example on freezing dates and on rice.

A demo to try and a table to take away

The chatbot runs as an unofficial demo on sabinereichel.de, on desktop and on phones. The table of the five answer formats, each with an example and a recommendation, can be printed as a PDF.

Start page of the demo on a phone, German interface: label “Inoffizielle Demo” (unofficial demo), headline, input box and all six example questions stacked
On a phone all six example questions are visible.
Try the demo →

Unofficial demo in German, not a service of foodsharing e.V. Answers may contain errors, the wiki itself is always binding.

Open the table and save as PDF →

What is missing, and what I would do differently

Together with the authors

If I had more time, I would approach a project like this together with the authors.

Not tested with users

The chatbot was clicked through in the browser on desktop, phone and with the keyboard. The chatbot has not been tested with users, and real questions from food savers are missing. Questions that combine two topics miss the decisive rule. The language model does not always keep the length limit of 80 words, the longest answer in the first test run had 129 words. One more answer format is still missing: the pass-on check “Can I pass this on?” with four check questions from the hygiene handbook.

Connect on LinkedIn →

A chatbot built on in-house content?

A short email describing the plan is enough for a first conversation.

I usually reply within one working day. design@sabinereichel.de

Frequently asked questions

Is the assistant a foodsharing service?

No. The assistant is an unofficial, self-initiated demo and not a service of foodsharing e.V. The foodsharing logo was left out on purpose, and the interface carries the visible label “Unofficial demo”.

What is a RAG chatbot?

A chatbot that searches a fixed text collection for matching sections before every answer and is meant to answer only from those sections. RAG stands for retrieval augmented generation. Here the text collection is the public foodsharing wiki.

What happens when the wiki has no answer?

The chatbot says “Not in the wiki” and shows ways to reach people who can help. In the test with 27 frequent Google search questions this happened for 7 questions. For two of them the chatbot still added the sentence “If in doubt, don’t pass it on”, although its answer rule allows no statement on content in that case.

What does an answer cost?

In the test run on 20 November 2026 an average of 1.67 US cents, 45 US cents for all 27 questions. In the first test run on 8 October 2026 the average was 1.33 US cents.

Which tools is the assistant built with?

The wiki is read in through the open MediaWiki interface. Search runs in a Cloudflare Worker with Vectorize and the model bge-m3, and the language model Claude Sonnet 5.5 writes the answers. I built the chatbot with Claude. The start layout was first built in code, based on a screenshot of the ChatGPT start page that I gave as a reference. Claude then rebuilt the start layout in Figma, I changed the design there, and Claude transferred the changes to the code.