Submitted:
04 April 2026
Posted:
07 April 2026
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Methods
- Fourth Book of the Civil Code, dedicated to the law of succession (Ley 10/2008, de 10 de julio, del libro cuarto del Código civil de Cataluña, relativo a las sucesiones) [3]
- The Decree of June 2, 1944, approving definitively the Regulations for the organization and system of the Notary Profession (Decreto 2 junio 1944, por el que se aprueba con carácter definitivo el Reglamento de la organización y régimen del Notariado) [7].
3. Findings
3.1. General Findings
3.2. Examples of Specific Questions
- Question 1: Explain the difference between the legatee and heir.
- Question 2: What is the “legítima”?
- Question 3: In what language can a will be written?
- Question 4:Which testamentary provisions are void?
- Question 5: Who cannot be a witness to a will?
- Question 6:What happens if a notary falsifies a will?
- Question 7: What is the difference between a simple and a legal copy of a will?
- Question 8: What is the trustee’s responsibility?
- Question 9: Is it possible to issue copies of revoked wills, and what is their use?
- Question 10: How long are protocols kept at the notary’s office?
4. Discussion
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
| AI | Artificial intelligence |
| BERT | Bidirectional transformers for language understanding |
| CPU | Central processing unit |
| GPT | Generative pre-trained transformer |
| GPU | Graphics processing unit |
| LLM | Large language model |
| RAM | Random-access memory |
Appendix A
Appendix A.1. Transformer Explainer: Example

Appendix A.2. Transformer Explainer: Probability of “Expected” Token Being Sampled

