def from_docs(
        cls,
        documents: List[Document],
        index_classes: List[Type[BaseIndex]] = DEFAULT_INDEX_CLASSES,
        retriever_modes: INDEX_SPECIFIC_QUERY_MODES_TYPE = DEFAULT_MODES,
        **kwargs: Any,
    ) -> Playground:
        """
        Initialize with Documents using the default list of indices.

        Args:
            documents: A List of Documents to experiment with.

        """
        if len(documents) == 0:
            raise ValueError(
                "Playground must be initialized with a nonempty list of Documents."
            )

        indices = [
            index_class.from_documents(documents, **kwargs)
            for index_class in index_classes
        ]
        return cls(indices, retriever_modes)

        Initialize with Documents using the default list of indices.

        Args:
            documents: A List of Documents to experiment with.

        
llama-index-core/llama_index/core/playground/base.py