{"record":{"id":"78cabfdd6d6ed4c3","repo":"run-llama/llama_index","slug":"unknown-document-type-type-document","errorCode":null,"errorMessage":"Unknown document type: {type(document)}","messagePattern":"Unknown document type: (.+?)","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"llama-index-core/llama_index/core/node_parser/node_utils.py","lineNumber":88,"sourceCode":"                text_template=document.text_template,\n                relationships=relationships,\n            )\n            nodes.append(node)\n        elif isinstance(document, TextNode):\n            node = TextNode(\n                id_=id_func(i, document),\n                text=text_chunk,\n                embedding=document.embedding,\n                excluded_embed_metadata_keys=document.excluded_embed_metadata_keys,\n                excluded_llm_metadata_keys=document.excluded_llm_metadata_keys,\n                metadata_seperator=document.metadata_separator,\n                metadata_template=document.metadata_template,\n                text_template=document.text_template,\n                relationships=relationships,\n            )\n            nodes.append(node)\n        else:\n            raise ValueError(f\"Unknown document type: {type(document)}\")\n\n    return nodes\n","sourceCodeStart":70,"sourceCodeEnd":91,"githubUrl":"https://github.com/run-llama/llama_index/blob/afd0fef371831f9bda13e5af7167cf4e981278ab/llama-index-core/llama_index/core/node_parser/node_utils.py#L70-L91","documentation":"Error \"Unknown document type: {type(document)}\" thrown in run-llama/llama_index.","triggerScenarios":"Thrown at llama-index-core/llama_index/core/node_parser/node_utils.py:88 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a Document or BaseNode instance.","Convert the input into a Document before building nodes from it."],"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"}