---
title: "Banque des Territoires (CDC Group) x Polyconseil x Hugging Face: Enhancing a Major French Environmental Program with a Sovereign Data Solution"
description: "Banque des Territoires, Polyconseil and Hugging Face built a sovereign RAG application that drafts sourced email replies for the EduRénov school-renovation program from its internal documentation."
url: "https://swe.quest/articles/banque-des-territoires-cdc-group-x-polyconseil-x-hugging-face-enhancing-a-major-eeda57273a842369"
canonical: "https://huggingface.co/blog/sovereign-data-solution-case-study"
source: "Hugging Face"
published: "2024-07-09"
difficulty: "easy"
kind: "Case study"
reading_minutes: 17
tags: ["rag","llms","system-design","inference"]
---

# Banque des Territoires (CDC Group) x Polyconseil x Hugging Face: Enhancing a Major French Environmental Program with a Sovereign Data Solution

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2024-07-09, 17 min read, Case study. Original: [https://huggingface.co/blog/sovereign-data-solution-case-study](https://huggingface.co/blog/sovereign-data-solution-case-study)

## Summary

Banque des Territoires, Polyconseil and Hugging Face built a sovereign RAG application that drafts sourced email replies for the EduRénov school-renovation program from its internal documentation. Agents edit and validate the drafts, and that feedback is collected for future fine-tuning and RLHF. The system is a modular monolith in hexagonal architecture, with the LLM, embedding model and retrieval method swappable through configuration. LLM calls are offloaded to Hugging Face Text Generation Inference on GPUs at SecNumCloud-qualified NumSpot, currently running Mistral-7B-Instruct-v0.3, with CroissantLLM under evaluation and RAGAS used for evaluation.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [RAG & retrieval](https://swe.quest/tags/rag.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)

## Prerequisites

- retrieval-augmented generation
- LLM basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

Text Generation Inference, Mistral-7B-Instruct, NumSpot, SecNumCloud, RAGAS, CroissantLLM, EduRénov, Hugging Face

## Related posts

- [Hugging Face x LangChain : A new partner package](https://swe.quest/articles/hugging-face-x-langchain-a-new-partner-package-4a05b92542fbd2d8.md): Hugging Face · 2024-05-14 · Medium · 4 min read · LLMs, Python, Inference & serving, RAG & retrieval
  langchain-huggingface is a new Python partner package jointly maintained by Hugging Face and LangChain, replacing community-written integrations that had drifted out of date.
- [Making (Very) Small LLMs Smarter](https://swe.quest/articles/making-very-small-llms-smarter-de3c73ba9f79b97c.md): Docker · 2026-01-16 · Medium · 17 min read · RAG & retrieval, LLMs, AI for coding, Containers, JavaScript
  A 3B-parameter local model (Qwen2.5-Coder-3B, Q4\_K\_M) can become a useful coding assistant for an unfamiliar, recent Go library (Nova) when it is given a small, focused RAG context.
- [Build a custom RAG AI agent in TypeScript and Jupyter](https://swe.quest/articles/build-a-custom-rag-ai-agent-in-typescript-and-jupyter-fc00c37173b8b56a.md): Deno · 2025-03-18 · Medium · 11 min read · RAG & retrieval, AI agents, TypeScript, LLMs
  A local agentic RAG pipeline built in TypeScript inside a Deno Jupyter notebook, using LangChain and LangGraph with Ollama models.
- [Expert Support case study: Bolstering a RAG app with LLM-as-a-Judge](https://swe.quest/articles/expert-support-case-study-bolstering-a-rag-app-with-llm-as-a-judge-0a36f6542d44eb7e.md): Hugging Face · 2024-10-28 · Medium · 10 min read · Evaluation, RAG & retrieval, LLMs, AI agents
  Digital Green's Farmer.chat, a GPT-4o ReAct agent backed by a RAG pipeline over ~46,000 agricultural research papers (semantic chunking, Qdrant), uses LLM-as-a-judge to evaluate prompt clarity, question type, answered rate and RAG faithfulness at scale.
- [Mistral 7B and BAAI on Workers AI vs. OpenAI Models for RAG](https://swe.quest/articles/mistral-7b-and-baai-on-workers-ai-vs-openai-models-for-rag-30d70a2c28e85606.md): Neon · 2023-12-11 · Medium · 7 min read · RAG & retrieval, LLMs, Evaluation, Inference & serving
  Swapping gpt-3.5-turbo for mistral-7b-instruct-v0.1 and text-embedding-ada-002 for BAAI's bge-base-en-v1.5 (both on Cloudflare Workers AI) in Neon's docs chatbot shows embeddings are close to interchangeable but text generation is not.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
