RAG

Support replies in the right language

Team project built at the Neural Wave hackathon, on the challenge set by Swisscom.

ClientHackathon / challenge
CategoryRAG

The challenge

The challenge concerned Swisscom's assistant 'Sam', which had three critical problems: it answered in the wrong language, provided irrelevant or broken URLs, and gave responses too short, pushing customers to request a human agent.

The team's solution

The team built a RAG architecture with LangChain featuring two-phase retrieval: similarity search (K=30) followed by BM25 reranking (K=3). Embeddings with OpenAI text-embedding-3-large, ChromaDB vector store. Generation with GPT-4o with conversation history summarized at each turn. Native multilingual support (DE/FR/IT/EN) without additional filters, thanks to chunk-level reranking.

Key results

  • Average score of 0.78 on scale vs Sam across 85 questions in 4 languages
  • An impartial LLM judge prefers the team's assistant 8 out of 10 times
  • Language detection problem completely solved
  • Relevant and verified URLs in responses

Key metrics

0.78Score vs Sam
8/10Preference
4Languages
85Test Questions

Technologies used

LangChainChromaDBOpenAIGPT-4oBM25

Related service: Search your company's documents

Ready to transform your business?

Let's discuss how we can help you achieve similar results with AI solutions tailored to your needs.

Book the free 30-minute call

or email info@saccoai.com