References
- Código de Leyes Civiles de Cataluña. Agencia Estatal Boletin Oficial del Estado (BOE). https://www.boe.es/biblioteca_juridica/codigos/codigo.php?id=150&modo=2¬a=0&tab=2.
- Ley 10/2008, de 10 de julio, del libro cuarto del Código Civil de Cataluña, relativo a las sucesiones. «DOGC» núm. 5175, de 17/07/2008, «BOE» núm. 190, de 07/08/2008. Entrada en vigor: 01/01/2009. Departamento: Comunidad Autónoma de Cataluña. Referencia: BOE-A-2008-13533. Permalink ELI: https://www.boe.es/eli/es-ct/l/2008/07/10/10/con.
- Noticias Juridicas. Ley 10/2008, de 10 de julio, del libro cuarto del Código civil de Cataluña, relativo a las sucesiones. Website: https://noticias.juridicas.com/base_datos/CCAA/ca-l10-2008.html (Last accessed on 3rd April 2026). .
- GenCat. Departament de Justicia. Llibre quart del Codi civil de Catalunya, relatiu a les successions. Website: https://repositori.justicia.gencat.cat/handle/20.500.14226/589#page=1 (Last accessed on 3rd April 2026).
- Ley del Notariado de 28 de mayo de 1862. Publicado en: «Gaceta de Madrid» núm. 149, de 29/05/1862. Entrada en vigor:19/06/1862. Departamento: Ministerio de Gracia y Justicia. Referencia: BOE-A-1862-4073. Permalink ELI: https://www.boe.es/eli/es/l/1862/05/28/(1)/con.
- Preliminary title. Fundamental principles. Article 1. Decreto 2 junio 1944, por el que se aprueba con carácter definitivo el Reglamento de la organización y régimen del Notariado. Órgano MINISTERIO DE JUSTICIA. Publicado en BOE núm. 189 de 07 de Julio de 1944. Vigencia desde 27 de Julio de 1944. Revisión vigente desde 08 de Noviembre de 2015.
- Noticias Juridicas. Ley de 28 de mayo 1862, Orgánica del Notariado. Website: https://noticias.juridicas.com/base_datos/Privado/ln.html (Last accessed on 3r April 2026).
- Attention Is All You Need. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, Illia Polosukhin. arXiv:1706.03762.
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. Jacob Devlin, Ming-Wei Chang, Kenton Lee, Kristina Toutanova. arXiv:1810.04805.
- Zhang, E.Y.; Cheok, A.D.; Pan, Z.; Cai, J.; Yan, Y. From Turing to Transformers: A Comprehensive Review and Tutorial on the Evolution and Applications of Generative Transformer Models. Sci 2023, 5, 46. [CrossRef]
- Sebastian Ruder. An overview of gradient descent optimization algorithms. arXiv:1609.04747.
- ROBERT HECHT-NIELSEN. III.3 - Theory of the Backpropagation Neural Network**Based on “nonindent” by Robert Hecht-Nielsen, which appeared in Proceedings of the International Joint Conference on Neural Networks 1, 593–611, June 1989. © 1989 IEEE., Editor(s): Harry Wechsler, Neural Networks for Perception, Academic Press, 1992, Pages 65-93, ISBN 9780127412528. [CrossRef]
- LeCun, Y., Bottou, L., Orr, G. B., & Müller, K. R. (1998). Efficient backprop. In Neural networks: Tricks of the trade (pp. 9-50). Springer.
- Rumelhart, D. E., Hinton, G. E., & Williams, R. J. (1986). Learning representations by back-propagating errors. Nature, 323(6088), 533-536.
- Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, Ł., & Polosukhin, I. (2017). Attention is all you need. In Advances in neural information processing systems (Vol. 30).
- Guenole, N. (no date) Psychometrics.ai: Transforming Behavioral Science with Machine Learning. Available at: https://psychometrics.ai (Accessed on 3rd April 2026).
- Aeree Cho, Grace C. Kim, Alexander Karpekov, Alec Helbling, Zijie J. Wang, Seongmin Lee, Benjamin Hoover, Duen Horng Chau. Transformer Explainer: Interactive Learning of Text-Generative Models. arXiv:2408.04619.
- Ollama. Website: https://ollama.com/ (last accessed on 3rd April 2026).
- LM Studio AI. Element Labs, Inc. (c) 2026. Website: https://lmstudio.ai/ (last accessed on 3rd April 2026).
- Llama 3 open-source AI model. Meta. Website: https://www.llama.com/models/llama-3/ (Last accessed on 3rd April 2026).
- Patil, R.; Gudivada, V. A Review of Current Trends, Techniques, and Challenges in Large Language Models (LLMs). Appl. Sci. 2024, 14, 2074. [CrossRef]
- Abdollahi, M.; Yeganli, S.F.; Baharloo, M.; Baniasadi, A. Hardware Design and Verification with Large Language Models: A Scoping Review, Challenges, and Open Issues. Electronics 2025, 14, 120. [CrossRef]
- Chen X, Ma W, Li D, Zhu F, Routray S, Guduri M, Margala M. Kalman-based Adaptive Moment Estimation Optimisation Algorithm to Enhance GPT in LLMs for Medical Sentiment Analysis of Patient Health-related Feedback. IEEE J Biomed Health Inform. 2025 Jan 10;PP. Epub ahead of print. PMID: 40030961. [CrossRef]
- Ke, Y.H.; Jin, L.; Elangovan, K.; Abdullah, H.R.; Liu, N.; Sia, A.T.H.; Soh, C.R.; Tung, J.Y.M.; Ong, J.C.L.; Kuo, C.F.; et al. Retrieval augmented generation for 10 large language models and its generalizability in assessing medical fitness. NPJ Digit Med 2025, 8, 187. [CrossRef]
- Tayebi Arasteh, S.; Lotfinia, M.; Bressem, K.; Siepmann, R.; Adams, L.; Ferber, D.; Kuhl, C.; Kather, J.N.; Nebelung, S.; Truhn, D. RadioRAG: Online Retrieval-Augmented Generation for Radiology Question Answering. Radiol Artif Intell 2025, 7, e240476. [CrossRef]
- Zhang, R.; Wang, Y.; Yang, W.; Wen, J.; Liu, W.; Zhi, S.; Li, G.; Chai, N.; Huang, J.; Xie, Y.; et al. PlantGPT: An Arabidopsis-Based Intelligent Agent that Answers Questions about Plant Functional Genomics. Adv Sci (Weinh) 2025, 12, e03926. [CrossRef]
- Zhong, W.; Liu, Y.; Liu, Y.; Yang, K.; Gao, H.; Yan, H.; Hao, W.; Yan, Y.; Yin, C. Performance of ChatGPT-4o and Four Open-Source Large Language Models in Generating Diagnoses Based on China’s Rare Disease Catalog: Comparative Study. J Med Internet Res 2025, 27, e69929. [CrossRef]
- Meta. Llama API. Meet the models. Website: https://llama.developer.meta.com/docs/models (Last Accessed on 4th April 2026).
- Hugging Face. meta-llama/Meta-Llama-3-8B-Instruct. Website: https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct (Last accessed on 4th April 2026).


Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).