Algorithm for Automatic Text Partitioning Based on Two-level Triplets
( Pp. 43-52)

Abstract:
This paper considers the problem of automatically segmenting text documents into semantically coherent fragments for use in RAG retrieval systems. We propose a graph segmentation method based on extracting two-level triplets using a large language model. The actual triplet level represents a substantive statement in the form “subject-relation-object,” preserving the full semantic context without accessing the source text. The semantic level provides ontological normalization through a canonical mapping of lexical forms to unified concept keys, eliminating graph fragmentation characteristic of Open Information Extraction and NER methods. Based on the extracted triplets, a directed knowledge graph is constructed and a root-based clustering algorithm with linear time complexity is applied. Each cluster is transformed into a self-contained text fragment. The method is compared with three basic segmentation strategies: fixed, semantic, and agent-based partitioning, on a corpus of 200 legal and technical texts. The proposed method achieves the best coherence (0.84) and atomicity (0.99) indices among all the approaches considered, and is comparable to the agent-based approach in terms of completeness (0.98) and vector search accuracy (0.95) with higher structural interpretability of the result.
How to Cite:
Ponimash Z.A. and Potanin M.V. Algorithm for automatic text partitioning based on two-level triplets. Computational Nanotechnology. 13, 2 (2026), 43–52. DOI: 10.33693/2313-223X-2026-13-2-43-52. EDN: YVIXAR
Reference list:
Lapshin S.V., Lebedev I.S., Spivak A.I. Clustering of texts using semantic-syntactic word relationships. Scientific and Technical Bulletin of Information Technologies, Mechanics and Optics. 2019. No. 6. Pp. 1058–1063. (In Rus.). DOI: 10.17586/2226-1494-2019-19-6-1058-1063. EDN: EOHNSO.
Otradnov K.K., Zhukov D.O., Novikova O.A. Clustering model of semi-structured text data. Modern Information Technologies and IT Education. 2017. No. 3. Pp. 100–115. (In Rus.). DOI: 10.25559/SITITO.2017.3.439. EDN: ZWJSEB.
Romanov A.S. A Method of semantic clustering for detecting signs of extremism in textual information. Reports of Tomsk State University of Control Systems and Radio Electronics. 2024. No. 4 (27). Pp. 141–149. (In Rus.). DOI: 10.21293/1818-0442-2024-27-4-141-149. EDN: RZDSTI.
Banko M., Cafarella M. J., Soderland S. et al. Open in­formation extraction from the web. In: Proceedings of the 20th In­ternational Joint Conference on Artificial Intelligence (IJCAI 2007). 2007. DOI: 10.5555/1625275.1625705.
Bosselut A., Rashkin H., Sap M. et al. COMET: Commonsense transformers for automatic knowledge graph construction. In: Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (ACL 2019). 2019. DOI: 10.18653/v1/P19-1470.
Devlin J., Chang M.-W., Lee K., Toutanova K. BERT: Pre-training of deep bidirectional transformers for language understanding. In: Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT 2019). 2019. DOI: 10.18653/v1/N19-1423.
Fader A., Soderland S., Etzioni O. Identifying relations for open information extraction. In: Proceedings of the Conference on Empirical Methods in Natural Language Processing (EMNLP 2011). 2011.
Hogan A., Blomqvist E., Cochez M. et al. Knowledge graphs. ACM Computing Surveys. 2021. Vol. 54. No. 4. DOI: 10.1145/3447772.
Kiss Cs., Nagy M., Szilágyi P. Max–Min semantic chunking of documents for RAG application. Discover Computing. 2025. Vol. 28. Art. 117. DOI: 10.1007/s10791-025-09638-7.
Kshirsagar A. Enhancing RAG performance through chunking and text splitting techniques. International Journal of Scientific Research in Computer Science Engineering and Information Technology. 2024. DOI: 10.32628/CSEIT2410593.
Lample G., Ballesteros M., Subramanian S. et al. Neural architectures for named entity recognition. In: Proceedings of the Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT 2016). 2016. DOI: 10.18653/v1/N16-1030.
Latif S., Ameer H., Akram M. H., Fatima M. The chunking paradigm: Recursive semantic for RAG optimization. In: Proceedings of the International Conference on Natural Language and Speech Processing (ICNLSP 2025). 2025.
Paulheim H. Knowledge graph refinement: A survey of approaches and evaluation methods. Semantic Web. 2017. Vol. 8. No. 3. DOI: 10.3233/SW-160218.
Keywords:
knowledge graph, semantic clustering, two-level triplet, ontological unification, search-augmented generation, large language models.