{"record":{"id":"1d03a4981cfe1a8c","repo":"BerriAI/litellm","slug":"vector-store-index-not-found-for-collection-name","errorCode":null,"errorMessage":"Vector store index not found for {collection_name}","messagePattern":"Vector store index not found for (.+?)","errorType":"exception","errorClass":"Exception","httpStatus":500,"severity":"error","filePath":"litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py","lineNumber":494,"sourceCode":"            status_code=400,\n            detail=f\"Collection {collection_name} is not a litellm managed vector store index. Only litellm managed vector store indexes are supported.\",\n        )\n\n    is_allowed_to_call_vector_store_endpoint(\n        index_name=collection_name,\n        provider=LlmProviders.MILVUS,\n        request=request,\n        user_api_key_dict=user_api_key_dict,\n    )\n    # get the vector store name from index registry\n\n    index_object: Final = (\n        (litellm.vector_store_index_registry.get_vector_store_index_by_name(vector_store_index_name=collection_name))\n        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    )","sourceCodeStart":476,"sourceCodeEnd":512,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py#L476-L512","documentation":"After authorization, the handler looks up the previously validated collection name in litellm.vector_store_index_registry.get_vector_store_index_by_name() and gets None — the index entry disappeared between the is_vector_store_index check and the fetch (e.g. concurrent deletion or config reload). Thrown as a bare Exception, not an HTTPException.","triggerScenarios":"Thrown at litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py:494 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Create a vector store index for the given collection_name via the proxy's vector store API.","Check for typos in collection_name; list existing indexes to confirm the correct name."],"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"}