/

German Foreign Office policy officers had to manually review hundreds of UN stakeholder submissions with no way to compare positions across documents. Omdena partnered with the Data Innovation Lab to build an AI system that could search, summarize, and compare the full corpus in 12 weeks. Delivered: three summary types, a natural language policy chatbot, and stakeholder alignment heatmaps — verified with no hallucinations.
| Outcome | Detail |
| AI policy assistant | Proof-of-concept system for GDC document retrieval, summarization, and comparison |
| Documents processed | 15 GDC submissions (10 PDFs + 5 Power BI) across 7 UN digital topics |
| Summarization modes | Three types: extractive, abstractive (~400 words), and Chain of Density (3–5 sentences) |
| TruLens relevance | 0.88 (extractive index) and 0.94 (abstractive index) |
| TruLens groundedness | 0.99 (extractive index) and 0.88 (abstractive index) |
| TruLens correctness | 0.90 (extractive index) and 0.96 (abstractive index) |
| Stakeholder heatmaps | Manhattan distance heatmaps of entity position divergence across GDC topics |
During the UN Global Digital Compact consultation, the German Federal Foreign Office received hundreds of submissions from governments, NGOs, and private sector entities. Documents arrived in two formats — structured PDFs and Power BI dashboard entries — with no shared schema and no tool for cross-document analysis or position comparison.
Foreign policy officers had to read, compare, and synthesize this corpus under tight negotiation timelines. There was no structured way to identify consensus or divergence between stakeholder positions before entering talks.
Omdena collaborated with the German Federal Foreign Office’s Data Innovation Lab — affiliated with GovTech Campus Germany — over 12 weeks to build a proof-of-concept policy document intelligence system. The DIL selected the UN Global Digital Compact negotiations as the test case: a well-scoped corpus with seven defined digital policy topics and a clear end user. A 14-member Omdena data science team delivered the build.
The project ran in two phases. Phase 1 established core retrieval and query functionality. Phase 2 replaced it with a more capable custom pipeline suited for production development.
A five-component LlamaIndex pipeline ingested PDFs via PyPDF, indexed document chunks using text-embedding-ada-002 in Weaviate, and surfaced responses through a gpt-3.5-turbo-1106 retrieval agent. The agent broke complex queries into subqueries before combining answers and returning them to the Streamlit UI. This served as a working prototype before committing to a custom architecture.

Phase 2 used Prefect orchestration and IBM DeepSearch to structure PDFs into labeled sections in 600-token chunks. gpt-4-1106-preview handled NER across six entity types — PERSON, ORG, GPE, EVENTS, DATE, LAW — selected for its 128K context window and one-third lower cost than gpt-4.
Three summary types were generated per document-topic pair at ingestion time and stored in PostgreSQL:
All summaries were embedded using text-embedding-ada-002 across four Weaviate indexes, with raw documents in S3 on AWS. Ingestion took 5–10 minutes per document. Retrieval was near-instantaneous.

Pairwise similarity heatmaps compared entity positions across GDC topics. Three distance metrics were tested; Manhattan distance produced the widest, most interpretable range of distinction and was selected for all stakeholder visualizations.

Diplomacy GPT was delivered as a Streamlit web application hosted on AWS EC2. Policy officers registered, logged in, and queried the full GDC corpus in natural language. The system embedded each query, retrieved relevant chunks from Weaviate, and returned LLM-generated responses with source document attribution. Three interface pages:
Before this project, the DIL had no queryable layer over the GDC corpus. Policy officers reviewed documents manually with no structured way to compare positions across entities. Diplomacy GPT made the full corpus queryable for the first time — designed explicitly as decision support, with all final judgments remaining with the policy officer.
The TruLens evaluation gave the DIL more than a working demo. Relevance 0.88–0.94, groundedness 0.88–0.99, correctness 0.90–0.96, no hallucination alarms. Any future production build can be measured against those numbers.
K-means, DBSCAN, and hierarchical clustering all failed on the GDC corpus — poor Silhouette scores across every configuration tested. UN entities use shared diplomatic framing that suppresses surface differences between positions. That is a property of the data, not a model limitation. Knowledge graphs, which capture relationship structure rather than semantic similarity, are the more promising direction.
Five-to-ten minutes to ingest per document; near-instantaneous at query time. Batch-ahead generation is clearly the right call for a corpus ingested once and queried many times.
The team applied the Microsoft RAI Impact Assessment Framework and TruLens from day one — treating responsible AI as a design constraint, not a compliance checkbox. The result: a concrete harm inventory, XAI objectives, and quantified quality scores the DIL could use in their own governance process. A government agency cannot act on a PoC it cannot audit. Without this baseline, further investment is a much harder decision to justify.
The PoC processed 15 documents as a deliberate scope decision. A production build needs:
Extractive, abstractive (~400 words), and Chain of Density (3–5 sentences) — generated per entity-topic pair at ingestion time. TruLens evaluation: abstractive index achieved relevance 0.94, groundedness 0.88, correctness 0.96.
Manhattan distance matrices across seven GDC topics, showing entity alignment at a glance. Selected over cosine similarity and Euclidean distance after adversarial testing confirmed the widest interpretable range of distinction.
Phase 2 pipeline — Prefect ETL, IBM DeepSearch, gpt-4-1106-preview NER, Weaviate, PostgreSQL — evaluated across twelve TruLens metrics. No hallucination alarms flagged.
Omdena partnered with the German Federal Foreign Office’s Data Innovation Lab over 12 weeks to build a proof-of-concept AI policy assistant for the UN Global Digital Compact negotiations. A 14-member team delivered a two-phase LLM pipeline combining Prefect-orchestrated ETL, IBM DeepSearch document structuring, three-mode summarization, Weaviate vector retrieval, and stakeholder heatmap visualization, evaluated using TruLens across twelve quality metrics..