About the client
Residents and visitors look for local information in many places: the city portal, the tourism site, the library, the regional public transport network and national e-government services. Each site has its own layout, many pages are rendered with JavaScript, and much of the useful detail sits inside PDFs. The authority wanted a single conversational entry point that answers in natural German, links back to the official source and handles time-sensitive questions such as upcoming events. Because answers would come through an official channel, a wrong opening time or a past event shown as upcoming would damage public trust.
One reliable answer from many differently built websites
- Scrapers that break. Extraction had to understand what a page says rather than depend on fixed selectors, including on dynamic and multilingual pages.
- Content across independent domains. Each domain had different sitemaps and crawl rules, and much of the content was in PDFs. The crawler had to find every relevant page.
- Administrative German. Questions in everyday language had to reach official pages written in administrative vocabulary, so retrieval had to work on meaning.
- Not every question needs a search. Some messages need no lookup and some are too vague to answer. Sending everything through retrieval adds latency and noise.
- Time-dependent questions. Phrases such as "tomorrow" or "this weekend" had to resolve to real dates, returning only events in that window.
- Noisy retrieval. Vector search returns many loosely related passages, so a second ranking stage was needed before the language model saw any content.
What FiftyFive built
A two-person FiftyFive AI engineering team delivered the system in two phases: Phase 1: a general-purpose, multi-agent LLM extraction platform that returns structured data from websites without site-specific rules. Phase 2: on that crawling foundation, a multi-site crawler with PDF ingestion, a multilingual semantic index, a query-routing and date-resolution layer, and a two-stage retrieval pipeline that produces grounded, source-linked answers in German through a FastAPI service.
How the solution works
Extraction without site-specific rules
- Playwright renders dynamic, JavaScript-driven pages, and BeautifulSoup isolates the main content from the DOM.
- A multi-agent LLM pipeline using Google Gemini then analyses each page, interprets its context and returns structured information such as event details, using zero-shot understanding instead of hand-written selectors.
- The same pipeline handles static, dynamic and multilingual pages.
Multi-site crawling and document ingestion
- The crawler starts from each domain's sitemap, including nested sitemap indexes, and falls back to a multi-threaded crawl when no sitemap exists.
- It honours robots.txt with polite request delays, normalises URLs by stripping tracking parameters and fragments to remove duplicates, and extracts text from linked PDFs with pdfplumber.
- A re-indexing API endpoint refreshes content for any list of sites on demand.
Multilingual semantic index
- Content is split with sentence-aware chunking at 512 tokens with overlap, so passages keep their context.
- LlamaIndex builds 1,024-dimension embeddings with the BAAI bge-m3 multilingual model, and Pinecone serverless stores them for cosine-similarity search.
- Every chunk carries its source URL for attribution.
Query routing and date understanding
- Before retrieval, a Gemini 2.0 Flash routing step decides whether to answer a simple question directly, ask a clarifying question or run retrieval. dateparser converts relative expressions such as "morgen" into exact dates before search, event questions widen the result set, and conversation history carries across turns for follow-ups.
Two-stage retrieval and grounded answers
- The assistant retrieves the top 20 passages by vector similarity and reranks them with bge-reranker-v2-m3.
- The top 7 passages (15 for event questions) go to the language model, which answers only from that content in natural German, with a polite fallback when the information is not available.
- The FastAPI service returns structured JSON containing the answer, any events (name, time, location, link) and source links.
- The system is packaged with Docker.
Technology stack
What the solution enabled
Business transformation
Indexed across five public domains, including linked PDFs
Passages go to the language model through two-stage reranking
LLM extraction pipeline, then crawler, vector index and assistant.
Extraction without custom rules
LLM-based extraction returns structured event data from static, dynamic and multilingual websites without site-specific code.
One entry point to municipal information
About 9,000 URLs across five public domains, including linked PDFs, are searchable through one chat interface and can be re-indexed on demand.
Grounded, source-linked answers
Two-stage retrieval keeps answers tied to official content, and every answer links to its sources.
Time-aware event answers
Relative dates are resolved before search, so event questions return events in the requested window.
FiftyFive Technologies built a German-language information assistant for a European municipal authority whose public information was spread across several independently built websites and PDF documents. In two phases, FiftyFive developed an LLM-based extraction pipeline that needs no site-specific rules, then a crawler, a multilingual Pinecone vector index and a FastAPI assistant using Google Gemini, LlamaIndex and two-stage reranking. The delivered system indexes about 9,000 URLs across five public domains and answers in German with source links and date-aware event results.
Technical questions
How do you stop a RAG assistant from showing past events as upcoming?
FiftyFive Technologies resolved relative date expressions such as "tomorrow" or "this weekend" into exact dates with dateparser before any search ran. Event questions then retrieve a wider set of passages, which are reranked, and only events in the requested window are returned, each with its name, time, location and source link.
How do you keep answers tied to official sources?
Every indexed chunk stores its source URL. The assistant retrieves 20 candidate passages, reranks them with bge-reranker-v2-m3 and passes only the top 7 (15 for events) to the language model, which is instructed to answer from that content alone and to fall back politely when the information is missing. Each answer returns its source links.