Building a Robust Retrieval-Augmented Generation Chatbot for Immigration Knowledge Base using Google Cloud Vertex AI and Open-Source LLMs

This paper details the end-to-end development and implementation of a Retrieval-Augmented Generation (RAG) chatbot designed to provide accurate and grounded answers from a custom knowledge base on immigration policies and procedures. Leveraging Google Cloud’s Vertex AI for robust text embedding and vector search capabilities via Matching Engine, the system demonstrates an effective architecture for combating the inherent limitations of large language models (LLMs), such as factual inaccuracies and knowledge cut-off dates. The development journey highlights practical challenges encountered during LLM integration, including free-tier service access limitations with Google’s proprietary models and task-specific API constraints with hosted open-source solutions like Hugging Face’s Inference API. Ultimately, the project pivots to a strategy of local LLM deployment, providing valuable insights into the full lifecycle of a RAG system and the critical considerations for productionizing such applications within cloud environments, particularly concerning resource management and cost optimization.

Publication Details

Journal
Figshare
Published
2025-01-01
DOI
https://doi.org/10.6084/m9.figshare.29154950.v1
Primary Topic
AI in Service Interactions
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Building a Robust Retrieval-Augmented Generation Chatbot for Immigration Knowledge Base using Google Cloud Vertex AI and Open-Source LLMs

Figshare
AI in Service Interactions
article

Building a Robust Retrieval-Augmented Generation Chatbot for Immigration Knowledge Base using Google Cloud Vertex AI and Open-Source LLMs

article en

Abstract

This paper details the end-to-end development and implementation of a Retrieval-Augmented Generation (RAG) chatbot designed to provide accurate and grounded answers from a custom knowledge base on immigration policies and procedures. Leveraging Google Cloud’s Vertex AI for robust text embedding and vector search capabilities via Matching Engine, the system demonstrates an effective architecture for combating the inherent limitations of large language models (LLMs), such as factual inaccuracies and knowledge cut-off dates. The development journey highlights practical challenges encountered during LLM integration, including free-tier service access limitations with Google’s proprietary models and task-specific API constraints with hosted open-source solutions like Hugging Face’s Inference API. Ultimately, the project pivots to a strategy of local LLM deployment, providing valuable insights into the full lifecycle of a RAG system and the critical considerations for productionizing such applications within cloud environments, particularly concerning resource management and cost optimization.

Figshare
Openalex Percentile: Top 74%
AI in Service Interactions
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.