Build a Jev-powered Agentic RAG
雖然 vLLM 需要獨立的 server instances 與 routing layers 才能執行不同的 models 或 inference tasks,但 SIE 系統支援在單一 GPU 上同時 serving 多個不同的 models。在 benchmark 測試中,SIE 同時運行了 embedder、reranker、entity extractor 與 generator,在 32 個 in-flight requests 下完成了 2,700 個 requests,且保持零失敗率。該系統透過 dynamic loading、compute-aware batching、shared GPU memory 以及 opportunistic model eviction 實現了這種 multi-model efficiency。Agentic RAG 系統通常難以判斷檢索到的 evidence 何時不足,以及如何根據該判斷採取行動。本教學示範了如何建立一個 multi-company support desk,使用 InsForge 提供 backend services、EmbeddingGemma 2 進行 multimodal retrieval,並使用 Liquid AI 的 d1-3B open-weight decision model 來評估 answerability 與 relevance。透過將這些 models 部署在 Lightning AI Studio 並使用 Claude Code 進行設定,系統會在 evidence 充足時透過 Claude Haiku 5.5 生成答案,或在不足時自動 escalate 給真人 agent 處理問題,並將解答回填至 knowledge base 中。
閱讀原文 ↗vLLM 至今尚未解決這個問題:
雖然 vLLM 需要獨立的 server instances 與 routing layers 才能執行不同的 models 或 inference tasks,但 SIE 系統支援在單一 GPU 上同時 serving 多個不同的 models。在 benchmark 測試中,SIE 同時運行了 embedder、reranker、entity extractor 與 generator,在 32 個 in-flight requests 下完成了 2,700 個 requests,且保持零失敗率。該系統透過 dynamic loading、compute-aware batching、shared GPU memory 以及 opportunistic model eviction 實現了這種 multi-model efficiency。
- vLLM 需要為每個 model 與 task 配置獨立的 server instances 與 endpoints,因此 multi-stage pipelines 必須額外增加 routing layer。
- SIE 在單一 GPU 上同時 serving 了 embedder、reranker、entity extractor 與 generator。
- 此測試設定在 32 個 in-flight requests 的情況下處理了 2,700 個 requests,且零失敗。
- SIE 透過按需 dynamic loading models、保留 active models,並在需要 memory 時 evict 不活躍的 models,藉此最佳化單一 GPU 的 utilization。
- 其底層架構仰賴 dynamic loading、shared GPU memory,以及跨 OCR、embedding 與 generation 等多樣 workloads 的 compute-aware batching。
打造由 Jev 驅動的 Agentic RAG
Agentic RAG 系統通常難以判斷檢索到的 evidence 何時不足,以及如何根據該判斷採取行動。本教學示範了如何建立一個 multi-company support desk,使用 InsForge 提供 backend services、EmbeddingGemma 2 進行 multimodal retrieval,並使用 Liquid AI 的 d1-3B open-weight decision model 來評估 answerability 與 relevance。透過將這些 models 部署在 Lightning AI Studio 並使用 Claude Code 進行設定,系統會在 evidence 充足時透過 Claude Haiku 5.5 生成答案,或在不足時自動 escalate 給真人 agent 處理問題,並將解答回填至 knowledge base 中。
- 像 Jev 與 Liquid AI 的 d1 系列等 decision models 會評估檢索到的 evidence,並回傳結構化的判斷(例如 relevance 或 answerability),而非生成 free-form text。
- EmbeddingGemma 2 透過將文字與圖像投影到共享的 768 維度空間來提供 multimodal embeddings,支援跨 text chunks 與整頁 PNG 檔案的 cross-modal search。
- multimodal decision model d1-3B 與 EmbeddingGemma 2 能同時裝載在單一 NVIDIA L4 GPU 上,僅耗用約 7.2 GB 的 GPU memory。
- 當檢索到的 candidates 在 retry 後仍未達到 score thresholds 時,pipeline 會自動在 InsForge 中建立 support ticket 供真人審查,而不是生成 ungrounded 的 LLM 回應。
- 真人的回覆可以存回 knowledge base 中,提升未來針對類似 queries 的 retrieval 與 answerability。