{"record":{"id":"94aa2b06f1df4a9d","repo":"BerriAI/litellm","slug":"vector-store-not-found-for-vector-store-name","errorCode":null,"errorMessage":"Vector store not found for {vector_store_name}","messagePattern":"Vector store not found for (.+?)","errorType":"exception","errorClass":"Exception","httpStatus":500,"severity":"error","filePath":"litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py","lineNumber":508,"sourceCode":"        if litellm.vector_store_index_registry is not None\n        else None\n    )\n    if index_object is None:\n        raise Exception(f\"Vector store index not found for {collection_name}\")\n\n    vector_store_name: Final = index_object.litellm_params.vector_store_name\n    vector_store_index: Final = index_object.litellm_params.vector_store_index\n\n    request_body[\"collectionName\"] = vector_store_index\n\n    # Update the request object with the modified collection name\n    _safe_set_request_parsed_body(request, request_body)\n\n    vector_store: Final = litellm.vector_store_registry.get_litellm_managed_vector_store_from_registry_by_name(\n        vector_store_name=vector_store_name\n    )\n    if vector_store is None:\n        raise Exception(f\"Vector store not found for {vector_store_name}\")\n    await assert_user_can_access_vector_store(\n        vector_store=vector_store,\n        user_api_key_dict=user_api_key_dict,\n    )\n    litellm_params = vector_store.get(\"litellm_params\") or {}\n    auth_credentials: Final = provider_config.get_auth_credentials(litellm_params=litellm_params)\n\n    extra_headers = auth_credentials.get(\"headers\") or {}\n\n    litellm_params = vector_store.get(\"litellm_params\") or {}\n\n    base_target_url = provider_config.get_complete_url(\n        api_base=litellm_params.get(\"api_base\"), litellm_params=litellm_params\n    )\n\n    if base_target_url is None:\n        raise Exception(f\"api_base not found in vector store configuration for {vector_store_name}\")\n","sourceCodeStart":490,"sourceCodeEnd":526,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py#L490-L526","documentation":"The vector store referenced by the resolved index object (index_object.litellm_params.vector_store_name) is absent from litellm.vector_store_registry, indicating an index definition pointing at a vector store that was never registered or has been removed. Thrown as a bare Exception from the Milvus pass-through handler.","triggerScenarios":"Thrown at litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:508 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Register the vector store (with vector_store_name) in config.yaml or via the management API.","Verify the vector_store_name in the request matches a configured entry exactly."],"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-14T00:17:10.932Z"}