Overview
I had the opportunity to use LlamaIndex, GPT4, and gradio together, so this is a memo of the process.
Since the text used was small in size, the results are accordingly modest, but I prototyped a chatbot for Shibusawa Eiichi.

Background
I referred to the following article.
https://qiita.com/DeepTama/items/1a44ddf6325c2b2cd030
Based on the above, I made modifications to work with libraries as of April 20, 2024. The notebook is published at the following location.
https://github.com/nakamura196/000_tools/blob/main/LlamaIndex%2BGPT4%2Bgradio.ipynb
The following data was used.
Reconstruction and Utilization of “Shibusawa Eiichi Biographical Materials” Text Data Using TEI
Summary
I hope this serves as a helpful reference.