{"record":{"id":"9a62943bd841b5f6","repo":"BerriAI/litellm","slug":"rag-ingestion-not-supported-for-provider-custom","errorCode":null,"errorMessage":"RAG ingestion not supported for provider: {custom_llm_provider}. Supported providers: {list(provider_map.keys())}","messagePattern":"RAG ingestion not supported for provider: (.+?)\\. Supported providers: (.+?)","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"litellm/rag/utils.py","lineNumber":38,"sourceCode":"    Returns:\n        The ingestion class for the provider\n\n    Raises:\n        ValueError: If the provider is not supported\n    \"\"\"\n    from litellm.llms.vertex_ai.rag_engine.ingestion import VertexAIRAGIngestion\n    from litellm.rag.ingestion.bedrock_ingestion import BedrockRAGIngestion\n    from litellm.rag.ingestion.openai_ingestion import OpenAIRAGIngestion\n\n    provider_map: Final = {\n        \"openai\": OpenAIRAGIngestion,\n        \"bedrock\": BedrockRAGIngestion,\n        \"vertex_ai\": VertexAIRAGIngestion,\n    }\n\n    ingestion_class: Final = provider_map.get(custom_llm_provider)\n    if ingestion_class is None:\n        raise ValueError(\n            f\"RAG ingestion not supported for provider: {custom_llm_provider}. \"\n            f\"Supported providers: {list(provider_map.keys())}\"\n        )\n\n    return ingestion_class\n\n\ndef get_rag_transformation_class(custom_llm_provider: str):\n    \"\"\"\n    Get the appropriate RAG transformation class for a provider.\n\n    Args:\n        custom_llm_provider: The LLM provider name\n\n    Returns:\n        The transformation class for the provider, or None if not needed\n    \"\"\"\n    if custom_llm_provider == \"vertex_ai\":","sourceCodeStart":20,"sourceCodeEnd":56,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/rag/utils.py#L20-L56","documentation":"Provider-map lookup failure in the RAG ingestion resolver: the given custom_llm_provider is not one of openai/bedrock/vertex_ai, so no ingestion class exists. A generic guard against unsupported provider strings.","triggerScenarios":"Thrown at litellm/rag/utils.py:38 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a supported custom_llm_provider for RAG ingestion (one of the listed provider_map keys)."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}