09-25-2025 10:34 AM - edited 09-28-2025 01:09 AM
Retrieval-Augmented Generation (RAG) has become the cornerstone of modern AI applications, enabling organizations to leverage their proprietary data for intelligent question-answering systems. However, building robust RAG pipelines that are scalable, reliable, and maintainable remains a significant challenge. This article demonstrates how to overcome these challenges by integrating LangChain with Cisco Crosswork Workflow Manager (CWM) to create enterprise-grade RAG workflows.
Although creating a simple RAG system with LangChain is relatively easy, scaling and managing it brings significant challenges:
By creating a LangChain adapter for Cisco Crosswork Workflow Manager, we can leverage the best of both worlds:
This solution consists of two main workflows that work in tandem:
The document ingestion workflow handles the complete pipeline from PDF to searchable vectors, ensuring data is processed efficiently and accurately.
Sample Input Configuration:
{
"chunk_overlap": 300,
"chunk_size": 1500,
"collection_name": "pdf-test-collection",
"embedding_model": "text-embedding-ada-002",
"extract_metadata": true,
"pdf_path": "/path/to/document.pdf",
"preserve_formatting": true,
"split_pages": true
}
The retrieval and generation workflow provides intelligent, context-aware answers based on the documents stored in the vector database.
Sample Input Configuration:
{
"collection_name": "pdf-test-collection",
"content_field": "text",
"embedding_model": "text-embedding-ada-002",
"question": "Why is IoT important?",
"score_threshold": 0.7,
"search_limit": 5
}
Our Go-based LangChain adapter exposes key document and model operations as CWM activities, creating a seamless bridge between the two systems.
CWM provides comprehensive, out-of-the-box monitoring capabilities for every workflow execution:
The integration of LangChain with Cisco Crosswork Workflow Manager demonstrates a powerful pattern for deploying durable and scalable AI/ML workflows. By combining LangChain's rich AI capabilities with CWM's orchestration, we have created a solution that is both powerful and durable.
This approach enables organizations to:
As AI continues to transform business processes, the combination of specialized AI frameworks with enterprise workflow orchestration platforms will become increasingly critical for organizations seeking to deploy AI at scale.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: