{"record":{"id":"844784807c6b99fa","repo":"run-llama/llama_index","slug":"every-index-in-playground-should-be-an-instance-of","errorCode":null,"errorMessage":"Every index in Playground should be an instance of BaseIndex.","messagePattern":"Every index in Playground should be an instance of BaseIndex\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"llama-index-core/llama_index/core/playground/base.py","lineNumber":90,"sourceCode":"        \"\"\"\n        if len(documents) == 0:\n            raise ValueError(\n                \"Playground must be initialized with a nonempty list of Documents.\"\n            )\n\n        indices = [\n            index_class.from_documents(documents, **kwargs)\n            for index_class in index_classes\n        ]\n        return cls(indices, retriever_modes)\n\n    def _validate_indices(self, indices: List[BaseIndex]) -> None:\n        \"\"\"Validate a list of indices.\"\"\"\n        if len(indices) == 0:\n            raise ValueError(\"Playground must have a non-empty list of indices.\")\n        for index in indices:\n            if not isinstance(index, BaseIndex):\n                raise ValueError(\n                    \"Every index in Playground should be an instance of BaseIndex.\"\n                )\n\n    @property\n    def indices(self) -> List[BaseIndex]:\n        \"\"\"Get Playground's indices.\"\"\"\n        return self._indices\n\n    @indices.setter\n    def indices(self, indices: List[BaseIndex]) -> None:\n        \"\"\"Set Playground's indices.\"\"\"\n        self._validate_indices(indices)\n        self._indices = indices\n\n    def _validate_modes(self, retriever_modes: INDEX_SPECIFIC_QUERY_MODES_TYPE) -> None:\n        \"\"\"Validate a list of retriever_modes.\"\"\"\n        if len(retriever_modes) == 0:\n            raise ValueError(","sourceCodeStart":72,"sourceCodeEnd":108,"githubUrl":"https://github.com/run-llama/llama_index/blob/afd0fef371831f9bda13e5af7167cf4e981278ab/llama-index-core/llama_index/core/playground/base.py#L72-L108","documentation":"Error \"Every index in Playground should be an instance of BaseIndex.\" thrown in run-llama/llama_index.","triggerScenarios":"Thrown at llama-index-core/llama_index/core/playground/base.py:90 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass only BaseIndex instances (e.g. VectorStoreIndex) in the indices list.","Build proper index objects before constructing the Playground."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"afd0fef371831f9bda13e5af7167cf4e981278ab","analyzedAt":"2026-08-15T05:42:58.429Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}