Skip to content

Hosted Models & AI APIs ​

The KDKP hosts a range of open-source models behind standardized, OpenAI-compatible APIs so that cantonal departments can integrate them in a consistent way.


Getting Started ​

All KDKP Large Language Models, embeddings, and rerankers are exposed via OpenAI-compatible endpoints. GLiNER is the exception, it has its own REST API. We provide templates, credential setup, and notes on cantonal network truststore integration to help developers connect.

TIP

API Starter Code Repository Client libraries, connection scripts, and usage examples for Python and other runtimes are available in the public DCC-BS kdkp-api-starter-code repository.


How We Select Models ​

Every candidate model must pass five hard gates (GPU fit, one server, vLLM, licence, Hugging Face), then we test it on our own data, in our apps and under load. Leaderboards such as Artificial Analysis are inputs, not the decision.

The full method is described in selection standard. Test results has the scores of the speech, OCR and document models, and lists the models we tested and didn't adopt.


Model Status ​

Each model below is marked with a status:

  • 🟢 Active — in production use.
  • 🟡 Deactivated — temporarily turned off, may return.
  • ⚪ Retired — no longer hosted.

Model Catalog ​

Models are grouped by function: Large Language Models (LLM), text embeddings and rerankers, named entity recognition, audio processing, Optical Character Recognition (OCR), and document parsing.

1. Large Language Models (LLM) ​

Gemma 4 31B — 🟢 Active ​

General-purpose LLM from Google. Supports reasoning, tool-use, and vision (image/video) input.

Qwen 3.5 4B — 🟢 Active ​

Small model from Alibaba for background tasks. Bebbi Bot uses it as task model for chat titles, tags and follow-up questions, so these calls don't queue behind chats on Gemma 4. Thinking is off.

Qwen 3.5 27B — ⚪ Retired ​

Multimodal reasoning model from Alibaba. Spent too many tokens on reasoning.

Qwen 3 32B — ⚪ Retired ​

Reasoning LLM from Alibaba. Replaced by Gemma 4.

Gemma 3 27B — ⚪ Retired ​

Vision-language model from Google. Previously used for experimental visual tasks.

Llama 3.3 70B — ⚪ Retired ​

Generative text model from Meta AI.


2. Embeddings & Rerankers ​

Embeddings and rerankers power the retrieval pipelines behind semantic search and RAG assistants.

Qwen 3 4B Embedding — 🟢 Active ​

Text embedding model that turns documents and queries into dense vectors. We serve our own FP8 quantization; the API name is Qwen/Qwen3-Embedding-4B.

Qwen 3 4B Reranker — 🟢 Active ​

Cross-encoder that re-scores and re-orders search results. We serve our own FP8 quantization; the API name is Qwen/Qwen3-Reranker-4B. vLLM runs it with the Qwen3 reranker prompt template, without it the scores barely separate relevant from unrelated passages.

Qwen 3 0.6B Embedding and Reranker — ⚪ Retired ​

The 0.6B versions of the two models above. Replaced by the 4B versions.


3. Named Entity Recognition ​

GLiNER2 Multi — 🟢 Active ​

Finds entities of any type you name in a request (people, addresses, case numbers, and so on), with a confidence score and character offsets for each hit. No fine-tuning needed for new entity types. Runs behind our own REST API (dcc-gliner-api), not an OpenAI-compatible one.


4. Audio Processing (Speech-to-Text) ​

FasterWhisper — 🟢 Active ​

Speech-to-text runtime for transcription and speaker indexing.

  • Description: OpenAI's Whisper model optimized with CTranslate2, combined with PyAnnote diarization for speaker indexing.
  • Hugging Face Model: openai/whisper-large-v2 (Transcription) and pyannote/speaker-diarization-community-1 (Speaker Diarization)
  • Applications: Transcribo, BS-Übersetzer, Kantonspolizei Berichtgenerator, DCC Berichtgenerator.

5. Optical Character Recognition (OCR) ​

GLM-OCR — 🟢 Active ​

OCR engine for multi-lingual document layouts; extracts text from scanned images and forms.

  • Hugging Face Model: zai-org/GLM-OCR
  • Applications: RPA (Robotic Process Automation) workloads in the GD department, StatA survey questionnaires.

PP-OCRv6 — 🟢 Active ​

OCR engine for printed text inside Docling. Runs locally in the Docling worker, next to GLM-OCR for handwriting. See Docling PP-OCRv6 Plugin.

Dots.ocr — ⚪ Retired ​

Alternative OCR engine.


6. Document Processing ​

Docling — 🟢 Active ​

Layout-aware parser that converts PDF, DOCX, and PPTX files into Markdown or JSON.

  • Official Documentation: Docling Core
  • Applications: Bebbi Bot, TextMate, BS-Übersetzer, AnonyMate, BaselCityGPT, OGD GR Geschäfte.

Developed with ❤️ by the DCC. Documentation released under the MIT License.