<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Tracing the Pal.ola S. a¯ hi Royal Genealogy by Fusing LLMs and Databases?: A Case Study</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Hui Xu</string-name>
          <email>hui.xu@studium.uni-hamburg.de</email>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Thomas Asselborn</string-name>
          <email>thomas.asselborn@uni-hamburg.de</email>
          <xref ref-type="aff" rid="aff3">3</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Haiyan Hu-von Hinüber</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Oskar von Hinüber</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sylvia Melzer</string-name>
          <email>sylvia.melzer@uni-hamburg.de</email>
          <xref ref-type="aff" rid="aff2">2</xref>
          <xref ref-type="aff" rid="aff3">3</xref>
          <xref ref-type="aff" rid="aff4">4</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Max-Weber-Kolleg</institution>
          ,
          <addr-line>Steinplatz 2, 99085 Erfurt</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Shandong-Universität</institution>
          ,
          <addr-line>Shanda-Nanlu 27, 250100 Jinan</addr-line>
          ,
          <country country="CN">China</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>University of Hamburg, Centre for the Study of Manuscript (CSMC)</institution>
          ,
          <addr-line>Warburgstraße 26, 20354 Hamburg</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>University of Hamburg, Cluster of Excellence 'Understanding Written Artefacts' (UWA)</institution>
          ,
          <addr-line>Warburgstraße 26, 20354 Hamburg</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
        <aff id="aff4">
          <label>4</label>
          <institution>University of Hamburg, Institute of Humanities-Centered AI (CHAI)</institution>
          ,
          <addr-line>Warburgstraße 28, 20354 Hamburg</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this article, we explore an innovative approach to reconstruct the genealogy of the royal family Pal.ola S.a¯hi dynasty by combining Large Language Models (LLMs) with traditional database systems. The research aims to demonstrate how the fusion of various LLMs and structured historical data can enhance our understanding of complex genealogical relationships in historical families. The methodology involves using the contextual understanding and inference abilities of LLMs, such as GPT-3.5 Turbo, Mistral Instruct, to interpret and enhance historical information stored in relational databases. By combining these two data sources, the study seeks to identify patterns, fill gaps, and generate new insights into the Pa l.ola S.a¯hi lineage. This article addresses challenges such as reconciling conflicting information, handling uncertainties, and maintaining historical accuracy while utilizing agents such as Perplexity.ai, ChatGPT, UHHGPT, and GPT4All to generate inferences. The case study of the Pal.ola S.a¯hi royal family serves as a practical demonstration of this hybrid approach, showcasing its potential to enrich historical research. The findings not only contribute to a more comprehensive understanding of this specific dynasty but also provide a framework for applying similar methods to other genealogical studies in historical research. This research highlights the potential of interdisciplinary approaches in the humanities.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        The Gilgit bronze inscriptions, which refer to the Pal.ola S. a¯his royal family, provide valuable insights
into Buddhist culture and patronage in the Gilgit region during the 6th to 8th centuries. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] The earliest
known datable bronze produced under the Pal.ola S.a¯his’ patronage precedes Navasurendätiya’s bronze
of AD 644 (or 655) by over twenty years, and surpasses the age of the third ruler Surendräditya’s work
by at least ten years. [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] The bronzes often feature dedicatory inscriptions in Sanskrit, written in a script
characteristic of northwest India during that period. The inscriptions on Buddhist statues from the
period of the Pal.ola S.a¯hi dynasty can provide valuable insights into the genealogy of the royal family.
These inscriptions often include the names and titles of the donors, who were frequently members of
the royal family. For instance, inscriptions have recorded dignitaries such as Śr¯ı Surabh¯ı in 678/679
CE, Princess Devasr¯ı in 714 CE, and King Nandivikramadityanandi in 715 CE (see Figure 10, Figure 6,
and Figure 9 in [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]). These figures are often depicted as donors at the base of the statues, along with
identifying inscriptions.
      </p>
      <p>Tracing the genealogy of a historical royal family solely on the basis of inscriptions on statues and the
few manuscripts available is a laborious task that presents many challenges. The lack of reliable sources
and the risk of misinterpretation make the undertaking dificult for researchers. Nevertheless, dedicated
humanities scholars have taken on this daunting challenge and tackled it with meticulous attention
to detail and unwavering determination. These researchers have embarked on an arduous journey to
examine each piece of evidence with the utmost care. They carefully analyse each artefact, inscription
and manuscript and piece together the fragments of information into a coherent story. Through
interdisciplinary approaches and the use of advanced techniques in fields such as epigraphy, palaeography and
archaeology, these scholars attempt to extract every possible clue from the limited resources available.
In their work, they not only decipher ancient texts and symbols, but also compare the results with other
historical records and archaeological finds. In this way, they attempt to reconstruct the history of the
royal family using verifiable facts and tangible artefacts. By meticulously connecting the dots between
diferent pieces of evidence, these researchers are gradually creating a framework for understanding
the genealogical connections within royal families. While this task remains challenging and often
fraught with speculation, the dedication of these humanities scholars ensures that our understanding of
historical royal genealogies is constantly evolving and improving. Their eforts contribute significantly
to our knowledge of the past and shed light on the complicated web of relationships that shaped the
ruling dynasties of past eras.</p>
      <p>
        In the field of humanities research, scholars typically record their collected data in documents or
information systems [
        <xref ref-type="bibr" rid="ref4 ref5">4, 5</xref>
        ]. While relationships between the data sets can be established, it is often
impossible to represent all potential combinations of connections. Drawing inspiration from advanced
AI techniques like FuseLLM [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], we propose an innovative approach to genealogical research that aims
to construct more comprehensive family histories. This method aims to uncover hidden connections
and expand our understanding of lineages by bringing together information from diferent sources,
such as those from diferent agents.
      </p>
      <p>Our research question can be formulated as follows: How can we efectively integrate a LLM ( Large
Language Model) with diverse database contents to reconstruct and enrich the genealogy of a family, using
the royal Pa.lola S.a¯hi dynasty as a case study?
2. Genealogy of the Pal.ola S. a¯hi family
In the following two subsections, we give an overview about the current state/knowledge of the
genealogy of the royal family Pal.ola S.a¯hi.</p>
      <sec id="sec-1-1">
        <title>2.1. Genealogy created by Experts</title>
        <p>
          In the article [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] an overview about the relations between kings, queens, sons, and daughters are given.
In Table 1 the relationships between kings and queens are presented.
        </p>
        <p>
          We can regard this information from article [
          <xref ref-type="bibr" rid="ref7">7</xref>
          ] and Table 1 as ground truth, as these statements have
been meticulously investigated and substantiated.
        </p>
      </sec>
      <sec id="sec-1-2">
        <title>2.2. Genealogy created by Agents</title>
        <p>We first determined the genealogy of the known and current kings and queens with the help of some
agents (ChatGPT and Perplexity.ai). The results were correct. Now we had chosen the approach of using
agents for unknown family trees to see how the LLM copes with genealogies that are not well known
and available in the trained LLM material. Therefore, we have used the following agents with diferent
language models and tried to obtain further information about the royal family tree: Perplexity.ai1,
Ś¯IL A¯DITYANANDIN
SOMANA</p>
        <sec id="sec-1-2-1">
          <title>VAJR A¯DITYANANDIN</title>
        </sec>
        <sec id="sec-1-2-2">
          <title>VIKRAMA¯ DITYANANDIN</title>
        </sec>
        <sec id="sec-1-2-3">
          <title>SURENDR(AVIKRAM)A¯ DITYANANDIN [(Sa m.)Pu¯rn. a¯dityanandin</title>
        </sec>
        <sec id="sec-1-2-4">
          <title>NAVASURENDR(A/A¯ DITYANANDIN)</title>
        </sec>
        <sec id="sec-1-2-5">
          <title>JAYAMA ṄGALAVIKRAMA¯ DITYANANDIN</title>
        </sec>
        <sec id="sec-1-2-6">
          <title>NANDIVIKRAMA¯ DITYANANDIN</title>
          <p>[Su-fu-she-li-chi-li-ni
= Nandivikrama¯dityanandin?
*SURENDR A¯DITYA</p>
        </sec>
        <sec id="sec-1-2-7">
          <title>1. Śr¯ı Paramadev¯ı Ma m.galaha m.sika¯</title>
        </sec>
        <sec id="sec-1-2-8">
          <title>Bhat.t.a¯rika¯</title>
        </sec>
        <sec id="sec-1-2-9">
          <title>2. Śr¯ı Torabhat.t.a¯rika¯</title>
        </sec>
        <sec id="sec-1-2-10">
          <title>1. Śr¯ı Paramadev¯ı Toraha m.sika¯</title>
        </sec>
        <sec id="sec-1-2-11">
          <title>2. Śa¯m¯ıdev¯ı Saharan. ama¯la¯</title>
          <p>3. (Maha¯)Dev¯ı Surendra(ma¯la¯)
Bhat.t.a¯rika¯
4. (Maha¯)Dev¯ı Di+ysa¯pu n.ya¯
5. uvakh¯ı Śr¯ı Maha¯dev¯ı Dilditapu n.ya¯
[6. Jayaprabhat.a¯]
1. Śa¯m¯ıdev¯ı Trailokyadev¯ı Bhat.t.a¯rika¯
2. Śr¯ı Śa¯midev¯ı Saran. ama¯la¯
3. Śr¯ı Maha¯dev¯ı Sala¯ n.ahansika¯
[4. Śr¯ı Maha¯dev¯ı Jayaprabhat.a¯]
(possibly)
1. Śr¯ımad Ana ṅgadev¯ı
2. Ra¯jñ¯ı Ra¯mama¯la¯ (?)
1. Śa¯madev¯ı Śa¯ma¯vat¯ı
2. Maha¯dev¯ı Ma ṅgalakesar¯ı
Śr¯ı Śa¯m¯ıdev¯ı Namobuddha¯ya
ca. 532 AD
6th century
585 - 605 AD
605 - 625 AD
Answer 1: Perplexity.ai The Palola Shahi dynasty ruled the kingdom of Balur (also known as Palola
or Bolor) in the Gilgit region of present-day northern Pakistan from approximately the 7th to the early
8th century CE. [. . .] Unfortunately, the search results do not provide a comprehensive genealogy or
list of all the rulers of the Palola Shahi dynasty. The information available is limited, likely due to the
scarcity of historical records from this period and region.</p>
          <p>Comment: Perplexity.ai does not deliver any information about the genealogy of the royal family. In
addition, the more appropriate definition would be: The royal family Pa l.ola S. a¯hi belonged to a dynasty
of Buddhist kings in the Gilgit kingdom in the northern part of the Indian subcontinent in the 6th-8th
centuries. The names Balur, Palola, Patola, and Bolor refer to the same kingdom.</p>
          <p>Answer 1: ChatGPT</p>
          <p>ChatGPT’s answer is represented in Table 2.
2https://uhhgpt.uni-hamburg.de/
3https://chatgpt.com/
4https://gpt4all.io/
Deva Shahi
Navasurendra¯ditya Nandi
Vajradhara Indra Pala</p>
          <p>
            Sri Deva Palola Shahi
Mid-7th century CE
Early 8th century CE
Late 8th century CE
Early 9th century CE
Comment: ChatGPT’s answer presumably has other names of the kings. In [
            <xref ref-type="bibr" rid="ref14">14</xref>
            ] the king
Vajradityanandi has the identified title Sri Patola Deva Sahi. ChatGPT presents the short name “Deva Shahi.”
The king Navasurendradityanandi has the identified title “Paramabhattaraka Maharajadhiraja
Paramesvara Patola Deva Shahi Sri Navasurendradityanandi Deva.” ChatGPT presents his name in another
writing style, namely Navasurendra¯ditya Nandi. Vajradhara Indra Pala did not exist and is probably
a mixture of two names. There was a king named Indra Pala who ruled the Kamarupa Kingdom as
part of the Pala Dynasty from 960-990 CE. [
            <xref ref-type="bibr" rid="ref15">15</xref>
            ] This Indra Pala was a historical figure, but he is not
associated with the name Vajradhara. Vajradhara is a primordial Buddha figure in Tibetan Buddhism,
representing the essence of the Buddha’s enlightenment. [
            <xref ref-type="bibr" rid="ref16">16</xref>
            ] Jayamangalavikramadityanandi styled
himself as “Maharajadhiraja Paramesvara Shahanu Shahi Palo1a Shahi Sri Deva.” [
            <xref ref-type="bibr" rid="ref15">15</xref>
            ] ChatGPT presents
his name as “Sri Deva Palola Shahi.”
Answer 1: UHHGPT I’m sorry, but there seems to be a misunderstanding. As far as my knowledge
goes, there is no record or mention of a royal family by the name of Palola Shahi. [. . .]
Comment: UHHGPT does not deliver an answer of question 1 because of the missing data in the
LLM.
          </p>
          <p>Answer 1: GPT4All using Mistral Instruct The Palola Shahi were a royal dynasty that ruled over
parts of modern-day Pakistan and India during the medieval period. They originated from the city of
Palola in what is now Punjab, Pakistan, and their name means “Lord of Palola.”</p>
          <p>The genealogy of the Palola Shahi can be traced back to Ra¯jad. i Teja d.i, who was a noble lady and
possibly also the sister of Ra¯jad. i. Another member of the ruling family was bha¯rya¯ J¯ıjad. i, whose name
means “daughter of J¯ıja¯.” [. . .]
Comment: GPT4All gives an overview about the kingdom and some familiar information. A check
of the answer with other sources has shown that this information is not correct.</p>
          <p>Question 2: Please give me an overview of the genealogy of the royal family Palola Shahi. Consider:
https:// en.wikipedia.org/ wiki/ Patola_Shahis.</p>
          <p>Answer 2: Perplexity.ai The Patola Shahis, also known as the Palola Shahis or Gilgit Shahis, were
a Buddhist dynasty that ruled the Kingdom of Gilgit in the northern Indian subcontinent from the
6th to the 8th century CE. The genealogy of the Patola Shahi dynasty is documented through various
inscriptions and historical records. [. . .]
Comment: The genealogy provided in this table is basically the same as that provided in the
genealogy defined by Luo Wenhua and Oskar von Hinüber. The diferences are as follows. First, King
Ś¯ILA¯ DITYANANDIN (reign ca. 532 AD) is not mentioned, and King SOMANA’s reign time is listed as
the mid-6th century instead of the 6th century. Second, the crown prince (Sa m.)Pu¯r n.adityanandin of
King SURENDR(AVIKRAM)A¯ DITYANANDIN is not mentioned in Table 3. It is not clear whether or not
he ever ruled. Third, the reign time of the last King SURENDR A¯DITYA is given as 720-740 or 750 CE,
Somana
Vajraditayanandin
Vikramadityanandin
Surendravikramadityanandin
Navasurendra¯ditya-nandin
Jayama ṅgalavikrama¯ditya-nandin
Nandivikramadityanandin
Su-fu-che-li-chi-li-ni
Surendradityanandin
Mid-6th century CE
585-605 CE
605-625 CE
625-644 or 654 CE
644 or 654-685 CE
685-710 CE
710-715 CE
715-720 CE
720-740 or 750 CE
while it is only mentioned as starting from 720 CE in the genealogy defined by Luo Wenhua and Oskar
von Hinüber. In addition, queens are not mentioned in Table 3.</p>
          <p>Answer 2: UHHGPT I apologize for the confusion, but it seems that there is an error in your request.
The link you provided redirects to a page about “Patola” instead of “Palola” Shahis. Unfortunately, there
is no specific information available on the Palola Shahi royal family.</p>
          <p>However, if you are looking for information on other royal families or have any other questions
related to genealogy or history, please feel free to ask. I would be happy to help you with that.
Answer 2: ChatGPT
Tegin.</p>
          <p>ChatGPT delivers an overview about kings from another dynasty, e. g. Shahi
Answer 2: GPT4All with Mistral Instruct [. . .] The genealogy of the royal family Palola Shahi can
be traced back to Ra¯jad. i Tejad. i, who was a noble lady and perhaps also a member of the ruling family.
She had two daughters: Sara and bha¯rya¯ J¯ıja d.i. Sara’s son, Ajitasena, became the first known ruler of
Palola in 1290.</p>
          <p>Ajitasena had several sons who also ruled as kings of Palola, including Ra¯jad. i Teja d.i II and
bha¯rya¯ J¯ıja d.i II. The dynasty continued to rule for several centuries, with notable rulers such as
Man. galavikrama¯dityanandi and Ra¯ja¯ d.i Teja d.i III. [. . .]</p>
          <p>Question 3: Please give me an overview of the genealogy of the royal family Patola Shahi. Consider:
https:// en.wikipedia.org/ wiki/ Patola_Shahis
Answer 3: UHHGPT I’m sorry, but I can’t provide specific information on the genealogy of the
Patola Shahi royal family from the link you provided because the Patola Shahis are a fictional royal
family from the TV series “The Blacklist.”
Question 4: Please give me an overview of the genealogy of the royal family Palola Shahi. Please
mention all the queens of each king, his sons, his daughters, the mother and father of the king.
Answer 4 (excerpt): Perplexity.ai The ruler Vajraditayanandin (585-605 CE) was married with the
queen Mangalahamsika. This sentence presents the additional information about the mentioned queen.
The same kings as presented in Table 1 are part of Perplexity.ai’s answer.</p>
          <p>Comment: Perplexity.ai delivers a part of the queen’s name “Mangalahamsika” written with the
letter “n” instead of m. .</p>
          <p>Answer 4 (excerpt): ChatGPT</p>
          <p>ChatGPT’s answer of question is presented in Table 4.</p>
          <p>King
Navasurendra¯ditya-nandin</p>
        </sec>
        <sec id="sec-1-2-12">
          <title>Supratis.t.hitavarman II</title>
          <p>Kuma¯ra¯ja
Jayavarman
Lalita¯ditya
Father</p>
        </sec>
        <sec id="sec-1-2-13">
          <title>Supratis.t.hitavarman</title>
          <p>Navasurendra¯ditya-nandin</p>
        </sec>
        <sec id="sec-1-2-14">
          <title>Supratis.t.hitavarman II</title>
          <p>Kuma¯ra¯ja
Jayavarman
Son</p>
        </sec>
        <sec id="sec-1-2-15">
          <title>Supratis.t.hitavarman II</title>
          <p>Kuma¯ra¯ja
Jayavarman
Lalita¯ditya
Comment: This information is irrelevant because the kings mentioned in Table 4 are from another
dynasty and partly incorrect. For example, Supratis.t.hitavarman ruled Kamarupa from the Varman
dynasty for the period 595–600. He was son of King Susthitavarman and Queen Shyamadevi. [17]
Answer 4: GPT4All using Mistral Instruct [. . .] The Palola Shahi dynasty was founded by
Na¯masi m.ha (1250-1300), who is considered as the first king of the Palola Shahi. He had four queens: Di
+ (ysa)pun. ya¯, Ra¯jñ¯ı Tejad. i, Ra¯jad. i, and Bha¯rya¯ J¯ıja d.i. Na¯masi m.ha had two sons, Sara and Yudhajit, and
one daughter, Devalaks.mi. [. . .]
Question 5: Please give me an overview of the genealogy of the king SOMANA of the royal family Palola
Shahi. Please mention all the queens of the king, his sons, his daughters, the mother and father of the king.
Answer 5: ChatGPT
• King Somana: father → Devaśa¯ntika; queens → Śr¯ı Prabha¯vat¯ı (main queen, as per historical
inscriptions); sons → Somila (mentioned in historical records as a son and successor); possibly
other sons, but not clearly mentioned in available records. [. . .]
• Queen: Śr¯ı Prabha¯vat¯ı: children with Somana → Somila (son and successor); son → Somila; father
→ Somana; mother→ Śr¯ı Prabha¯vat¯ı
Comment: In contrast to Luo Wenhua’s and Oskar von Hinüber’s researches, there’s no information
about King Somana’s queens. The name Śr¯ı Prabha¯vat¯ı appears in the context of verses (cf. [18]).
Answer 5: GPT4All using Mistral Instruct King Somana was a member of the royal family Palola
Shahi, which is one of the most prominent families in medieval India. The genealogy of the Palola Shahi
family can be traced back to Soma Deva, who was the founder of the dynasty. [. . . ]</p>
          <p>Somabhadra had two sons: Somakrishna and Somaditya. Somakrishna’s son was Somanath, who
was the father of King Somana. Therefore, King Somana was a descendant of Soma Deva through his
great-grandfather, Somadeva.</p>
          <p>King Somana had two sons: Somasimha and Somaditya. Somasimha’s son was Somanath, who was
the father of King Somapala. Therefore, King Somana was also a descendant of Soma Deva through his
great-grandson, Somadeva.</p>
          <p>King Somana had two daughters: Somavati and Somakrishna. The identity of their mothers is not
mentioned in any historical records.</p>
          <p>Comment: The information presented by GPT4All about the king Somana not be found in Vol. XVIII
(2015) (page 263, 368) and Vol. XXI (2018) (page 502). The answer given by GPT4All must therefore be
verified by other sources.</p>
          <p>Question 6: Please give me an overview of the genealogy of the king VAJRA¯ DITYANANDIN of the
royal family Palola Shahi. Please mention all the queens of the king, his sons, his daughters, the mother
and father of the king.</p>
          <p>Answer 6: ChatGPT
• King Vajra¯dityanandin: father → Navasurendra¯ditya-nandin; son → Nandivikrama¯dityanandin
(likely successor)
• Father: Navasurendra¯ditya-nandin: father → Supratis.t.hitavarman; children → Vajra¯dityanandin
(son, and eventual king); possibly other children, but not clearly mentioned in available records.
• Son: Nandivikrama¯dityanandin; father → Vajra¯dityanandin
Comment: ChatGPT’s answer is not correct. The King Vajra¯dityanandin could not be the son of
Navasurendra¯ditya-nandin because Navasurendra¯ditya-nandin ruled later (cf. Table 1). The son’s name
of the king Navasurendradityanandi was Jayama ṅgalavikrama¯dityanandi (cf. Table 1).
Answer 6: GPT4All using Mistral Instruct The genealogy of King Vajra¯dityanandin of the Royal
Family Palola Shahi is as follows:
• Father: Maharaja Na¯masi m.ha (1)
• Mother: Queen Di + (ysa)pu n.ya¯ (2)
• Sons: Prince Ra¯jñ¯ı Teja d.i (3), Prince Sara (4)
• Daughters: Princess Bha¯rya¯ J¯ıja d.i (5) [. . .]</p>
          <p>Comment: GPT4all delivers the name Di + (ysa)pun. ya¯ as the mother of the king Vajra¯dityanandin,
but she was the 4th queen of the king Vikramadityanandin, the successor of Vajra¯dityanandin. The
other results could not be confirmed. This information can not be found in Vol. XX (2017) (page 136,
140).</p>
        </sec>
      </sec>
      <sec id="sec-1-3">
        <title>2.3. Genealogy Representation in Information Systems</title>
        <p>
          Heurist Heurist [19] is a user-friendly data management system designed specifically for humanities
researchers. While it excels in handling smaller datasets, particularly in humanities-related projects, its
efectiveness with large datasets may be limited [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. Heurist allows researchers to design, populate,
explore, and publish richly-structured databases through a simple web interface, without requiring
extensive technical expertise. [20]
        </p>
        <p>After manually or automatically transferring data to a Heurist database instance, networks can
be displayed at the touch of a button using the available functionality. In Figure 1 an excerpt of the
historical people are presented based on the data from Table 1.</p>
        <p>Figure 1 shows which persons have a relationship to another person. The type of relationships is not
shown in the figure but are stored in the database instance of Heurist. It is possible to display networks
that only have a mother-child, father-child relationship or other relationships.
PouchDB PouchDB [21] is a powerful and versatile open-source JavaScript database that ofers
unique advantages for handling large datasets, particularly in web-based applications. As a client-side
database inspired by Apache CouchDB [22], PouchDB stores data in JSON format and implements the
Couch Replication Protocol, enabling seamless synchronization between local instances and CouchDB
servers. One of PouchDB’s key strengths is its ability to work ofline, storing data locally in the browser’s
Web storage, such as IndexedDB [23] in Firefox. This “Ofline First” approach allows users to work
with their database without an internet connection, in contrast to Heurist, making PouchDB ideal for
researchers and analysts who need constant access to their data. PouchDB’s architecture eliminates the
need for additional server-side resources, reducing infrastructure complexity and costs. Its flexibility in
generating HTML pages and customizing database queries makes it particularly appealing to humanities
scholars who require adaptable data representation tools. In Figure 2 an information system created
with PouchDB is presented. The data from Table 1 are represented in a searchable table. In the first
column of the table, the people’s names are presented. In the fourth column (related person(s)), relations
from the persons in column one to other people are presented.</p>
        <p>An improved implementation can incorporate the specific type of relationship between individuals,
such as son of, mother of, etc. This approach ofers several advantages over the simpler table structure
shown in Figure 2.</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>3. Fusion of LLMs and Databases</title>
      <p>Our methodology draws inspiration from the FuseLLM approach, but introduces key distinctions. Our
approach extends beyond mere LLM fusion, incorporating content from diverse databases and agents
to enrich the knowledge base. Our suggested fusion process is as follows:
• We use diferent agents with (diferent LLMs). An agent with its LLM computes the best text
(list of relations between kings and queens) as an answer. These answers should give more</p>
      <p>information for a dataset represented in a relational database.
• The information about the royal family are stored as datasets in a relational database.
• An expert can add the new information (the agents’ answers) to a dataset. In the hope of gaining
new and correct(!) insights.</p>
      <p>
        In [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] a collective knowledge matrix is calculated in order to visualise the results of the individual
agents in their entirety. In our approach, we imagine that this matrix is supplemented by further entries
that originate from the information systems for the representation of collective knowledge.
Application and Results In the concrete implementation of the fusion approach, we visualized the
data using either Heurist or PouchDB. We developed prototypes for both to explore how to integrate
or combine database representations with the agents’ responses. While Heurist ofers a similar table
view to PouchDB, we found that PouchDB performs better with larger datasets and provides ofline
functionality.
      </p>
      <p>At the start, we first tried to obtain information about the entire repository, i.e. the genealogy of the
Pal.ola S. a¯hi royal family. The answers and our comments show that these were rather wrong and could
not be considered. We have therefore tried to be more specific with the names. But if you enter all
names - i.e. all data records with kings - and want the answers from the LLMs, we found that only the
names of kings also from other dynasties and the reigns were returned. It was interesting, however,
that the names of some kings were alternative names and the answers could be taken into account as
an additional source. Although these additional sources could not provide any clues to the family tree,
they could be helpful for other research questions.</p>
      <p>As a result, we were able to compile the family tree of the royal family Pal.ola S. a¯hi, whereby no new
ifndings could be provided by the agents in our research.</p>
      <p>This almost expected result was probably due to the fact that there is too little training material
on this royal family. Even if it did not help with the identification of the family tree, the additional
information and the sources found can be helpful in creating a general overview of a topic.</p>
      <p>
        It was not possible to carry out an evaluation as with the FuseLLM [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] approach with this data set.
Further investigations are required to check whether the expansion of the knowledge base to include
data from the information systems leads to better results.
      </p>
    </sec>
    <sec id="sec-3">
      <title>4. Conclusion and Outlook</title>
      <p>In this article, we present an innovative approach to reconstruct the genealogy of the royal family
Pal.ola S. a¯hi by combining LLMs with traditional database systems. The study aimed to enhance our
understanding of complex genealogical relationships in historical families by using the contextual
understanding and inference abilities of LLMs, such as GPT-3.5 Turbo and Mistral Instruct, along with
structured historical data stored in relational databases.</p>
      <p>The case study of the Pal.ola S.a¯hi family served as a practical demonstration of this hybrid approach,
showcasing its potential to enrich historical research. However, we found that the agents’ answers were
often wrong and could not be considered reliable. We then tried to be more specific with the names,
but the results were limited to the names of kings from other dynasties and their reigns. While the
additional sources found could not provide any clues to the family tree, they could be helpful for other
research questions. The researchers were ultimately able to compile the family tree of the Pal.ola S. a¯hi
family using traditional methods, without any new findings from the used agents.</p>
    </sec>
    <sec id="sec-4">
      <title>Funding Information</title>
      <p>The research for this contribution was funded by the Deutsche Forschungsgemeinschaft (DFG,
German Research Foundation) under Germany’s Excellence Strategy - EXC 2176 ’Understanding Written
Artefacts: Material, Interaction and Transmission in Manuscript Cultures’, project no. 390893796. The
research was mainly conducted within the scope of the Centre for the Study of Manuscript Cultures
(CSMC) at Universität Hamburg.
[17] Wikipedia contributors, Supratisthitavarman, 2024. URL: https://en.wikipedia.org/wiki/</p>
      <p>Supratisthitavarman, accessed June 27, 2024.
[18] D. Goswami, Garga samhita (english), 2024. URL: https://www.wisdomlib.org/hinduism/book/
garga-samhita-english/d/doc1123336.html, accessed June 27, 2024.
[19] HEURIST, A unique solution to the data management needs of Humanities researchers, https:
//heuristnetwork.org/, 2024. Accessed 25 June 2024.
[20] S. Schif, S. Melzer, E. Wilden, R. Möller, Tei-based interactive critical editions, in: S. Uchida,
E. Barney, V. Eglin (Eds.), Document Analysis Systems, Springer International Publishing, Cham,
2022, pp. 230–244.
[21] PouchDB Group, Pouchdb, 2024. URL: https://pouchdb.com, [Online; accessed 28-June-2024].
[22] Apache Software Foundation, Apache CouchDB 3 documentation - 2.4. CouchDB replication
protocol, 2024. URL: https://docs.couchdb.org/en/latest/replication/protocol.html, [Online; accessed
28-June-2024].
[23] MDN Web Docs, Using IndexedDB - web APIs, 2024. URL: https://developer.mozilla.org/en-US/
docs/Web/API/IndexedDB_API/Using_IndexedDB, [Online; accessed 28-June-2024].</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Wikipedia</surname>
            <given-names>contributors</given-names>
          </string-name>
          , Patola shahis, Wikipedia, The Free Encyclopedia,
          <year>2024</year>
          . URL: https://en. wikipedia.org/wiki/Patola_Shahis, accessed June 25,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>O. von Hinüber</surname>
          </string-name>
          ,
          <article-title>Die Palola s.a¯his: Ihre Steininschriften, Inschriften auf Bronzen, Handschriftenkolophone und Schutzzauber: Materialien zur Geschichte von Gilgit und Chilas</article-title>
          ,
          <source>Antiquities of Northern Pakistan, Heidelberg Academy of Sciences and Humanities</source>
          , Mainz,
          <year>2016</year>
          . URL: https: //d-nb.info/1123441529/34.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>R. L.</given-names>
            <surname>Twist</surname>
          </string-name>
          ,
          <article-title>Images of the crowned buddha along the silk road: Iconography and ideology</article-title>
          ,
          <source>Humanities</source>
          <volume>7</volume>
          (
          <year>2018</year>
          ). URL: https://www.mdpi.com/2076-0787/7/4/92. doi:
          <volume>10</volume>
          .3390/h7040092.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>S.</given-names>
            <surname>Schif</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Melzer</surname>
          </string-name>
          , E. Wilden,
          <string-name>
            <given-names>R.</given-names>
            <surname>Möller</surname>
          </string-name>
          ,
          <article-title>TEI-Based Interactive Critical Editions</article-title>
          , in: S.
          <string-name>
            <surname>Uchida</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          <string-name>
            <surname>Barney</surname>
          </string-name>
          , V. Eglin (Eds.),
          <source>Document Analysis Systems</source>
          , Springer International Publishing, Cham,
          <year>2022</year>
          , pp.
          <fpage>230</fpage>
          -
          <lpage>244</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>S.</given-names>
            <surname>Melzer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Schif</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Weise</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Harter-Uibopuu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Möller</surname>
          </string-name>
          ,
          <article-title>Databasing on demand for research data repositories explained with a large epidoc dataset</article-title>
          ,
          <source>in: CENTERIS 2022 - Conference on ENTERprise Information Systems</source>
          , SciKA,
          <year>2023</year>
          , pp.
          <fpage>150</fpage>
          -
          <lpage>153</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>Y.</given-names>
            <surname>Gu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Dong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O.</given-names>
            <surname>Koyejo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Liang</surname>
          </string-name>
          ,
          <article-title>Llm augmented llms: Expanding capabilities through composition</article-title>
          ,
          <source>arXiv preprint arXiv:2401.10491</source>
          (
          <year>2024</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>W.</given-names>
            <surname>Luo</surname>
          </string-name>
          ,
          <string-name>
            <surname>O. von Hinüber</surname>
          </string-name>
          ,
          <article-title>News from palola: The jokhang and the yong-he inscriptions of surendra¯ditya</article-title>
          , in: N.
          <string-name>
            <surname>Kudo</surname>
          </string-name>
          (Ed.), Śa¯ntamati h. -
          <source>Manuscripts for Life</source>
          , volume
          <volume>15</volume>
          of Bibliotheca Philologica et Philosophica Buddhica, International Research Institute for Advanced Buddhology, Soka University, Tokyo,
          <year>2023</year>
          , pp.
          <fpage>207</fpage>
          -
          <lpage>223</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8] International Research Institute for Advanced Buddhology,
          <source>Annual Report of the International Research</source>
          Institute for Advanced Buddhology at Soka University, Annual Report, Soka University,
          <year>2014</year>
          . URL: https://iriab.soka.ac.jp/content/pdf/aririab/Vol.%20XVII%
          <fpage>20</fpage>
          (
          <year>2014</year>
          ).pdf.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9] International Research Institute for Advanced Buddhology,
          <source>Annual Report of the International Research</source>
          Institute for Advanced Buddhology at Soka University, Annual Report, Soka University,
          <year>2014</year>
          . URL: https://iriab.soka.ac.jp/content/pdf/aririab/Vol.%20XVII,%20Supplement%
          <fpage>20</fpage>
          (
          <year>2014</year>
          ).pdf, supplement.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10] International Research Institute for Advanced Buddhology,
          <source>Annual Report of the International Research</source>
          Institute for Advanced Buddhology at Soka University, Annual Report, Soka University,
          <year>2015</year>
          . URL: https://iriab.soka.ac.jp/content/pdf/aririab/Vol.%20XVIII%
          <fpage>20</fpage>
          (
          <year>2015</year>
          ).pdf.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11] International Research Institute for Advanced Buddhology,
          <source>Annual Report of the International Research</source>
          Institute for Advanced Buddhology at Soka University, Annual Report, Soka University,
          <year>2015</year>
          /
          <year>2016</year>
          . URL: https://iriab.soka.ac.jp/content/pdf/aririab/Vol.%20XVIII%
          <fpage>20</fpage>
          (
          <year>2015</year>
          )A______Vol. %20XIX%
          <fpage>20</fpage>
          (
          <year>2016</year>
          )
          <article-title>%20Texts</article-title>
          .pdf, texts.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12] International Research Institute for Advanced Buddhology,
          <source>Annual Report of the International Research</source>
          Institute for Advanced Buddhology at Soka University, Annual Report, Soka University,
          <year>2017</year>
          . URL: https://iriab.soka.ac.jp/content/pdf/aririab/Vol.%20XX%
          <fpage>20</fpage>
          (
          <year>2017</year>
          ).pdf.
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13] International Research Institute for Advanced Buddhology,
          <source>Annual Report of the International Research</source>
          Institute for Advanced Buddhology at Soka University, Annual Report, Soka University,
          <year>2018</year>
          . URL: https://iriab.soka.ac.jp/content/pdf/aririab/Vol.%20XXI%
          <fpage>20</fpage>
          (
          <year>2018</year>
          ).pdf.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>Kreately</surname>
          </string-name>
          , Palola shahis of gilgit, https://kreately.in/palola-shahis-of-gilgit/,
          <year>2024</year>
          . URL: https:// kreately.in/palola-shahis-of-gilgit/, accessed June 27,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <surname>Wikipedia</surname>
            <given-names>contributors</given-names>
          </string-name>
          , Indra pala,
          <year>2024</year>
          . URL: https://en.wikipedia.org/wiki/Indra_Pala, accessed June 27,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <surname>Wikipedia</surname>
            <given-names>contributors</given-names>
          </string-name>
          , Vajradhara,
          <year>2024</year>
          . URL: https://en.wikipedia.org/wiki/Vajradhara, accessed June 27,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>