# embedding_metadata

key: _node_content
string_value:
{"id_": "01ef9dde-a57f-4a1c-8731-fdff4a949089", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "a045392a-b689-49cc-9e1e-18783454de64", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "cf26802fe1f8f854899022252b19ab74a475a6b8f8915f6e6e338f0822c38fa2", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "179474eb-8b1c-4af6-9cca-e1225a604979", "node_type": "1", "metadata": {}, "hash": "8ef629c6e0f66041ac2a0d88402bfa18c366885cf2e71ffa1523c55d5884c274", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 79224, "end_char_idx": 82118, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
They spoke the Nahuatl language. Their capital was Tenochtitlan. It was built on islands in a lake. Tenochtitlan was one of the greatest cities of the world in that time.\n\nThe Aztecs believed in polytheism. Quetzalcoatl (feathered snake), Huitzilopochtli (hummingbird of the south) and Tezcatlipoca (smoking mirror) were the most important Gods. Sometimes the Aztecs killed humans to please their gods. Between 1519 and 1521 the Spanish leader Hernán Cortés defeated the Aztecs and took their empire. Some Aztecs did not want to fight against the soldiers of Cortés, because they thought they were Gods.\n\nToday many Mexicans have Aztec and other Native American forefathers. People still use Aztec symbols in Mexico. On the Mexican flag there is a picture of an eagle on a cactus with a snake in its mouth. This was an Aztec symbol. Also the name Mexico is an Aztec word.\n\nThe Aztecs ate a lot of plants and vegetables that could be grown easily in the Mexico area. The main food that they ate was corn, which they called maize. Another food that they ate was squash.\n\nAztecs also had a lot of harsh punishments for certain crimes. For the following crimes the punishment was death: adultery, wearing cotton clothes (cotton clothes were only for the nobles), cutting down a living tree, moving a field boundary making your land bigger, making someone else\'s smaller, major theft and treason.\n\nThe Incas \n\nThe Incas were a civilized empire in western South America. The Incas are called a "pre-Columbian" empire. This means that their country was here before Christopher Columbus. They ruled parts of South America around what is now Peru for a little over 100 years, until the Spanish invasion in the 16th century.\n\nThe Incan empire or , meaning four regions in Quechua, only lasted for about 100 years as the arrival of the Spaniards in 1532 conquered them. Their main language was Quechua, but as the Incas were basically made up of many different groups there were probably many other different languages.\n\nTheir capital was in the city of Cusco, or Qosqo, in what is now southern Peru.\n\nManco Capac founded the first Inca state around 1200. It covered the area around Cusco. In the 1400s, Pachacuti began to absorb other people in the Andes. The expansion of the Inca Empire had started. The Inca Empire would become the biggest empire in the Americas before Columbus.\n\nIn 1532, the civil war ended. The brothers Huascar and Atahualpa, fought for who would succeed their father. During this time, the Spanish conquerors took possession of the Inca territory. They were led by Francisco Pizarro. In the following years the conquistadors managed to extend their power over the whole Andean region. They suppressed successive Inca rebellions until the establishment of the Viceroyalty of Perú in 1542 and the fall of the resistance of the last Incas of Vilcabamba in 1572.


key: _node_content
string_value:
{"id_": "179474eb-8b1c-4af6-9cca-e1225a604979", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "01ef9dde-a57f-4a1c-8731-fdff4a949089", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "340a898fcd146fbf2ac4be8c4516eb3c25e019f6e108ca6d2c176775e1a1e81d", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "9c10fb3d-721c-4903-a90f-2b6e7acbc33f", "node_type": "1", "metadata": {}, "hash": "a3d1d8dd052f1df64ad53a1b467ff2c4b774cce2de7275d38129836e33a10df9", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 80702, "end_char_idx": 84031, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
The Incas are called a "pre-Columbian" empire. This means that their country was here before Christopher Columbus. They ruled parts of South America around what is now Peru for a little over 100 years, until the Spanish invasion in the 16th century.\n\nThe Incan empire or , meaning four regions in Quechua, only lasted for about 100 years as the arrival of the Spaniards in 1532 conquered them. Their main language was Quechua, but as the Incas were basically made up of many different groups there were probably many other different languages.\n\nTheir capital was in the city of Cusco, or Qosqo, in what is now southern Peru.\n\nManco Capac founded the first Inca state around 1200. It covered the area around Cusco. In the 1400s, Pachacuti began to absorb other people in the Andes. The expansion of the Inca Empire had started. The Inca Empire would become the biggest empire in the Americas before Columbus.\n\nIn 1532, the civil war ended. The brothers Huascar and Atahualpa, fought for who would succeed their father. During this time, the Spanish conquerors took possession of the Inca territory. They were led by Francisco Pizarro. In the following years the conquistadors managed to extend their power over the whole Andean region. They suppressed successive Inca rebellions until the establishment of the Viceroyalty of Perú in 1542 and the fall of the resistance of the last Incas of Vilcabamba in 1572. The Inca civilization ends at that time, but many cultural traditions remain in some ethnic groups as Quechuas and Aymara people.\n\nAfrica \n\nAncient Egypt and Carthage are well known civilizations of ancient Africa. But because there are not many written sources in large parts of Sub-Saharan Africa, the history of Africa is not easy to write about. But with new techniques such as the recording of oral history, historical linguistics and archeology knowledge has improved, not only for the empires and kingdoms of Ethiopia, Ghana, Mali, Nubia, Kush and Kerma.\n\nGlobalization\n\nFrom colonialization to imperialism\n\nThe rise of Europe\n\nColonization \n\nColonization happened after Christopher Columbus came to the Americas. European countries such as England, France, and Spain built colonies in the Americas. These settlers fought the Native Americans to take over their land. The colonisation of the Americas was the beginning of modern times.\n\nAn important part about contact with the Americas was the Columbian Exchange The Columbian Exchange brought new foods, ideas, and diseases to the Old World and New World, changing the way people lived. Historians believe that almost everyone as far as Asia was affected in some way by the Columbian Exchange.\n\nReformation and Counter-Reformation \nProtestant Reformation started with Martin Luther and the posting of the 95 theses on the door of the castle church in Wittenberg, Germany. At first he protested against corruption such as simony or the sale of indulgences. But then it became clear that he had different ideas about the church doctrine. He thought that Christians should only read the Bible to find out what God wants from them. That meant that they did not need priests (see: Five solas). The three most important traditions that came directly from the Protestant Reformation were the Lutheran, Reformed (Calvinist, Presbyterian, etc.


key: _node_content
string_value:
{"id_": "9c10fb3d-721c-4903-a90f-2b6e7acbc33f", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "179474eb-8b1c-4af6-9cca-e1225a604979", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "559aa7ef939df7a540ed504f13328f19b0dd576bf6828fabbd84b79c696e7e7f", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "585c6768-7dbf-4160-b4fa-b37c6bef7e1e", "node_type": "1", "metadata": {}, "hash": "d9a31340c046a4cbfe34004064053c30d375d2f0a18577ac720aa5c639c70f60", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 82338, "end_char_idx": 85801, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
But because there are not many written sources in large parts of Sub-Saharan Africa, the history of Africa is not easy to write about. But with new techniques such as the recording of oral history, historical linguistics and archeology knowledge has improved, not only for the empires and kingdoms of Ethiopia, Ghana, Mali, Nubia, Kush and Kerma.\n\nGlobalization\n\nFrom colonialization to imperialism\n\nThe rise of Europe\n\nColonization \n\nColonization happened after Christopher Columbus came to the Americas. European countries such as England, France, and Spain built colonies in the Americas. These settlers fought the Native Americans to take over their land. The colonisation of the Americas was the beginning of modern times.\n\nAn important part about contact with the Americas was the Columbian Exchange The Columbian Exchange brought new foods, ideas, and diseases to the Old World and New World, changing the way people lived. Historians believe that almost everyone as far as Asia was affected in some way by the Columbian Exchange.\n\nReformation and Counter-Reformation \nProtestant Reformation started with Martin Luther and the posting of the 95 theses on the door of the castle church in Wittenberg, Germany. At first he protested against corruption such as simony or the sale of indulgences. But then it became clear that he had different ideas about the church doctrine. He thought that Christians should only read the Bible to find out what God wants from them. That meant that they did not need priests (see: Five solas). The three most important traditions that came directly from the Protestant Reformation were the Lutheran, Reformed (Calvinist, Presbyterian, etc.), and Anglican traditions.\n\nThe Counter-Reformation, or Catholic Reformation, was the Catholic Church fighting the Protestant Reformation. New religious orders, such as the Jesuits were founded and missionaries sent around the world. Decisions were taken at the Council of Trent (1545–1563).\n\nIndustrial revolution \nThe Industrial Revolution started in Great Britain. It brought many advances in the way goods were produced. These advances allowed people to produce much more than they needed for living. The early British Empire split as its colonies in America revolted to establish a representative government.\n\nFrom nationalism to imperialism \nThe French Revolution lead to  massive political change in continental Europe, as people following the ideas of Enlightenment asked for human rights with the slogan liberté, egalité, fraternité (liberty, equality, fraternity). That led to the Declaration of the Rights of Man and of the Citizen, but also to terror and the execution of King Louis XVI. The French leader, Napoleon Bonaparte, conquered and changed Europe through war up to 1815. As more and more small property holders were granted the vote, in France and the UK, socialist and trade union activity developed and revolution gripped Europe in 1848. The last vestiges of serfdom were abolished in Austria-Hungary in 1848. Russian serfdom was abolished in 1861. The Balkan nations began to regain their independence from the Ottoman Empire. After the Franco-Prussian War, Italy and Germany became unified in 1870 and 1871. Conflict spread across the globe, in a chase for empires. The search for a "place in the sun" ended with the outbreak of World War I. In the desperation of war, the Russian Revolution promised the people "peace, bread and land".


key: _node_content
string_value:
{"id_": "585c6768-7dbf-4160-b4fa-b37c6bef7e1e", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "9c10fb3d-721c-4903-a90f-2b6e7acbc33f", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "3468cf6078b3bc1cf0fb10fccba9a38dd789b59e53694da60c9237f52d07389e", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "408db1dd-5501-46f2-9f9e-db4641f4d30c", "node_type": "1", "metadata": {}, "hash": "f7b71ee2ad852ed8159de116fb6c042d6003ad415c8da9b2c5760b31680c4564", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 84031, "end_char_idx": 87327, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
), and Anglican traditions.\n\nThe Counter-Reformation, or Catholic Reformation, was the Catholic Church fighting the Protestant Reformation. New religious orders, such as the Jesuits were founded and missionaries sent around the world. Decisions were taken at the Council of Trent (1545–1563).\n\nIndustrial revolution \nThe Industrial Revolution started in Great Britain. It brought many advances in the way goods were produced. These advances allowed people to produce much more than they needed for living. The early British Empire split as its colonies in America revolted to establish a representative government.\n\nFrom nationalism to imperialism \nThe French Revolution lead to  massive political change in continental Europe, as people following the ideas of Enlightenment asked for human rights with the slogan liberté, egalité, fraternité (liberty, equality, fraternity). That led to the Declaration of the Rights of Man and of the Citizen, but also to terror and the execution of King Louis XVI. The French leader, Napoleon Bonaparte, conquered and changed Europe through war up to 1815. As more and more small property holders were granted the vote, in France and the UK, socialist and trade union activity developed and revolution gripped Europe in 1848. The last vestiges of serfdom were abolished in Austria-Hungary in 1848. Russian serfdom was abolished in 1861. The Balkan nations began to regain their independence from the Ottoman Empire. After the Franco-Prussian War, Italy and Germany became unified in 1870 and 1871. Conflict spread across the globe, in a chase for empires. The search for a "place in the sun" ended with the outbreak of World War I. In the desperation of war, the Russian Revolution promised the people "peace, bread and land". The defeat of Germany came at the price of economic destruction, which was written down in the Treaty of Versailles.\n\nAsia\n\nChina – continuity \nFrom 1644 to 1912 the Qing or Manchu Dynasty ruled China. The dynasty was founded by the Manchu clan in northeast China (Manchuria). It expanded into China proper and its surrounding territories, establishing the Empire of the Great Qing.\nIts military power weakened during the 1800s, and faced with international pressure, massive rebellions and defeats in wars, the Qing Dynasty declined after the mid-19th century. It was overthrown in 1912.\n\nJapan \nDuring the Edo period, Japan had many small rulers. There were about 200 of them, called the daimyo. Out of them, the Tokugawa clan was most powerful. They ruled from a place called Edo. This place was around the present day’s Tokyo. For fifteen generations they were the most powerful clan in Japan.\n\nBeginning from the early 17th century, the rulers (known as shogunate) started a policy of seclusion (stopping some people coming in), known as sakoku in Japanese language. They suspected that traders, merchants and missionaries wanted to bring Japan under the control of European powers. Except the Dutch and the Chinese, all foreigners, traders and merchants from other countries, missionaries were no longer allowed into Japan.\n\nStill even during the period of seclusion, Japanese continued to gain information and knowledge about other parts of the world.\nThis policy of seclusion lasted for about 200 years.


key: _node_content
string_value:
{"id_": "408db1dd-5501-46f2-9f9e-db4641f4d30c", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "585c6768-7dbf-4160-b4fa-b37c6bef7e1e", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "c59848c77560946ecb0d46e2a9c28b27c8251212dbfe4ab2a7f6acafd560cf12", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "75478ce3-8063-43ce-bcb9-420e36f067ba", "node_type": "1", "metadata": {}, "hash": "8966fd7a8c1fb0512a6a85e121b4cf1ad0cd3ba27a1dfe68b9185bf3817f47e7", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 85573, "end_char_idx": 88777, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Conflict spread across the globe, in a chase for empires. The search for a "place in the sun" ended with the outbreak of World War I. In the desperation of war, the Russian Revolution promised the people "peace, bread and land". The defeat of Germany came at the price of economic destruction, which was written down in the Treaty of Versailles.\n\nAsia\n\nChina – continuity \nFrom 1644 to 1912 the Qing or Manchu Dynasty ruled China. The dynasty was founded by the Manchu clan in northeast China (Manchuria). It expanded into China proper and its surrounding territories, establishing the Empire of the Great Qing.\nIts military power weakened during the 1800s, and faced with international pressure, massive rebellions and defeats in wars, the Qing Dynasty declined after the mid-19th century. It was overthrown in 1912.\n\nJapan \nDuring the Edo period, Japan had many small rulers. There were about 200 of them, called the daimyo. Out of them, the Tokugawa clan was most powerful. They ruled from a place called Edo. This place was around the present day’s Tokyo. For fifteen generations they were the most powerful clan in Japan.\n\nBeginning from the early 17th century, the rulers (known as shogunate) started a policy of seclusion (stopping some people coming in), known as sakoku in Japanese language. They suspected that traders, merchants and missionaries wanted to bring Japan under the control of European powers. Except the Dutch and the Chinese, all foreigners, traders and merchants from other countries, missionaries were no longer allowed into Japan.\n\nStill even during the period of seclusion, Japanese continued to gain information and knowledge about other parts of the world.\nThis policy of seclusion lasted for about 200 years. It ended 1868 with Meiji Restoration, when the emperor took over again and started a lot of reforms.\n\nIndia – Mughal Empire \n\nThe Mughal Empire existed from 1526 to 1857. When it was biggest it ruled most of the Indian subcontinent, then known as Hindustan, and parts of what is now Afghanistan. It was founded by Babur in 1526 and ruled until 1530. Its most important ruler was Akbar (1556–1605). After the death of Aurangjeb (1658–1707), the Mughal Empire became weak. It continued until 1857. By that time, India came under the British Raj.\n\nAmerica \n\nSettlement by the Spanish started the European colonization of the Americas, it meant genocide of the native Indians. The Spanish gained control of most of the Caribbean and conquered the Aztecs. So they founded the Spanish Empire in the New World.\n\nThe first successful English settlements were in North America at Jamestown (Virginia), 1607 (along with its satellite, Bermuda in 1609) and Plymouth (Massachusetts), 1620. The first French settlements were Port Royal (1604) and Quebec City (1608). The Fur Trade soon became the primary business on the continent and as a result transformed the Native Americans lifestyle. Plantation slavery of the West Indies lead to the beginning of the Atlantic slave trade.\n\nRivalry between the European powers created a series of wars on the North American landmass. The American Revolution led to the creation of the United States of America.


key: _node_content
string_value:
{"id_": "75478ce3-8063-43ce-bcb9-420e36f067ba", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "408db1dd-5501-46f2-9f9e-db4641f4d30c", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "8ea306153516cf81f5581da7a96df2d106b9ac8326e8ec65551ab4ee1012843a", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "4c23a60a-5aae-426b-a415-392673b8bf24", "node_type": "1", "metadata": {}, "hash": "9b354c1cbb852e4b58b9d7ecfb0e2e49f3c9126a6a8213305c5ce35388bfb486", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 87328, "end_char_idx": 90555, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
It ended 1868 with Meiji Restoration, when the emperor took over again and started a lot of reforms.\n\nIndia – Mughal Empire \n\nThe Mughal Empire existed from 1526 to 1857. When it was biggest it ruled most of the Indian subcontinent, then known as Hindustan, and parts of what is now Afghanistan. It was founded by Babur in 1526 and ruled until 1530. Its most important ruler was Akbar (1556–1605). After the death of Aurangjeb (1658–1707), the Mughal Empire became weak. It continued until 1857. By that time, India came under the British Raj.\n\nAmerica \n\nSettlement by the Spanish started the European colonization of the Americas, it meant genocide of the native Indians. The Spanish gained control of most of the Caribbean and conquered the Aztecs. So they founded the Spanish Empire in the New World.\n\nThe first successful English settlements were in North America at Jamestown (Virginia), 1607 (along with its satellite, Bermuda in 1609) and Plymouth (Massachusetts), 1620. The first French settlements were Port Royal (1604) and Quebec City (1608). The Fur Trade soon became the primary business on the continent and as a result transformed the Native Americans lifestyle. Plantation slavery of the West Indies lead to the beginning of the Atlantic slave trade.\n\nRivalry between the European powers created a series of wars on the North American landmass. The American Revolution led to the creation of the United States of America. Spain\'s hold on its colonies weakened till it had to give them independence.\n\nThe United States expanded quickly to the west. At the same time, British built more in Canada.\n\nAfrica \nDuring the 15th century the Portuguese began exploring Africa. At the Guinea coast they built their first fort in 1482.  They started slave trade after the first European contact with America in 1492 to supply settlers from there with workers.  Soon English, Spanish, Dutch, French and Danish merchants also built forts.  But their influence on the inland was minor (except from decimation of population by slave trade) till during the 19th century larger colonies were founded.\n\nTwentieth Century onward \n\nThe 20th century was a very important time in history. New technology and different ideas led to many worldwide changes in the time of just 100 years.\n\nWorld Wars\n\nThe First World War \n\nWorld War I was a war fought from 1914 to 1918. During the time of the war, it was called "The Great War", or "The War to End All Wars". Chemical poisons, tanks, aeroplanes, and bombs were used for the first time.\n\nThere were four main causes of the war:\n Imperialism\n Nationalism\n Alliances\n Militarism\n\nThese were causes that made it likely that a war would start in Europe. The "spark" that started the war was the assassination of the heir to the throne in Austria-Hungary: Archduke Franz Ferdinand by a group of young Serbians. Austria-Hungary declared war on Serbia and each country\'s allies then joined the war. This created a bigger conflict which turned into World War I.\n\nEurope divided into two groups of allies: the Central Powers and the Allied Powers (the "Allies"). The Central Powers were made up of Germany, Austria-Hungary, the Ottoman Empire and Bulgaria.


key: _node_content
string_value:
{"id_": "4c23a60a-5aae-426b-a415-392673b8bf24", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "75478ce3-8063-43ce-bcb9-420e36f067ba", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "8d1946ebd6f44953396187085bfbd617fe5b4f466dc555b3fbe98f9fe291be72", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "0edbf977-ed70-4694-a412-b33046ed489e", "node_type": "1", "metadata": {}, "hash": "ed7fd05c794f6314d4b7f36265218e04fdf300d4b92f755ce282ab397d3d1d1c", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 88907, "end_char_idx": 92109, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
At the same time, British built more in Canada.\n\nAfrica \nDuring the 15th century the Portuguese began exploring Africa. At the Guinea coast they built their first fort in 1482.  They started slave trade after the first European contact with America in 1492 to supply settlers from there with workers.  Soon English, Spanish, Dutch, French and Danish merchants also built forts.  But their influence on the inland was minor (except from decimation of population by slave trade) till during the 19th century larger colonies were founded.\n\nTwentieth Century onward \n\nThe 20th century was a very important time in history. New technology and different ideas led to many worldwide changes in the time of just 100 years.\n\nWorld Wars\n\nThe First World War \n\nWorld War I was a war fought from 1914 to 1918. During the time of the war, it was called "The Great War", or "The War to End All Wars". Chemical poisons, tanks, aeroplanes, and bombs were used for the first time.\n\nThere were four main causes of the war:\n Imperialism\n Nationalism\n Alliances\n Militarism\n\nThese were causes that made it likely that a war would start in Europe. The "spark" that started the war was the assassination of the heir to the throne in Austria-Hungary: Archduke Franz Ferdinand by a group of young Serbians. Austria-Hungary declared war on Serbia and each country\'s allies then joined the war. This created a bigger conflict which turned into World War I.\n\nEurope divided into two groups of allies: the Central Powers and the Allied Powers (the "Allies"). The Central Powers were made up of Germany, Austria-Hungary, the Ottoman Empire and Bulgaria. The Allies were made up of Britain, France, Russia, Italy and the United States.\n\nWorld War I was fought on two fronts; the Eastern Front and the Western Front. Trench warfare was commonly used on the Eastern Front.\n\nBecause of a British blockade, Germany began using U-boats, or submarines, to sink British ships. After the sinking of two ships with Americans on board, and the public release of the Zimmermann Note, The U.S. declared war on Germany, joining the Allies.\n\nOn November 11, 1918, Germany signed the armistice, meaning "the laying down of arms", to end the war. After the war ended, the Treaty of Versailles was written and Germany was made to sign it. They had to pay $33 million in reparations (payment for damage).  The influenza pandemic of 1918 spread around the world, killing millions.\n\nAfter the First War \nAfter the war the German Empire, the Russian Empire, the Ottoman Empire and Austrian Empire ended and France and Britain got weaker.\nThe 1920s and 1930s had military-related fascist dictators take control of Italy, Germany, Japan and Spain. They were helped by the Great Depression starting in 1929. When Hitler in 1933 had gained power in Germany he prepared World War II.\n\nThe Second World War \n\nOf all the wars ever fought, World War II involved the most countries and killed the most people. More than 60 million people died, making it the worst disaster of all time. It lasted six years in Europe, from 1939 to 1945.\nIt was fought between the Axis Powers (Germany, Italy and Japan) and the Allied Powers.


key: _node_content
string_value:
{"id_": "0edbf977-ed70-4694-a412-b33046ed489e", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "4c23a60a-5aae-426b-a415-392673b8bf24", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "4b05c1fc167427c1b6f44b20861623171fb83e2b0c69c38a012ece9362c6f4a3", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "f53292cc-04b0-4bcb-822f-ba4cec0ce9fc", "node_type": "1", "metadata": {}, "hash": "ade7e1cb6877c44208fe30dc61468d69759a2581cccad98f3dc7fb99a92f012e", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 90462, "end_char_idx": 93713, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
The Central Powers were made up of Germany, Austria-Hungary, the Ottoman Empire and Bulgaria. The Allies were made up of Britain, France, Russia, Italy and the United States.\n\nWorld War I was fought on two fronts; the Eastern Front and the Western Front. Trench warfare was commonly used on the Eastern Front.\n\nBecause of a British blockade, Germany began using U-boats, or submarines, to sink British ships. After the sinking of two ships with Americans on board, and the public release of the Zimmermann Note, The U.S. declared war on Germany, joining the Allies.\n\nOn November 11, 1918, Germany signed the armistice, meaning "the laying down of arms", to end the war. After the war ended, the Treaty of Versailles was written and Germany was made to sign it. They had to pay $33 million in reparations (payment for damage).  The influenza pandemic of 1918 spread around the world, killing millions.\n\nAfter the First War \nAfter the war the German Empire, the Russian Empire, the Ottoman Empire and Austrian Empire ended and France and Britain got weaker.\nThe 1920s and 1930s had military-related fascist dictators take control of Italy, Germany, Japan and Spain. They were helped by the Great Depression starting in 1929. When Hitler in 1933 had gained power in Germany he prepared World War II.\n\nThe Second World War \n\nOf all the wars ever fought, World War II involved the most countries and killed the most people. More than 60 million people died, making it the worst disaster of all time. It lasted six years in Europe, from 1939 to 1945.\nIt was fought between the Axis Powers (Germany, Italy and Japan) and the Allied Powers. At first the Axis Powers were successful, but that ended in Europe with the Battle of Stalingrad in 1943 and the invasion in Normandy in 1944. But Hitler was able to pursue his plan to annihilate Jews nearly all over Europe. Today, this plan is called the Holocaust.\nIn the Pacific it ended with the battles of Midway and Guadalcanal. Germany surrendered on May 8. The Soviet invasion of Japan led Japan to surrender on August 15, 1945.\n\nAfter World War II \nAfter World War II the United Nations was founded in the hope that it could solve arguments among nations and keep wars from happening. Communism spread to Central and Eastern Europe, Yugoslavia, Bulgaria, Romania, Albania, North Vietnam and North Korea. In 1949, China became communist. During the 1950s and 1960s, many third world countries became communist.\n\nThis led to the Cold War, a forty-year argument between the United States, the Soviet Union, and their allies (mainly countries that were members of NATO or the Warsaw Pact). Each country wanted to promote their type of government. The Soviet Union wanted to spread communism, and the United States wanted to spread democracy. People across the world feared a nuclear war because of the tension.\n\nCommunism became less popular when it became clear that it could not promote economic growth as well as Western states and that it was not suited for a reform that allowed freedom of speech for everybody. Therefore, the Soviet Union forced Hungary to give up its reform in 1956, it favored the building of the Berlin Wall in 1961 and it stopped reform in Czechoslovakia in 1968.


key: _node_content
string_value:
{"id_": "f53292cc-04b0-4bcb-822f-ba4cec0ce9fc", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "0edbf977-ed70-4694-a412-b33046ed489e", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "9f2391df4cd5cebf507fa2091657274423f51e464c22e72d692d0510777a499d", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "cafac526-1917-4ec8-9310-6563e1eabe33", "node_type": "1", "metadata": {}, "hash": "57f303cba24ec92e394c70de07c47550fc046aeccfb790256de7bde37cb6dcf9", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 92110, "end_char_idx": 95716, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
At first the Axis Powers were successful, but that ended in Europe with the Battle of Stalingrad in 1943 and the invasion in Normandy in 1944. But Hitler was able to pursue his plan to annihilate Jews nearly all over Europe. Today, this plan is called the Holocaust.\nIn the Pacific it ended with the battles of Midway and Guadalcanal. Germany surrendered on May 8. The Soviet invasion of Japan led Japan to surrender on August 15, 1945.\n\nAfter World War II \nAfter World War II the United Nations was founded in the hope that it could solve arguments among nations and keep wars from happening. Communism spread to Central and Eastern Europe, Yugoslavia, Bulgaria, Romania, Albania, North Vietnam and North Korea. In 1949, China became communist. During the 1950s and 1960s, many third world countries became communist.\n\nThis led to the Cold War, a forty-year argument between the United States, the Soviet Union, and their allies (mainly countries that were members of NATO or the Warsaw Pact). Each country wanted to promote their type of government. The Soviet Union wanted to spread communism, and the United States wanted to spread democracy. People across the world feared a nuclear war because of the tension.\n\nCommunism became less popular when it became clear that it could not promote economic growth as well as Western states and that it was not suited for a reform that allowed freedom of speech for everybody. Therefore, the Soviet Union forced Hungary to give up its reform in 1956, it favored the building of the Berlin Wall in 1961 and it stopped reform in Czechoslovakia in 1968. When in 1988/89 Gorbachev made clear that he would not force the countries of the East block to stick to Communism the Berlin Wall was torn down in 1989 and the Soviet Union collapsed (1991). Then the United States was the only superpower left.\n\nAfter Mao Zedong\'s death China\'s communist party proved that economic reform was possible without political freedom and paved the way for enormous economic growth.\n\nAs the 20th century ended, the European Union began to rise and included former satellite states and even parts of the Soviet Union. States in Asia, Africa and South America tried to copy the European Union.\n\nThe twentieth century was a time of great progress in terms of technology. People began to live longer because of better medicine and medical technology. New communications and transportation technologies connected the world. But these advances also helped cause problems with the environment.\n\nThe last half of the century had smaller wars.  Improved information technology and globalization increased trade and cultural exchange.  Space exploration expanded through the solar system.  The structure of DNA was discovered.\n\nThe same period also raised questions about the end of human history because of global dangers: nuclear weapons, greenhouse effect and other problems in the environment.\n\n21st century \n\nAs the 20th century ended, globalization has continued. During this period, communications with mobile phones and the Internet have expanded, which has led to fundamental social changes in corporation, political, and individuals\' personal lives. Due to the population of growth and industrialization, worldwide resource competition is becoming increasingly highly, especially in India, China and Brazil. The increasing demand on the environmental degradation and global warming.\n\nA new Great Recession affected the world in the late 2000s and the early 2010s, and the COVID-19 pandemic spread in 2020, causing further economic and political disruption.


key: _node_content
string_value:
{"id_": "cafac526-1917-4ec8-9310-6563e1eabe33", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "f53292cc-04b0-4bcb-822f-ba4cec0ce9fc", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "135cce8fc25d0fe98eaee8c6a4262adc40788472087e9887f5a567f66301fa44", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "ab2f6b15-a412-464d-8881-111443594942", "node_type": "1", "metadata": {}, "hash": "2f978cd69c4ee0c1f1e355a61d3c6e955eda445953bccede0ce77059cc23829e", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 93714, "end_char_idx": 96884, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
When in 1988/89 Gorbachev made clear that he would not force the countries of the East block to stick to Communism the Berlin Wall was torn down in 1989 and the Soviet Union collapsed (1991). Then the United States was the only superpower left.\n\nAfter Mao Zedong\'s death China\'s communist party proved that economic reform was possible without political freedom and paved the way for enormous economic growth.\n\nAs the 20th century ended, the European Union began to rise and included former satellite states and even parts of the Soviet Union. States in Asia, Africa and South America tried to copy the European Union.\n\nThe twentieth century was a time of great progress in terms of technology. People began to live longer because of better medicine and medical technology. New communications and transportation technologies connected the world. But these advances also helped cause problems with the environment.\n\nThe last half of the century had smaller wars.  Improved information technology and globalization increased trade and cultural exchange.  Space exploration expanded through the solar system.  The structure of DNA was discovered.\n\nThe same period also raised questions about the end of human history because of global dangers: nuclear weapons, greenhouse effect and other problems in the environment.\n\n21st century \n\nAs the 20th century ended, globalization has continued. During this period, communications with mobile phones and the Internet have expanded, which has led to fundamental social changes in corporation, political, and individuals\' personal lives. Due to the population of growth and industrialization, worldwide resource competition is becoming increasingly highly, especially in India, China and Brazil. The increasing demand on the environmental degradation and global warming.\n\nA new Great Recession affected the world in the late 2000s and the early 2010s, and the COVID-19 pandemic spread in 2020, causing further economic and political disruption. Some scientists referred to this as a "Planetary Phase of Civilization".\n\nRelated pages \n History of Africa\n History of America\n History of Asia\n History of Australia\n History of Europe\n History of the Earth\n\nReferences\n\nFurther reading \n \nEnglish translation by Paul G. Bahn from the French edition La Grotte Chauvet\n \n \nTranslation of La Grotte Chauvet, l\'art des origins, Éditions du Seuil, 2001\n\nOther websites \n Universal Concise History of the World, 1832 Full text, free to read, American book on the history of the world with the intriguing perspective of 1832 America.\n WWW-VL: World History at European University Institute\n Five Epochs of Civilization A scheme of organization which divides world history into five epochs marked by changes in communication technology\n World history -Citizendium\n\n+\nFormer good articles', 'vector_id': 11672}}]}}


    /var/folders/vz/v2f6_x6s0kg51j2vbm5rlhww0000gn/T/ipykernel_27978/2105931364.py:1: DeprecationWarning: The 'body' parameter is deprecated and will be removed in a future version. Instead use individual parameters.
      print(client.search(index="wikipedia_vector_index", body={


key: _node_content
string_value:
{"id_": "ab2f6b15-a412-464d-8881-111443594942", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "cafac526-1917-4ec8-9310-6563e1eabe33", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "3cf4d4b5110e9b1984e79efeb026fbc9c9a11aaa54d3a4bc787f96f24705895d", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "d2740258-bfe9-46d0-8f3a-4cb7b3af3265", "node_type": "1", "metadata": {}, "hash": "7696119225a4372e6aebd21709fc973228f88bd979d42b961778499e9143068f", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 95308, "end_char_idx": 98391, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Due to the population of growth and industrialization, worldwide resource competition is becoming increasingly highly, especially in India, China and Brazil. The increasing demand on the environmental degradation and global warming.\n\nA new Great Recession affected the world in the late 2000s and the early 2010s, and the COVID-19 pandemic spread in 2020, causing further economic and political disruption. Some scientists referred to this as a "Planetary Phase of Civilization".\n\nRelated pages \n History of Africa\n History of America\n History of Asia\n History of Australia\n History of Europe\n History of the Earth\n\nReferences\n\nFurther reading \n \nEnglish translation by Paul G. Bahn from the French edition La Grotte Chauvet\n \n \nTranslation of La Grotte Chauvet, l\'art des origins, Éditions du Seuil, 2001\n\nOther websites \n Universal Concise History of the World, 1832 Full text, free to read, American book on the history of the world with the intriguing perspective of 1832 America.\n WWW-VL: World History at European University Institute\n Five Epochs of Civilization A scheme of organization which divides world history into five epochs marked by changes in communication technology\n World history -Citizendium\n\n+\nFormer good articles', 'vector_id': 11672}}]}}


    /var/folders/vz/v2f6_x6s0kg51j2vbm5rlhww0000gn/T/ipykernel_27978/2105931364.py:1: DeprecationWarning: The 'body' parameter is deprecated and will be removed in a future version. Instead use individual parameters.
      print(client.search(index="wikipedia_vector_index", body={


## Encode a question with OpenAI embedding model

To perform kNN search, we need to encode queries with the same embedding model used to encode the documents at index time.
In this example, we need to use the `text-embedding-3-small` model.

You'll need your OpenAI [API key](https://platform.openai.com/account/api-keys) to generate the embeddings.


```python
# Get OpenAI API key
OPENAI_API_KEY = getpass("Enter OpenAI API key")

# Set API key
openai.api_key = OPENAI_API_KEY

# Define model
EMBEDDING_MODEL = "text-embedding-3-small"

# Define question
question = 'Is the Atlantic the biggest ocean in the world?'

# Create embedding
question_embedding = openai.Embedding.create(input=question, model=EMBEDDING_MODEL)

```

## Run semantic search queries

Now we're ready to run queries against our Elasticsearch index using our encoded question. We'll be doing a k-nearest neighbors search, using the Elasticsearch [kNN query](https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search.html) option.

First, we define a small function to pretty print the results.


```python
# Function to pretty print Elasticsearch results

def pretty_response(response):
    for hit in response['hits']['hits']:
        id = hit['_id']
        score = hit['_score']
        title = hit['_source']['title']
        text = hit['_source']['text']
        pretty_output = (f"\nID: {id}\nTitle: {title}\nSummary: {text}\nScore: {score}")
        print(pretty_output)
```

Now let's run our `kNN` query.


key: _node_content
string_value:
{"id_": "d2740258-bfe9-46d0-8f3a-4cb7b3af3265", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "ab2f6b15-a412-464d-8881-111443594942", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "b840a50cc73cfec72f5c8a628c3bf1abb9e6823cc9a33b455fa853b4a0071d50", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "5d068e7d-cb74-40df-8bd6-68570258c96f", "node_type": "1", "metadata": {}, "hash": "bd282233295e7a2700c07cd55fe575a0fb1cdec056362373c29a0363c7697c11", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 96887, "end_char_idx": 100175, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
## Encode a question with OpenAI embedding model

To perform kNN search, we need to encode queries with the same embedding model used to encode the documents at index time.
In this example, we need to use the `text-embedding-3-small` model.

You'll need your OpenAI [API key](https://platform.openai.com/account/api-keys) to generate the embeddings.


```python
# Get OpenAI API key
OPENAI_API_KEY = getpass("Enter OpenAI API key")

# Set API key
openai.api_key = OPENAI_API_KEY

# Define model
EMBEDDING_MODEL = "text-embedding-3-small"

# Define question
question = 'Is the Atlantic the biggest ocean in the world?'

# Create embedding
question_embedding = openai.Embedding.create(input=question, model=EMBEDDING_MODEL)

```

## Run semantic search queries

Now we're ready to run queries against our Elasticsearch index using our encoded question. We'll be doing a k-nearest neighbors search, using the Elasticsearch [kNN query](https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search.html) option.

First, we define a small function to pretty print the results.


```python
# Function to pretty print Elasticsearch results

def pretty_response(response):
    for hit in response['hits']['hits']:
        id = hit['_id']
        score = hit['_score']
        title = hit['_source']['title']
        text = hit['_source']['text']
        pretty_output = (f"\nID: {id}\nTitle: {title}\nSummary: {text}\nScore: {score}")
        print(pretty_output)
```

Now let's run our `kNN` query.


```python
response = client.search(
  index = "wikipedia_vector_index",
  knn={
      "field": "content_vector",
      "query_vector":  question_embedding["data"][0]["embedding"],
      "k": 10,
      "num_candidates": 100
    }
)
pretty_response(response)

top_hit_summary = response['hits']['hits'][0]['_source']['text'] # Store content of top hit for final step
```

    
    ID: 1936
    Title: Atlantic Ocean
    Summary: The Atlantic Ocean is the world's second largest ocean.  It covers a total area of about . It covers about 20 percent of the Earth's surface. It is named after the god Atlas from Greek mythology.
    
    Geologic history 
    The Atlantic formed when the Americas moved west from Eurasia and Africa. This began sometime in the Cretaceous period, roughly 135 million years ago. It was part of the break-up of the supercontinent Pangaea.
    
    The east coast of South America is shaped somewhat like the west coast of Africa, and this gave a clue that continents moved over long periods of time (continental drift). The Atlantic Ocean is still growing now, because of sea-floor spreading from the mid-Atlantic Ridge, while the Pacific Ocean is said to be shrinking because the sea floor is folding under itself or subducting into the mantle.
    
    Geography
    The Atlantic Ocean is bounded on the west by North and South America. It connects to the Arctic Ocean through the Denmark Strait, Greenland Sea, Norwegian Sea and Barents Sea. It connects with the Mediterranean Sea through the Strait of Gibraltar.
    
    In the southeast, the Atlantic merges into the Indian Ocean. The 20° East meridian defines its border.
    
    In the southwest, the Drake Passage connects it to the Pacific Ocean. The Panama Canal links the Atlantic and Pacific.


key: _node_content
string_value:
{"id_": "5d068e7d-cb74-40df-8bd6-68570258c96f", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "d2740258-bfe9-46d0-8f3a-4cb7b3af3265", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "ce0b7969f4ec4f846f66ded480d7c3b8176f28e42248f3a45de877e5bc5ab45e", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "645dd08d-5243-4a79-a258-20a16038603f", "node_type": "1", "metadata": {}, "hash": "d9517759a69d28dade0020f465c31f8ca19ce87e1515bea7e968e263b430ce1b", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 98878, "end_char_idx": 102381, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
It covers a total area of about . It covers about 20 percent of the Earth's surface. It is named after the god Atlas from Greek mythology.
    
    Geologic history 
    The Atlantic formed when the Americas moved west from Eurasia and Africa. This began sometime in the Cretaceous period, roughly 135 million years ago. It was part of the break-up of the supercontinent Pangaea.
    
    The east coast of South America is shaped somewhat like the west coast of Africa, and this gave a clue that continents moved over long periods of time (continental drift). The Atlantic Ocean is still growing now, because of sea-floor spreading from the mid-Atlantic Ridge, while the Pacific Ocean is said to be shrinking because the sea floor is folding under itself or subducting into the mantle.
    
    Geography
    The Atlantic Ocean is bounded on the west by North and South America. It connects to the Arctic Ocean through the Denmark Strait, Greenland Sea, Norwegian Sea and Barents Sea. It connects with the Mediterranean Sea through the Strait of Gibraltar.
    
    In the southeast, the Atlantic merges into the Indian Ocean. The 20° East meridian defines its border.
    
    In the southwest, the Drake Passage connects it to the Pacific Ocean. The Panama Canal links the Atlantic and Pacific.
    
    The Atlantic Ocean is second in size to the Pacific. It occupies an area of about . The volume of the Atlantic, along with its adjacent seas (the seas next to it), is 354,700,000 cubic kilometres.
    
    The average depth of the Atlantic, along with its adjacent seas, is . The greatest depth is Milwaukee Deep near Puerto Rico, where the Ocean is  deep.
    
    Gulf Stream 
    The Atlantic Ocean has important ocean currents.  One of these, called the Gulf Stream, flows across the North Atlantic.  Water gets heated by the sun in the Caribbean Sea and then moves northwest toward the North Pole.  This makes France, the British Isles, Iceland, and Norway in Europe much warmer in winter than Newfoundland and Nova Scotia in Canada. Without the Gulf Stream, the climates of northeast Canada and northwest Europe might be the same, because these places are about the same distance from the North Pole.
    
    There are currents in the South Atlantic too, but the shape of this sea means that it has less effect on South Africa.
    
    Geology 
    The main feature of the Atlantic Ocean's seabed is a large underwater mountain chain called the Mid-Atlantic Ridge.  It runs from north to south under the Ocean. This is at the boundary of four tectonic plates: Eurasian, North American, South American and African. The ridge extends from Iceland in the north to about 58° south.
    
    The salinity of the surface waters of the open ocean ranges from 3337 parts per thousand and varies with latitude and season.
    
    References
    
    Other websites 
    LA Times special Altered Oceans 
    Oceanography Image of the Day, from the Woods Hole Oceanographic Institution
    National Oceanic and Atmospheric Administration 
    NOAA In-situ Ocean Data Viewer  Plot and download ocean observations
    
    www.cartage.org.lb 
    www.mnsu.edu
    Score: 0.93641126
    
    ID: 1975
    Title: Pacific Ocean
    Summary: The Pacific Ocean is the body of water between Asia and Australia in the west, the Americas in the east, the Southern Ocean to the south, and the Arctic Ocean to the north. It is the largest named ocean and it covers one-third of the surface of the entire world.


key: _node_content
string_value:
{"id_": "645dd08d-5243-4a79-a258-20a16038603f", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "5d068e7d-cb74-40df-8bd6-68570258c96f", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d271c9d12c5871f1f34469d0ae4b1f25057a37586fc6130a4d2d606565364891", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "c8077a27-0c06-4114-9809-04f46602f5e2", "node_type": "1", "metadata": {}, "hash": "5ed02ecc629fa59f5a566586d9e71d97ed91160f0b45f46c1b3118edd90c68c6", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 100551, "end_char_idx": 104000, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Gulf Stream 
    The Atlantic Ocean has important ocean currents.  One of these, called the Gulf Stream, flows across the North Atlantic.  Water gets heated by the sun in the Caribbean Sea and then moves northwest toward the North Pole.  This makes France, the British Isles, Iceland, and Norway in Europe much warmer in winter than Newfoundland and Nova Scotia in Canada. Without the Gulf Stream, the climates of northeast Canada and northwest Europe might be the same, because these places are about the same distance from the North Pole.
    
    There are currents in the South Atlantic too, but the shape of this sea means that it has less effect on South Africa.
    
    Geology 
    The main feature of the Atlantic Ocean's seabed is a large underwater mountain chain called the Mid-Atlantic Ridge.  It runs from north to south under the Ocean. This is at the boundary of four tectonic plates: Eurasian, North American, South American and African. The ridge extends from Iceland in the north to about 58° south.
    
    The salinity of the surface waters of the open ocean ranges from 3337 parts per thousand and varies with latitude and season.
    
    References
    
    Other websites 
    LA Times special Altered Oceans 
    Oceanography Image of the Day, from the Woods Hole Oceanographic Institution
    National Oceanic and Atmospheric Administration 
    NOAA In-situ Ocean Data Viewer  Plot and download ocean observations
    
    www.cartage.org.lb 
    www.mnsu.edu
    Score: 0.93641126
    
    ID: 1975
    Title: Pacific Ocean
    Summary: The Pacific Ocean is the body of water between Asia and Australia in the west, the Americas in the east, the Southern Ocean to the south, and the Arctic Ocean to the north. It is the largest named ocean and it covers one-third of the surface of the entire world. It joins the Atlantic Ocean at a line drawn  south from Cape Horn, Chile/Argentina to Antarctica, and joins the Indian Ocean at a line drawn  south from Tasmania, Australia to Antarctica.
    
    As the Atlantic slowly gets wider, the Pacific is slowly shrinking. It does this by folding the sea floor in towards the centre of the Earth - this is called subduction.  This bumping and grinding is hard so there are many earthquakes and volcanoes when the pressure builds up and is quickly released as large explosions of hot rocks and dust. When an earthquake happens under the sea, the quick jerk causes a tsunami. This is why tsunamis are more common around the edge of the Pacific than anywhere else. Many of the Earth's volcanoes are either islands in the Pacific, or are on continents within a few hundred kilometers of the ocean's edge. Plate tectonics are another reason which makes Pacific Ocean smaller.
    
    Other websites 
    
     EPIC Pacific Ocean Data Collection Viewable on-line collection of observational data
     NOAA In-situ Ocean Data Viewer  plot and download ocean observations
     NOAA PMEL Argo profiling floats Realtime Pacific Ocean data
     NOAA TAO El Niño data Realtime Pacific Ocean El Niño buoy data
     NOAA Ocean Surface Current Analyses – Realtime (OSCAR) Near-realtime Pacific Ocean Surface Currents derived from satellite altimeter and scatterometer data
    Score: 0.9177895
    
    ID: 11124
    Title: List of seas
    Summary: The sea is the interconnected system of all the Earth's oceanic waters, including the Atlantic, Pacific, Indian, Southern and Arctic Oceans.


key: _node_content
string_value:
{"id_": "c8077a27-0c06-4114-9809-04f46602f5e2", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "645dd08d-5243-4a79-a258-20a16038603f", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "21cb3952ccbff5e58ec341318b1b895e7c8f0d93b577fdaf0e03d7b40c0b2717", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "b74aed58-e808-4686-9f76-cc8b1bfdfa04", "node_type": "1", "metadata": {}, "hash": "d83de84cc6f78d3cf3146e580b40a7f857fc65bfe8f621d044210a3e6c220b54", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 102292, "end_char_idx": 104718, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
It is the largest named ocean and it covers one-third of the surface of the entire world. It joins the Atlantic Ocean at a line drawn  south from Cape Horn, Chile/Argentina to Antarctica, and joins the Indian Ocean at a line drawn  south from Tasmania, Australia to Antarctica.
    
    As the Atlantic slowly gets wider, the Pacific is slowly shrinking. It does this by folding the sea floor in towards the centre of the Earth - this is called subduction.  This bumping and grinding is hard so there are many earthquakes and volcanoes when the pressure builds up and is quickly released as large explosions of hot rocks and dust. When an earthquake happens under the sea, the quick jerk causes a tsunami. This is why tsunamis are more common around the edge of the Pacific than anywhere else. Many of the Earth's volcanoes are either islands in the Pacific, or are on continents within a few hundred kilometers of the ocean's edge. Plate tectonics are another reason which makes Pacific Ocean smaller.
    
    Other websites 
    
     EPIC Pacific Ocean Data Collection Viewable on-line collection of observational data
     NOAA In-situ Ocean Data Viewer  plot and download ocean observations
     NOAA PMEL Argo profiling floats Realtime Pacific Ocean data
     NOAA TAO El Niño data Realtime Pacific Ocean El Niño buoy data
     NOAA Ocean Surface Current Analyses – Realtime (OSCAR) Near-realtime Pacific Ocean Surface Currents derived from satellite altimeter and scatterometer data
    Score: 0.9177895
    
    ID: 11124
    Title: List of seas
    Summary: The sea is the interconnected system of all the Earth's oceanic waters, including the Atlantic, Pacific, Indian, Southern and Arctic Oceans. However, the word "sea" can also be used for many specific, much smaller bodies of seawater, such as the North Sea or the Red Sea.There are 78 seas in the world
    
    List of seas, by ocean
    
    Pacific Ocean 
     Bering Sea
     Gulf of Alaska
     Seck Sea (Gulf of California)
     Sea of Okhotsk
     Sea of Japan
     Seto Inland Sea
     East China Sea
     South China Sea
     Beibu Gulf
     Sulu Sea
     Celebes Sea
     Bohol Sea (Mindanao Sea)
     Philippine Sea
     Flores Sea
     Banda Sea
     Arafura Sea
     Tasman Sea
     Yellow Sea
     Bohai Sea
     Coral Sea
     Gulf of Carpentaria
    
    Atlantic Ocean 
     Hudson Bay
     James Bay
     Baffin Bay init fam
     Gulf of St.


key: _node_content
string_value:
{"id_": "b74aed58-e808-4686-9f76-cc8b1bfdfa04", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "c8077a27-0c06-4114-9809-04f46602f5e2", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "42754b92a0e8e47d8ed39a8921d01f3a21bc2bfc4276a6469716c3d8b950d220", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "1c372091-81ec-4484-abcb-6549051e0e52", "node_type": "1", "metadata": {}, "hash": "67a78d981ac70fa435dace0d5261913077f896e0e230d160fe7e3c3e8cf6078f", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 103086, "end_char_idx": 106015, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Many of the Earth's volcanoes are either islands in the Pacific, or are on continents within a few hundred kilometers of the ocean's edge. Plate tectonics are another reason which makes Pacific Ocean smaller.
    
    Other websites 
    
     EPIC Pacific Ocean Data Collection Viewable on-line collection of observational data
     NOAA In-situ Ocean Data Viewer  plot and download ocean observations
     NOAA PMEL Argo profiling floats Realtime Pacific Ocean data
     NOAA TAO El Niño data Realtime Pacific Ocean El Niño buoy data
     NOAA Ocean Surface Current Analyses – Realtime (OSCAR) Near-realtime Pacific Ocean Surface Currents derived from satellite altimeter and scatterometer data
    Score: 0.9177895
    
    ID: 11124
    Title: List of seas
    Summary: The sea is the interconnected system of all the Earth's oceanic waters, including the Atlantic, Pacific, Indian, Southern and Arctic Oceans. However, the word "sea" can also be used for many specific, much smaller bodies of seawater, such as the North Sea or the Red Sea.There are 78 seas in the world
    
    List of seas, by ocean
    
    Pacific Ocean 
     Bering Sea
     Gulf of Alaska
     Seck Sea (Gulf of California)
     Sea of Okhotsk
     Sea of Japan
     Seto Inland Sea
     East China Sea
     South China Sea
     Beibu Gulf
     Sulu Sea
     Celebes Sea
     Bohol Sea (Mindanao Sea)
     Philippine Sea
     Flores Sea
     Banda Sea
     Arafura Sea
     Tasman Sea
     Yellow Sea
     Bohai Sea
     Coral Sea
     Gulf of Carpentaria
    
    Atlantic Ocean 
     Hudson Bay
     James Bay
     Baffin Bay init fam
     Gulf of St. Lawrence
     Gulf of Guinea
     Caribbean Sea
     Gulf of Mexico
     Sargasso Sea
     North Sea
     Baltic Sea
     Gulf of Bothnia
     Irish Sea
     Celtic Sea
     English Channel
     Mediterranean Sea
     Adriatic Sea
     Aegean Sea
     Black Sea
     Sea of Azov
     Ionian Sea
     Ligurian Sea
     Mirtoon Sea
     Tyrrhenian Sea
     Gulf of Sidra
     Sea of Marmara
     Sea of Crete
    
    Indian Ocean 
     Red Sea
     Gulf of Aden
     Persian Gulf
     Gulf of Oman
     Arabian Sea
     Bay of Bengal
     Gulf of Thailand
     Java Sea
     Timor Sea
     Gulf of Kutch
     Gulf of Khambhat
    
    Arctic Ocean 
     Barents Sea
     Kara Sea
     Beaufort Sea
     Amundsen Gulf
     Greenland Sea
     Chukchi Sea
     Laptev Sea
     East Siberian Sea
    
    Southern Ocean 
     Amundsen Sea
     Weddell Sea
     Ross Sea
     Great Australian Bight
     Gulf St. Vincent
     Spencer Gulf
    
    Seas which have land around them (these are landlocked) 
     Aral Sea
     Caspian Sea
     Dead Sea
     Sea of Galilee (we call this a sea, but it is really a small freshwater lake)
     Salton Sea
    
    Seas which are not on Earth 
    Lunar maria are very big areas on the Moon. In the past, people thought they were water and called them "seas".


key: _node_content
string_value:
{"id_": "1c372091-81ec-4484-abcb-6549051e0e52", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "b74aed58-e808-4686-9f76-cc8b1bfdfa04", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d5825af3a55e0636431b5f92656e94dc3ed8f5a887ee381e0520540a2c5779f1", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "bbe00ef7-391a-463c-a9db-7c8eac797f77", "node_type": "1", "metadata": {}, "hash": "dcdc51e4dcce3169cfe0d94b37e047900d9410fe10a82368a770a1d6a0ac0825", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 104719, "end_char_idx": 107715, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Lawrence
     Gulf of Guinea
     Caribbean Sea
     Gulf of Mexico
     Sargasso Sea
     North Sea
     Baltic Sea
     Gulf of Bothnia
     Irish Sea
     Celtic Sea
     English Channel
     Mediterranean Sea
     Adriatic Sea
     Aegean Sea
     Black Sea
     Sea of Azov
     Ionian Sea
     Ligurian Sea
     Mirtoon Sea
     Tyrrhenian Sea
     Gulf of Sidra
     Sea of Marmara
     Sea of Crete
    
    Indian Ocean 
     Red Sea
     Gulf of Aden
     Persian Gulf
     Gulf of Oman
     Arabian Sea
     Bay of Bengal
     Gulf of Thailand
     Java Sea
     Timor Sea
     Gulf of Kutch
     Gulf of Khambhat
    
    Arctic Ocean 
     Barents Sea
     Kara Sea
     Beaufort Sea
     Amundsen Gulf
     Greenland Sea
     Chukchi Sea
     Laptev Sea
     East Siberian Sea
    
    Southern Ocean 
     Amundsen Sea
     Weddell Sea
     Ross Sea
     Great Australian Bight
     Gulf St. Vincent
     Spencer Gulf
    
    Seas which have land around them (these are landlocked) 
     Aral Sea
     Caspian Sea
     Dead Sea
     Sea of Galilee (we call this a sea, but it is really a small freshwater lake)
     Salton Sea
    
    Seas which are not on Earth 
    Lunar maria are very big areas on the Moon. In the past, people thought they were water and called them "seas". 
    
    Scientists think that there is liquid water under the ground on some moons, for example Europa.
    
    Scientists also think that there are liquid hydrocarbons on Titan. 
    
    Basic English 850 words
    
    Geography-related lists
    Score: 0.9160284
    
    ID: 2033
    Title: Southern Ocean
    Summary: The Southern Ocean is the ocean around Antarctica. It means the waters of the Atlantic, Pacific, and Indian Oceans around the continent of Antarctica. Since the 1770s geographers have discussed its limits. Nowadays, sixty degrees south latitude is often accepted. Some people call this ocean the Antarctic Ocean.
    
    The total area is 20,327,000 km², and the coastline length is 17,968 km.
    
    Other websites 
    
     Oceanography Image of the Day, from the Woods Hole Oceanographic Institution
     The CIA World Factbook's  entry on the Southern Ocean
     The Fifth Ocean from Geography.About.com
     NOAA In-situ Ocean Data Viewer  Plot and download ocean observations
     NOAA FAQ about the number of oceans 
    
     
    Geography of Antarctica
    Score: 0.9083342
    
    ID: 1978
    Title: Indian Ocean
    Summary: The Indian Ocean is the ocean surrounded by Asia to the north, Australia and the Pacific Ocean to the east, the Southern Ocean to the south, and Africa and the Atlantic Ocean to the west. It is named for the river Indus and Ancient India on its north shore. The Bay of Bengal, the Arabian Sea, the Persian Gulf and the Red Sea are all parts of this ocean.
    
    The deepest point in the Indian Ocean is in the Java Trench near the Sunda Islands in the east, 7500 m (25,344 feet) deep. The average depth is 3,890 m (12,762 ft).


key: _node_content
string_value:
{"id_": "bbe00ef7-391a-463c-a9db-7c8eac797f77", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "1c372091-81ec-4484-abcb-6549051e0e52", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "1e6e77a02b2323f62c50c221f071c1f881845d80458a452dcc62d3a25beb049a", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "aea5c784-d8dd-4648-9e78-1240278afc72", "node_type": "1", "metadata": {}, "hash": "7bf262879aa808ef143a6ace963be891ac5bc975625e69bd52fc61044c3ed735", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 106026, "end_char_idx": 109297, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Scientists think that there is liquid water under the ground on some moons, for example Europa.
    
    Scientists also think that there are liquid hydrocarbons on Titan. 
    
    Basic English 850 words
    
    Geography-related lists
    Score: 0.9160284
    
    ID: 2033
    Title: Southern Ocean
    Summary: The Southern Ocean is the ocean around Antarctica. It means the waters of the Atlantic, Pacific, and Indian Oceans around the continent of Antarctica. Since the 1770s geographers have discussed its limits. Nowadays, sixty degrees south latitude is often accepted. Some people call this ocean the Antarctic Ocean.
    
    The total area is 20,327,000 km², and the coastline length is 17,968 km.
    
    Other websites 
    
     Oceanography Image of the Day, from the Woods Hole Oceanographic Institution
     The CIA World Factbook's  entry on the Southern Ocean
     The Fifth Ocean from Geography.About.com
     NOAA In-situ Ocean Data Viewer  Plot and download ocean observations
     NOAA FAQ about the number of oceans 
    
     
    Geography of Antarctica
    Score: 0.9083342
    
    ID: 1978
    Title: Indian Ocean
    Summary: The Indian Ocean is the ocean surrounded by Asia to the north, Australia and the Pacific Ocean to the east, the Southern Ocean to the south, and Africa and the Atlantic Ocean to the west. It is named for the river Indus and Ancient India on its north shore. The Bay of Bengal, the Arabian Sea, the Persian Gulf and the Red Sea are all parts of this ocean.
    
    The deepest point in the Indian Ocean is in the Java Trench near the Sunda Islands in the east, 7500 m (25,344 feet) deep. The average depth is 3,890 m (12,762 ft). The Indian Ocean is the third largest ocean, 28,350,000 square miles in size. The majority is in the southern hemisphere.
    
    Other websites 
    
     Maps of the indian Ocean
     Océan Indien in easy French
     NOAA In-situ Ocean Data Viewer  Plot and download ocean observations
     The Indian Ocean in World History: Educational Website Interactive resource from the Sultan Qaboos Cultural Center
     The Regional Tuna Tagging Project-Indian Ocean with details of the importance of Tuna in the Indian Ocean.. 
     Detailed maps of the Indian Ocean
     The Indian Ocean Trade: A Classroom Simulation 
     CIA - The World Factbook, Oceans: Indian Ocean
    Score: 0.90738976
    
    ID: 1980
    Title: Arctic Ocean
    Summary: The Arctic Ocean is the ocean around the North Pole. The most northern parts of Eurasia and North America are around the Arctic Ocean. Thick pack ice and snow cover almost all of this ocean in winter, and most of it in summer. An icebreaker or a nuclear-powered submarine can use the Northwest Passage through the Arctic Ocean to go between the Pacific and Atlantic oceans.
    
    The ocean's area is about 14.056 million km2, which is the smallest of the world's 5 oceans, and it has  of coastline. The central surface covered by ice about  thick. The biology there is quite special. Endangered species there include walruses, whales and polar bears. Year by year the Arctic Ocean is becoming less icy, as a result of global warming.
    
    The average depth of the Arctic Ocean is . The deepest point is in the Eurasian Basin, at .


key: _node_content
string_value:
{"id_": "aea5c784-d8dd-4648-9e78-1240278afc72", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "bbe00ef7-391a-463c-a9db-7c8eac797f77", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "396a80cf8574eadaa49f5a271a370c2319957444853c20868e65c9478bdcd84b", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "00f5ea0e-a49d-401a-a420-c872f2629491", "node_type": "1", "metadata": {}, "hash": "fd1b375ba788541c48d976098c1ea1b8d935ec097fd369943d5cc4e8710b600c", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 107674, "end_char_idx": 110771, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
The average depth is 3,890 m (12,762 ft). The Indian Ocean is the third largest ocean, 28,350,000 square miles in size. The majority is in the southern hemisphere.
    
    Other websites 
    
     Maps of the indian Ocean
     Océan Indien in easy French
     NOAA In-situ Ocean Data Viewer  Plot and download ocean observations
     The Indian Ocean in World History: Educational Website Interactive resource from the Sultan Qaboos Cultural Center
     The Regional Tuna Tagging Project-Indian Ocean with details of the importance of Tuna in the Indian Ocean.. 
     Detailed maps of the Indian Ocean
     The Indian Ocean Trade: A Classroom Simulation 
     CIA - The World Factbook, Oceans: Indian Ocean
    Score: 0.90738976
    
    ID: 1980
    Title: Arctic Ocean
    Summary: The Arctic Ocean is the ocean around the North Pole. The most northern parts of Eurasia and North America are around the Arctic Ocean. Thick pack ice and snow cover almost all of this ocean in winter, and most of it in summer. An icebreaker or a nuclear-powered submarine can use the Northwest Passage through the Arctic Ocean to go between the Pacific and Atlantic oceans.
    
    The ocean's area is about 14.056 million km2, which is the smallest of the world's 5 oceans, and it has  of coastline. The central surface covered by ice about  thick. The biology there is quite special. Endangered species there include walruses, whales and polar bears. Year by year the Arctic Ocean is becoming less icy, as a result of global warming.
    
    The average depth of the Arctic Ocean is . The deepest point is in the Eurasian Basin, at .
    
    Geography 
    The Arctic Ocean covers an area of about 14,056,000 km2.  The coastline is 45,390 km (28,200 mi) long It is surrounded by Eurasia, North America, Greenland, and by several islands.
    
    It is generally taken to include Baffin Bay, Barents Sea, Beaufort Sea, Chukchi Sea, East Siberian Sea, Greenland Sea, Hudson Bay, Hudson Strait, Kara Sea, Laptev Sea, White Sea and other bodies of water. It is connected to the Pacific Ocean by the Bering Strait  and to the Atlantic Ocean through the Greenland Sea and Labrador Sea.
    
    Countries bordering the Arctic Ocean are: Russia, Norway, Iceland, Greenland, Canada and the United States.
    
    Climate 
    The Arctic Ocean is in a polar climate. Winters are characterized by the polar night, cold and stable weather conditions, and clear skies.
    
    The temperature of the surface of the Arctic Ocean is fairly constant, near the freezing point of seawater.  Arctic Ocean consists of saltwater but its salinity is less than other oceans. The temperature must reach −1.8 °C (28.8 °F) before freezing occurs.
    
    Ice covers most of the Arctic Ocean. It covers almost the whole ocean in late winter and the majority of the ocean in late summer. Much of the Arctic ice pack is covered in snow for about 10 months of the year. The maximum snow cover is in March or April — about 20 to 50 cm (7.9 to 19.7 in).
    
    The climate of the Arctic region has varied significantly in the past.


key: _node_content
string_value:
{"id_": "00f5ea0e-a49d-401a-a420-c872f2629491", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "aea5c784-d8dd-4648-9e78-1240278afc72", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "440d22127afd84fd01eb0ce60210591a477bd19a18d9601675ed649819efe621", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "5a367cf0-27d3-489d-a214-64820fae9fd8", "node_type": "1", "metadata": {}, "hash": "95c095188e53fb50327579a712eecd38b6e2b07cc266751d2010f56f92c9d8de", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 109206, "end_char_idx": 112467, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
The average depth of the Arctic Ocean is . The deepest point is in the Eurasian Basin, at .
    
    Geography 
    The Arctic Ocean covers an area of about 14,056,000 km2.  The coastline is 45,390 km (28,200 mi) long It is surrounded by Eurasia, North America, Greenland, and by several islands.
    
    It is generally taken to include Baffin Bay, Barents Sea, Beaufort Sea, Chukchi Sea, East Siberian Sea, Greenland Sea, Hudson Bay, Hudson Strait, Kara Sea, Laptev Sea, White Sea and other bodies of water. It is connected to the Pacific Ocean by the Bering Strait  and to the Atlantic Ocean through the Greenland Sea and Labrador Sea.
    
    Countries bordering the Arctic Ocean are: Russia, Norway, Iceland, Greenland, Canada and the United States.
    
    Climate 
    The Arctic Ocean is in a polar climate. Winters are characterized by the polar night, cold and stable weather conditions, and clear skies.
    
    The temperature of the surface of the Arctic Ocean is fairly constant, near the freezing point of seawater.  Arctic Ocean consists of saltwater but its salinity is less than other oceans. The temperature must reach −1.8 °C (28.8 °F) before freezing occurs.
    
    Ice covers most of the Arctic Ocean. It covers almost the whole ocean in late winter and the majority of the ocean in late summer. Much of the Arctic ice pack is covered in snow for about 10 months of the year. The maximum snow cover is in March or April — about 20 to 50 cm (7.9 to 19.7 in).
    
    The climate of the Arctic region has varied significantly in the past. As recently as 55 million years ago, during the eocene epoch, the region reached an average annual temperature of 10–20 °C (50–68 °F). The surface waters of the Arctic Ocean warmed enough to support tropical lifeforms.
    
    Animal and plant life 
    Endangered marine species in the Arctic Ocean include walruses and whales. The area has a fragile ecosystem. The Arctic Ocean has relatively little plant life except for phytoplankton.  Phytoplankton are a crucial part of the ocean. They feed on nutrients from rivers and the currents of the Atlantic and Pacific oceans.
    
    References
    
    Other websites 
    
     The Hidden Ocean Arctic 2005 Daily logs, photos and video from exploration mission.
     Oceanography Image of the Day, from the Woods Hole Oceanographic Institution
     Arctic Council
     The Northern Forum
     Arctic Environmental Atlas  Interactive map
     NOAA Arctic Theme Page
     
     Daily Arctic Ocean Rawinsonde Data from Soviet Drifting Ice Stations (1954–1990) at NSIDC
     Arctic time series: The Unaami Data collection 
     NOAA North Pole Web Cam Images from Web Cams deployed in spring on an ice floe
     NOAA Near-realtime North Pole Weather Data Data from instruments deployed on an ice floe
     Search for Arctic Life Heats Up by Stephen Leahy
     International Polar Foundation
     National Snow and Ice Data Center – Daily report of Arctic ice cover based on satellite data
     Marine Biodiversity Wiki 
    
    Oceans
    Arctic
    Score: 0.9073119
    
    ID: 15220
    Title: Caribbean Sea
    Summary: The Caribbean Sea is a tropical sea in the center of the Caribbean area. The body of water is part of the Atlantic Ocean.


key: _node_content
string_value:
{"id_": "5a367cf0-27d3-489d-a214-64820fae9fd8", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "00f5ea0e-a49d-401a-a420-c872f2629491", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "cf51b7f9bc8189f59520d543b81cc186bbaf5587b223823e1e6d1ecc24f85832", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "c6bce44a-6a94-44ff-8db0-0486e7152b93", "node_type": "1", "metadata": {}, "hash": "dd21267225538f2d17b78c00f35731fee3a9dac3755cdce73fd5547a1ccfb366", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 110701, "end_char_idx": 114033, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
The climate of the Arctic region has varied significantly in the past. As recently as 55 million years ago, during the eocene epoch, the region reached an average annual temperature of 10–20 °C (50–68 °F). The surface waters of the Arctic Ocean warmed enough to support tropical lifeforms.
    
    Animal and plant life 
    Endangered marine species in the Arctic Ocean include walruses and whales. The area has a fragile ecosystem. The Arctic Ocean has relatively little plant life except for phytoplankton.  Phytoplankton are a crucial part of the ocean. They feed on nutrients from rivers and the currents of the Atlantic and Pacific oceans.
    
    References
    
    Other websites 
    
     The Hidden Ocean Arctic 2005 Daily logs, photos and video from exploration mission.
     Oceanography Image of the Day, from the Woods Hole Oceanographic Institution
     Arctic Council
     The Northern Forum
     Arctic Environmental Atlas  Interactive map
     NOAA Arctic Theme Page
     
     Daily Arctic Ocean Rawinsonde Data from Soviet Drifting Ice Stations (1954–1990) at NSIDC
     Arctic time series: The Unaami Data collection 
     NOAA North Pole Web Cam Images from Web Cams deployed in spring on an ice floe
     NOAA Near-realtime North Pole Weather Data Data from instruments deployed on an ice floe
     Search for Arctic Life Heats Up by Stephen Leahy
     International Polar Foundation
     National Snow and Ice Data Center – Daily report of Arctic ice cover based on satellite data
     Marine Biodiversity Wiki 
    
    Oceans
    Arctic
    Score: 0.9073119
    
    ID: 15220
    Title: Caribbean Sea
    Summary: The Caribbean Sea is a tropical sea in the center of the Caribbean area. The body of water is part of the Atlantic Ocean. The sea is southeast of the Gulf of Mexico. The Caribbean Sea has many islands, which are popular among North American tourists because of their tropical climate. The Caribbean Sea is famous around the world as a tourist destination.
    
    History 
    Christopher Columbus came across a group of islands in the Caribbean region. When he did so, he thought he had reached another part of the world. Because of this, he named the islands the ‘West Indies’. However, later it was realized that he found an entire region. It still had its natural resources. The name ‘Caribbean’ was later given to it by the Amerindian tribe, the Caribs. That is how it got its name: the Caribbean Sea.
    
    This entire region covers an area of 1,063,000 sq. miles. It covers from Mexico to the boundaries of South America.
    
    This sea is just as deep as it is wide. Its deepest point is believed to be even lower than 25,220 ft, 7,686 m. That makes this point one of the lowest points on the surface of the earth, and the Caribbean Sea one of the deepest seas in the world.
    
    Other websites 
    
    Seas of the Atlantic Ocean
    Score: 0.9067033
    
    ID: 21206
    Title: Irish Sea
    Summary: The Irish Sea (sometimes called the Manx Sea) is a body of water that separates Ireland and Great Britain. It is known to be one of the most polluted seas in the world including the North Sea and the Mediterranean Sea. The sea is important to regional trade, shipping and fishing.  It is a source of power generation in the form of wind power and nuclear plants.


key: _node_content
string_value:
{"id_": "c6bce44a-6a94-44ff-8db0-0486e7152b93", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "5a367cf0-27d3-489d-a214-64820fae9fd8", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "e189df2237c7c574398eb9c130172fb9476b6f1f4857fbc19d75391750fa7a71", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "8ed34c3c-0f88-4220-8b67-9bef35e3711d", "node_type": "1", "metadata": {}, "hash": "3ef024beaca3e3070b437bab7bec9c929b053bfd0f466f72b0d3a69c30fe3648", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 112419, "end_char_idx": 115624, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
The body of water is part of the Atlantic Ocean. The sea is southeast of the Gulf of Mexico. The Caribbean Sea has many islands, which are popular among North American tourists because of their tropical climate. The Caribbean Sea is famous around the world as a tourist destination.
    
    History 
    Christopher Columbus came across a group of islands in the Caribbean region. When he did so, he thought he had reached another part of the world. Because of this, he named the islands the ‘West Indies’. However, later it was realized that he found an entire region. It still had its natural resources. The name ‘Caribbean’ was later given to it by the Amerindian tribe, the Caribs. That is how it got its name: the Caribbean Sea.
    
    This entire region covers an area of 1,063,000 sq. miles. It covers from Mexico to the boundaries of South America.
    
    This sea is just as deep as it is wide. Its deepest point is believed to be even lower than 25,220 ft, 7,686 m. That makes this point one of the lowest points on the surface of the earth, and the Caribbean Sea one of the deepest seas in the world.
    
    Other websites 
    
    Seas of the Atlantic Ocean
    Score: 0.9067033
    
    ID: 21206
    Title: Irish Sea
    Summary: The Irish Sea (sometimes called the Manx Sea) is a body of water that separates Ireland and Great Britain. It is known to be one of the most polluted seas in the world including the North Sea and the Mediterranean Sea. The sea is important to regional trade, shipping and fishing.  It is a source of power generation in the form of wind power and nuclear plants. Annual traffic between Great Britain and Ireland amounts to over 12 million passengers and  of traded goods.
    
    Economics 
    It covers  and at its deepest point is  deep. In 2008, about  of fish were caught. Shell fish made up three quarters of this amount.
    
    The Irish Sea has 17 active oil and gas drilling platforms. It is estimated there are about 1.6 billion barrels of oil in the Barryroe oil field alone.
    
    Sealife 
    At least thirty species of shark can be found in the Irish Sea at different times. These include the basking, thresher, blue, mako and porbeagle sharks. There are about 12 species of Dolphin, porpoise and whales in the Irish Sea. These include the common dolphin, bottlenose dolphin and the harbor porpoise.
    
    References 
    
    Seas of the Atlantic Ocean
    Ireland
    Geography of the United Kingdom
    Score: 0.90408546
    
    ID: 6308
    Title: North Sea
    Summary: The North Sea is a sea that is part of the Atlantic Ocean in northern Europe. The North Sea is between Norway and Denmark in the east, Scotland and England in the west, Germany, the Netherlands, Belgium and France in the south.
    
    Borders 
    The Skagerrak connects the North Sea to the Baltic Sea. In the south, the North Sea becomes the English Channel, a sea between England and France. This is called the Dover Straits and is very busy with ships.
    
    The border between the North Sea and the Skagerrak is at an imagined line between Lindesnes in Norway, and Hanstholm in Denmark. In the North, the North sea is open towards the Atlantic.


key: _node_content
string_value:
{"id_": "8ed34c3c-0f88-4220-8b67-9bef35e3711d", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "c6bce44a-6a94-44ff-8db0-0486e7152b93", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "7d0c11bdc4b28abb08cae5b0cb4d4a732b164c6cd7ec3b022dfd4e449e4c0342", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "5392063a-cfa7-409b-952b-feb8446144e2", "node_type": "1", "metadata": {}, "hash": "41162d1daf3ffff5e507f9748ab03a7cc8266ad33dce7bd3c1cfdcd6ce1d96f2", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 113953, "end_char_idx": 116896, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
It is a source of power generation in the form of wind power and nuclear plants. Annual traffic between Great Britain and Ireland amounts to over 12 million passengers and  of traded goods.
    
    Economics 
    It covers  and at its deepest point is  deep. In 2008, about  of fish were caught. Shell fish made up three quarters of this amount.
    
    The Irish Sea has 17 active oil and gas drilling platforms. It is estimated there are about 1.6 billion barrels of oil in the Barryroe oil field alone.
    
    Sealife 
    At least thirty species of shark can be found in the Irish Sea at different times. These include the basking, thresher, blue, mako and porbeagle sharks. There are about 12 species of Dolphin, porpoise and whales in the Irish Sea. These include the common dolphin, bottlenose dolphin and the harbor porpoise.
    
    References 
    
    Seas of the Atlantic Ocean
    Ireland
    Geography of the United Kingdom
    Score: 0.90408546
    
    ID: 6308
    Title: North Sea
    Summary: The North Sea is a sea that is part of the Atlantic Ocean in northern Europe. The North Sea is between Norway and Denmark in the east, Scotland and England in the west, Germany, the Netherlands, Belgium and France in the south.
    
    Borders 
    The Skagerrak connects the North Sea to the Baltic Sea. In the south, the North Sea becomes the English Channel, a sea between England and France. This is called the Dover Straits and is very busy with ships.
    
    The border between the North Sea and the Skagerrak is at an imagined line between Lindesnes in Norway, and Hanstholm in Denmark. In the North, the North sea is open towards the Atlantic. The border between the two is an imagined line from Northern Scotland, to Shetland, and then to Ålesund in Norway. According to the Oslo-Paris Treaty of 1962 it is a bit more to the west and the north though. The treaty puts it at 5° East longitude, and 62° North latitude. That is at the parallel of the Geirangerfjord in Norway.
    
    Various statistical data 
    On average, the North Sea has a depth of only 94 meters. About 80 million people live near the North Sea, at most 150 km away from the coast. Together with the English Channel in the south, the southern North Sea is the busiest body of water in the world.
    
    Rivers that drain into it 
    Well-known rivers that drain into the North Sea include the Tay (at Dundee), the Forth (at Edinburgh), the Tyne (South Shields), the Wear (at Sunderland),  the Tees (near Middlesbrough),  the Elbe (at Cuxhaven), the Weser (at Bremerhaven), the Rhine and Meuse or Maas (at Rotterdam), the Scheldt (at Flushing or Vlissingen), the Thames, and the Humber (at Hull), and the river Nairn (at Nairn)
    
    The Kiel Canal, one of the world's busiest artificial waterways, connects the North Sea with the Baltic.
    
    Name 
    Its name comes from its relationship to the land of the Frisians (see Frisia).


key: _node_content
string_value:
{"id_": "5392063a-cfa7-409b-952b-feb8446144e2", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "8ed34c3c-0f88-4220-8b67-9bef35e3711d", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "de0b8e81ee0fecda1dfbc168158865122db40e56f715a09b3a5e2a320954345e", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "62b40b17-f078-4a08-bded-86f98d774f7d", "node_type": "1", "metadata": {}, "hash": "605c59ac0f82961b26e29fa317be67cf489f653df99e092ca176ba96bda7d0b8", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 115367, "end_char_idx": 118312, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
This is called the Dover Straits and is very busy with ships.
    
    The border between the North Sea and the Skagerrak is at an imagined line between Lindesnes in Norway, and Hanstholm in Denmark. In the North, the North sea is open towards the Atlantic. The border between the two is an imagined line from Northern Scotland, to Shetland, and then to Ålesund in Norway. According to the Oslo-Paris Treaty of 1962 it is a bit more to the west and the north though. The treaty puts it at 5° East longitude, and 62° North latitude. That is at the parallel of the Geirangerfjord in Norway.
    
    Various statistical data 
    On average, the North Sea has a depth of only 94 meters. About 80 million people live near the North Sea, at most 150 km away from the coast. Together with the English Channel in the south, the southern North Sea is the busiest body of water in the world.
    
    Rivers that drain into it 
    Well-known rivers that drain into the North Sea include the Tay (at Dundee), the Forth (at Edinburgh), the Tyne (South Shields), the Wear (at Sunderland),  the Tees (near Middlesbrough),  the Elbe (at Cuxhaven), the Weser (at Bremerhaven), the Rhine and Meuse or Maas (at Rotterdam), the Scheldt (at Flushing or Vlissingen), the Thames, and the Humber (at Hull), and the river Nairn (at Nairn)
    
    The Kiel Canal, one of the world's busiest artificial waterways, connects the North Sea with the Baltic.
    
    Name 
    Its name comes from its relationship to the land of the Frisians (see Frisia). They live directly to the south of the North Sea, and to the west of the East Sea (Oostzee, the Baltic Sea), the former South Sea (Zuiderzee, today's IJsselmeer) and the today reclaimed Middle Sea (Middelzee). But the spread of the name could also be from the view of the cities of the Hanseatic League. Some of its main cities, like Lübeck, Bremen or Hamburg had the same view.
    
    In classical times this body of water was also called the Oceanum Germanicum or Mare Germanicum, meaning German Ocean or Sea. This name was commonly used in English and other languages along with the name North Sea, until the early eighteenth century. By the late nineteenth century, German Sea was a rare, scholarly usage even in Germany. In Danish the North Sea is also named Vesterhavet (besides Nordsøen), meaning Western Ocean because it is west of Denmark.
    
    Geographic divisions 
    
    Most of the North sea is on the European Continental shelf. On average, the depth is about 93 to 94 meters only. In the south it is very shallow, only 25 to 35 meters. In the north in the bathyal zone north of Shetland, this depth increases to between 100 and 200 metres. In the south, the depth is at most 50 metres. An exception to this is the Norwegian Trench. It is deepest there, with a depth of 725 metres. The most shallow part of it is a sand bank called Dogger Bank. In the southern part, there are many sand banks.


key: _node_content
string_value:
{"id_": "62b40b17-f078-4a08-bded-86f98d774f7d", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "5392063a-cfa7-409b-952b-feb8446144e2", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "64c0148c242c0554a99bbf2ee2ba7f7f0e537bdff88dbcbaed1ba7bb66f319cf", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "1d983ce2-3543-4b03-835f-1c6a7feabb87", "node_type": "1", "metadata": {}, "hash": "d2de66c1d50f39005f99c08c90119e3c9556d544e1ba73b801ac592f177d28dd", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 116808, "end_char_idx": 120003, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Name 
    Its name comes from its relationship to the land of the Frisians (see Frisia). They live directly to the south of the North Sea, and to the west of the East Sea (Oostzee, the Baltic Sea), the former South Sea (Zuiderzee, today's IJsselmeer) and the today reclaimed Middle Sea (Middelzee). But the spread of the name could also be from the view of the cities of the Hanseatic League. Some of its main cities, like Lübeck, Bremen or Hamburg had the same view.
    
    In classical times this body of water was also called the Oceanum Germanicum or Mare Germanicum, meaning German Ocean or Sea. This name was commonly used in English and other languages along with the name North Sea, until the early eighteenth century. By the late nineteenth century, German Sea was a rare, scholarly usage even in Germany. In Danish the North Sea is also named Vesterhavet (besides Nordsøen), meaning Western Ocean because it is west of Denmark.
    
    Geographic divisions 
    
    Most of the North sea is on the European Continental shelf. On average, the depth is about 93 to 94 meters only. In the south it is very shallow, only 25 to 35 meters. In the north in the bathyal zone north of Shetland, this depth increases to between 100 and 200 metres. In the south, the depth is at most 50 metres. An exception to this is the Norwegian Trench. It is deepest there, with a depth of 725 metres. The most shallow part of it is a sand bank called Dogger Bank. In the southern part, there are many sand banks.
    
    Looking at the satellite picture it is easy to see the geographic divisions of the North Sea:
    a generally shallow southern North Sea
    the central North Sea
     the northern North Sea, with the Norwegian Trench, near the Skagerrak.
    
    The southern north sea is composed of the Southern Bight, before the coast of Belgium and the Netherlands and the German Bight before the coastline of Germany. The Dogger Bank is the limit between the southern and central parts. The Waddenzee runs all the way from Den Helder in the Netherlands to Esbjerg in Denmark.
    
    The Dogger Bank covers an area about half the size of the Netherlands. There, the North Sea has a depth of between 13 and 20 metres only. The area is very famous for fishing. With some storms there are even waves breaking there.
    
    The Norwegian Trench has an average depth of around 250 to 300 metres; at the entrance to the Skagerrak, the depth increases up to 725 meters. Along the trench is the Norwegian Current, which brings most of the waters of the North Sea into the Atlantic Ocean. Also, most of the waters of the Baltic Sea flow northwards here.
    
    About 200 km east of the Scottish city of Dundee there are more trenches, known collectively as the Devil's hole. Generally, the water is about 90 meters deep there. The trenches very often are only a few kilometers in length. In these trenches, the depth increases to up to 230 meters.
    
    In the Dover Strait the water is about 30 meters deep. At the end of the English Channel, this depth increases to about 100 meters.
    
    History 
    In the last ice age the North Sea was covered by large areas of ice called glaciers.


key: _node_content
string_value:
{"id_": "1d983ce2-3543-4b03-835f-1c6a7feabb87", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "62b40b17-f078-4a08-bded-86f98d774f7d", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "64e1dc6664a4c14eb58a5366ecbbab4f1bb8bdb5dabbaed5dff6f83a78a8503c", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "24db90bb-9039-4fbb-acfb-52f701645213", "node_type": "1", "metadata": {}, "hash": "d01d3ad9163b33ad047d27584f74d507991929382167f5247fbbc278013b3232", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 118264, "end_char_idx": 121571, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
In the southern part, there are many sand banks.
    
    Looking at the satellite picture it is easy to see the geographic divisions of the North Sea:
    a generally shallow southern North Sea
    the central North Sea
     the northern North Sea, with the Norwegian Trench, near the Skagerrak.
    
    The southern north sea is composed of the Southern Bight, before the coast of Belgium and the Netherlands and the German Bight before the coastline of Germany. The Dogger Bank is the limit between the southern and central parts. The Waddenzee runs all the way from Den Helder in the Netherlands to Esbjerg in Denmark.
    
    The Dogger Bank covers an area about half the size of the Netherlands. There, the North Sea has a depth of between 13 and 20 metres only. The area is very famous for fishing. With some storms there are even waves breaking there.
    
    The Norwegian Trench has an average depth of around 250 to 300 metres; at the entrance to the Skagerrak, the depth increases up to 725 meters. Along the trench is the Norwegian Current, which brings most of the waters of the North Sea into the Atlantic Ocean. Also, most of the waters of the Baltic Sea flow northwards here.
    
    About 200 km east of the Scottish city of Dundee there are more trenches, known collectively as the Devil's hole. Generally, the water is about 90 meters deep there. The trenches very often are only a few kilometers in length. In these trenches, the depth increases to up to 230 meters.
    
    In the Dover Strait the water is about 30 meters deep. At the end of the English Channel, this depth increases to about 100 meters.
    
    History 
    In the last ice age the North Sea was covered by large areas of ice called glaciers. About 20,000 years ago the ice melted and the North Sea was formed (made).
    
    North Sea oil 
    In the 1960s, geologists found large areas of oil and natural gas under the North Sea. Most of the oil fields are owned by the United Kingdom and Norway but some belong to Denmark, the Netherlands and Germany. Drilling began in the 1960s and led to a famous argument between England and Scotland about how the revenue (money) from the oil should be spent.
    
    Animal life 
    
    People have been fishing in the North Sea for thousands of years. However, so many fish are now caught there that new ones may not be able to grow fast enough to keep the fishery going.
    
    Terns, Atlantic puffins, razorbills, kittiwakes and other seabirds live on the North Sea coast. Many coastal areas are protected nature reserves.
    
    Other websites
    
    Seas of the Atlantic Ocean
    Bodies of water of Europe
    Score: 0.9021919
    
    ID: 6278
    Title: Atlantis
    Summary: Atlantis is a name for a fictional large island or small continent that was (in the legend) in the Atlantic Ocean many years before it sank into the depth of the sea .
    
    The name Atlantis first appears in the writings of Herodotus - he describes the western ocean as "Sea of Atlantis." Then, one generation later, Atlantis is described in detail in the stories Timaeus and Critias by the Greek philosopher Plato.  He used this story to help explain his ideas about government and philosophy. Plato was the only ancient writer who wrote specific things about Atlantis.


key: _node_content
string_value:
{"id_": "24db90bb-9039-4fbb-acfb-52f701645213", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "1d983ce2-3543-4b03-835f-1c6a7feabb87", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "17f953b63dfa222f8cd7edf8bb536f924ecb77a864906aeefb036cfde05feebb", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "27bfd6d6-197c-4367-bedf-4c58ee4276a5", "node_type": "1", "metadata": {}, "hash": "e82fc9276aad4cbd7084d7a1e163dd102611c8e56fb80fe813fd7f6ccb4639c3", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 119820, "end_char_idx": 123308, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
At the end of the English Channel, this depth increases to about 100 meters.
    
    History 
    In the last ice age the North Sea was covered by large areas of ice called glaciers. About 20,000 years ago the ice melted and the North Sea was formed (made).
    
    North Sea oil 
    In the 1960s, geologists found large areas of oil and natural gas under the North Sea. Most of the oil fields are owned by the United Kingdom and Norway but some belong to Denmark, the Netherlands and Germany. Drilling began in the 1960s and led to a famous argument between England and Scotland about how the revenue (money) from the oil should be spent.
    
    Animal life 
    
    People have been fishing in the North Sea for thousands of years. However, so many fish are now caught there that new ones may not be able to grow fast enough to keep the fishery going.
    
    Terns, Atlantic puffins, razorbills, kittiwakes and other seabirds live on the North Sea coast. Many coastal areas are protected nature reserves.
    
    Other websites
    
    Seas of the Atlantic Ocean
    Bodies of water of Europe
    Score: 0.9021919
    
    ID: 6278
    Title: Atlantis
    Summary: Atlantis is a name for a fictional large island or small continent that was (in the legend) in the Atlantic Ocean many years before it sank into the depth of the sea .
    
    The name Atlantis first appears in the writings of Herodotus - he describes the western ocean as "Sea of Atlantis." Then, one generation later, Atlantis is described in detail in the stories Timaeus and Critias by the Greek philosopher Plato.  He used this story to help explain his ideas about government and philosophy. Plato was the only ancient writer who wrote specific things about Atlantis.
    
    According to Plato, the Atlanteans lived 9000 years before his own time and were half human and half god.  They created a very good human society.  When they stopped being good people and did bad things, the gods sent earthquakes and fire to destroy Atlantis.
    
    Many scholars think Plato could have been thinking of a real place when he wrote about Atlantis.  Many, many people have thought of many, many places where the real place that inspired Atlantis could have been.  For example, there was a Minoan kingdom on the island of Santorini.  The Minoan kingdom was very powerful thousands of years before Plato, and their society was damaged when a volcano erupted on their island. According to Plato, Atlantis was very large, as big as North Africa, so it should not have been hard to find.
    
    After the discovery of the Americas, some people in Europe thought they might be Atlantis. However, after Plato, the idea of Atlantis was mostly forgotten until 1882, when a writer named Ignatius Donnelly wrote a book saying that Atlantis was real and that the culture of Atlantis had started many other ancient cultures, such as the Egyptian and Mayan.  Then other people became interested in Atlantis. 
    
    Atlantis has appeared in many works of fiction.  In Marvel Comics, Atlantis is at the bottom of the ocean and exists in modern times, with people who breathe water.  Other works of fiction use Atlantis as background.  For example, Robert E. Howard set his Conan the Barbarian stories in a fictional time called the Hyborian Age, which began with the destruction of Atlantis and ended when real written history started.
    
    References
    
    Greek mythology
    Ancient history
    Score: 0.9008117


key: _node_content
string_value:
{"id_": "27bfd6d6-197c-4367-bedf-4c58ee4276a5", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "24db90bb-9039-4fbb-acfb-52f701645213", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "288b75a4396be938c7c84367e3fabbef2548d96f61928685b9601bc09b98d9d3", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "4f6b19f2-e2b6-46af-89ec-81320b6d8a2c", "node_type": "1", "metadata": {}, "hash": "a0f8603dbeac204302b8bfce361838790db6d4e87af9d76d72df23003aece08e", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 121418, "end_char_idx": 125099, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
He used this story to help explain his ideas about government and philosophy. Plato was the only ancient writer who wrote specific things about Atlantis.
    
    According to Plato, the Atlanteans lived 9000 years before his own time and were half human and half god.  They created a very good human society.  When they stopped being good people and did bad things, the gods sent earthquakes and fire to destroy Atlantis.
    
    Many scholars think Plato could have been thinking of a real place when he wrote about Atlantis.  Many, many people have thought of many, many places where the real place that inspired Atlantis could have been.  For example, there was a Minoan kingdom on the island of Santorini.  The Minoan kingdom was very powerful thousands of years before Plato, and their society was damaged when a volcano erupted on their island. According to Plato, Atlantis was very large, as big as North Africa, so it should not have been hard to find.
    
    After the discovery of the Americas, some people in Europe thought they might be Atlantis. However, after Plato, the idea of Atlantis was mostly forgotten until 1882, when a writer named Ignatius Donnelly wrote a book saying that Atlantis was real and that the culture of Atlantis had started many other ancient cultures, such as the Egyptian and Mayan.  Then other people became interested in Atlantis. 
    
    Atlantis has appeared in many works of fiction.  In Marvel Comics, Atlantis is at the bottom of the ocean and exists in modern times, with people who breathe water.  Other works of fiction use Atlantis as background.  For example, Robert E. Howard set his Conan the Barbarian stories in a fictional time called the Hyborian Age, which began with the destruction of Atlantis and ended when real written history started.
    
    References
    
    Greek mythology
    Ancient history
    Score: 0.9008117


Success! We've used kNN to perform semantic search over our dataset and found the top results.

Now we can use the Chat Completions API to work some generative AI magic using the top search result as additional context.

## Use Chat Completions API for retrieval augmented generation

Now we can send the question and the text to OpenAI's chat completion API.

Using a LLM model together with a retrieval model is known as retrieval augmented generation (RAG). We're using Elasticsearch to do what it does best, retrieve relevant documents. Then we use the LLM to do what it does best, tasks like generating summaries and answering questions, using the retrieved documents as context. 

The model will generate a response to the question, using the top kNN hit as context. Use the `messages` list to shape your prompt to the model. In this example, we're using the `gpt-3.5-turbo` model.


```python
summary = openai.ChatCompletion.create(
  model="gpt-3.5-turbo",
  messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Answer the following question:" 
         + question 
         + "by using the following text:" 
         + top_hit_summary},
    ]
)

choices = summary.choices

for choice in choices:
    print("------------------------------------------------------------")
    print(choice.message.content)
    print("------------------------------------------------------------")
```

    ------------------------------------------------------------
    No, the Atlantic Ocean is not the biggest ocean in the world. It is the second largest ocean, covering about 20 percent of the Earth's surface. The Pacific Ocean is the largest ocean in the world.
    ------------------------------------------------------------


key: _node_content
string_value:
{"id_": "4f6b19f2-e2b6-46af-89ec-81320b6d8a2c", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "5bd736d3-7701-4f3a-aa43-d008629204e7", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "12a1654dd81f22f5244b3706fb59fa84d12b3aaee405fa5d9ef919f2c1eabdc2", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "27bfd6d6-197c-4367-bedf-4c58ee4276a5", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-retrieval-augmented-generation.ipynb", "title": "Retrieval augmented generation using Elasticsearch and OpenAI", "tokens": 28563, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "179d952b259162fa9fbc98d2295bfcb22bde24ee1a70eb4caf2925ec034e795b", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 123232, "end_char_idx": 126152, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
References
    
    Greek mythology
    Ancient history
    Score: 0.9008117


Success! We've used kNN to perform semantic search over our dataset and found the top results.

Now we can use the Chat Completions API to work some generative AI magic using the top search result as additional context.

## Use Chat Completions API for retrieval augmented generation

Now we can send the question and the text to OpenAI's chat completion API.

Using a LLM model together with a retrieval model is known as retrieval augmented generation (RAG). We're using Elasticsearch to do what it does best, retrieve relevant documents. Then we use the LLM to do what it does best, tasks like generating summaries and answering questions, using the retrieved documents as context. 

The model will generate a response to the question, using the top kNN hit as context. Use the `messages` list to shape your prompt to the model. In this example, we're using the `gpt-3.5-turbo` model.


```python
summary = openai.ChatCompletion.create(
  model="gpt-3.5-turbo",
  messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Answer the following question:" 
         + question 
         + "by using the following text:" 
         + top_hit_summary},
    ]
)

choices = summary.choices

for choice in choices:
    print("------------------------------------------------------------")
    print(choice.message.content)
    print("------------------------------------------------------------")
```

    ------------------------------------------------------------
    No, the Atlantic Ocean is not the biggest ocean in the world. It is the second largest ocean, covering about 20 percent of the Earth's surface. The Pacific Ocean is the largest ocean in the world.
    ------------------------------------------------------------




### Code explanation

Here's what that code does:

- Uses OpenAI's model to generate a response
- Sends a conversation containing a system message and a user message to the model
- The system message sets the assistant's role as "helpful assistant"
- The user message contains a question as specified in the original kNN query and some input text
- The response from the model is stored in the `summary.choices` variable

## Next steps

That was just one example of how to combine Elasticsearch with the power of OpenAI's models, to enable retrieval augmented generation. RAG allows you to avoid the costly and complex process of training or fine-tuning models, by leveraging out-of-the-box models, enhanced with additional context.

Use this as a blueprint for your own experiments.

To adapt the conversation for different use cases, customize the system message to define the assistant's behavior or persona. Adjust the user message to specify the task, such as summarization or question answering, along with the desired format of the response.


key: url
string_value:
https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb


key: _node_content
string_value:
{"id_": "5a4ee3ba-6766-473e-a09c-9eb04ea399c9", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "89ff0097-ee2c-420e-a528-52ba2a379429", "node_type": "1", "metadata": {}, "hash": "68a3762ab0ba95e504a8394c8d09eac35d647c85fe731d81169433f1534d58d2", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 2790, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
# Semantic search using Elasticsearch and OpenAI

[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb)


This notebook demonstrates how to: 
- Index the OpenAI Wikipedia vector dataset into Elasticsearch 
- Embed a question with the OpenAI [`embeddings`](https://platform.openai.com/docs/api-reference/embeddings) endpoint
- Perform semantic search on the Elasticsearch index using the encoded question

## Install packages and import modules 


```python
# install packages

!python3 -m pip install -qU openai pandas wget elasticsearch

# import modules

from getpass import getpass
from elasticsearch import Elasticsearch, helpers
import wget
import zipfile
import pandas as pd
import json
import openai
```

## Connect to Elasticsearch

ℹ️ We're using an Elastic Cloud deployment of Elasticsearch for this notebook.
If you don't already have an Elastic deployment, you can sign up for a free [Elastic Cloud trial](https://cloud.elastic.co/registration?utm_source=github&utm_content=openai-cookbook).

To connect to Elasticsearch, you need to create a client instance with the Cloud ID and password for your deployment.

Find the Cloud ID for your deployment by going to https://cloud.elastic.co/deployments and selecting your deployment.


```python
CLOUD_ID = getpass("Elastic deployment Cloud ID")
CLOUD_PASSWORD = getpass("Elastic deployment Password")
client = Elasticsearch(
  cloud_id = CLOUD_ID,
  basic_auth=("elastic", CLOUD_PASSWORD) # Alternatively use `api_key` instead of `basic_auth`
)

# Test connection to Elasticsearch
print(client.info())
```

    {'name': 'instance-0000000001', 'cluster_name': '29ef9817e13142f5ba0ea7b29c2a86e2', 'cluster_uuid': 'absjWgQvRw63IlwWKisN8w', 'version': {'number': '8.9.1', 'build_flavor': 'default', 'build_type': 'docker', 'build_hash': 'a813d015ef1826148d9d389bd1c0d781c6e349f0', 'build_date': '2023-08-10T05:02:32.517455352Z', 'build_snapshot': False, 'lucene_version': '9.7.0', 'minimum_wire_compatibility_version': '7.17.0', 'minimum_index_compatibility_version': '7.0.0'}, 'tagline': 'You Know, for Search'}


## Download the dataset 

In this step we download the OpenAI Wikipedia embeddings dataset, and extract the zip file.


```python
embeddings_url = 'https://cdn.openai.com/API/examples/data/vector_database_wikipedia_articles_embedded.zip'
wget.download(embeddings_url)

with zipfile.ZipFile("vector_database_wikipedia_articles_embedded.zip",
"r") as zip_ref:
    zip_ref.extractall("data")
```

##  Read CSV file into a Pandas DataFrame

Next we use the Pandas library to read the unzipped CSV file into a DataFrame. This step makes it easier to index the data into Elasticsearch in bulk.


key: _node_content
string_value:
{"id_": "89ff0097-ee2c-420e-a528-52ba2a379429", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "5a4ee3ba-6766-473e-a09c-9eb04ea399c9", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "fcf1ac3f139000ddce45d72c3c23091900a02a17500602e1950a1115b9a6ff00", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "b439a133-16b3-4b80-b340-f96da2186215", "node_type": "1", "metadata": {}, "hash": "21a2cbc8371e02c1197514b6a7600451816341549b574074bd49f0fee1752ae2", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 2203, "end_char_idx": 5511, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
## Download the dataset 

In this step we download the OpenAI Wikipedia embeddings dataset, and extract the zip file.


```python
embeddings_url = 'https://cdn.openai.com/API/examples/data/vector_database_wikipedia_articles_embedded.zip'
wget.download(embeddings_url)

with zipfile.ZipFile("vector_database_wikipedia_articles_embedded.zip",
"r") as zip_ref:
    zip_ref.extractall("data")
```

##  Read CSV file into a Pandas DataFrame

Next we use the Pandas library to read the unzipped CSV file into a DataFrame. This step makes it easier to index the data into Elasticsearch in bulk.


```python

wikipedia_dataframe = pd.read_csv("data/vector_database_wikipedia_articles_embedded.csv")
```

## Create index with mapping

Now we need to create an Elasticsearch index with the necessary mappings. This will enable us to index the data into Elasticsearch.

We use the `dense_vector` field type for the `title_vector` and  `content_vector` fields. This is a special field type that allows us to store dense vectors in Elasticsearch.

Later, we'll need to target the `dense_vector` field for kNN search.



```python
index_mapping= {
    "properties": {
      "title_vector": {
          "type": "dense_vector",
          "dims": 1536,
          "index": "true",
          "similarity": "cosine"
      },
      "content_vector": {
          "type": "dense_vector",
          "dims": 1536,
          "index": "true",
          "similarity": "cosine"
      },
      "text": {"type": "text"},
      "title": {"type": "text"},
      "url": { "type": "keyword"},
      "vector_id": {"type": "long"}
      
    }
}

client.indices.create(index="wikipedia_vector_index", mappings=index_mapping)
```




    ObjectApiResponse({'acknowledged': True, 'shards_acknowledged': True, 'index': 'wikipedia_vector_index'})



## Index data into Elasticsearch 

The following function generates the required bulk actions that can be passed to Elasticsearch's Bulk API, so we can index multiple documents efficiently in a single request.

For each row in the DataFrame, the function yields a dictionary representing a single document to be indexed. 


```python
def dataframe_to_bulk_actions(df):
    for index, row in df.iterrows():
        yield {
            "_index": 'wikipedia_vector_index',
            "_id": row['id'],
            "_source": {
                'url' : row["url"],
                'title' : row["title"],
                'text' : row["text"],
                'title_vector' : json.loads(row["title_vector"]),
                'content_vector' : json.loads(row["content_vector"]),
                'vector_id' : row["vector_id"]
            }
        }
```

As the dataframe is large, we will index data in batches of `100`. We index the data into Elasticsearch using the Python client's [helpers](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/client-helpers.html#bulk-helpers) for the bulk API.


```python
start = 0
end = len(wikipedia_dataframe)
batch_size = 100
for batch_start in range(start, end, batch_size):
    batch_end = min(batch_start + batch_size, end)
    batch_dataframe = wikipedia_dataframe.iloc[batch_start:batch_end]
    actions = dataframe_to_bulk_actions(batch_dataframe)
    helpers.bulk(client, actions)
```

Let's test the index with a simple match query.


key: _node_content
string_value:
{"id_": "b439a133-16b3-4b80-b340-f96da2186215", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "89ff0097-ee2c-420e-a528-52ba2a379429", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "224f39043c9e9d1ad469a3582ce6f049223423fade5fac02765f97ea345fc2b5", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "b738f297-6ff0-427b-97c9-4cad0c90d74b", "node_type": "1", "metadata": {}, "hash": "a4f63e611145f9b5d6cc64d90ce83bec58ef7dfccd347cd379970211a62c0509", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 3903, "end_char_idx": 6767, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
ObjectApiResponse({'acknowledged': True, 'shards_acknowledged': True, 'index': 'wikipedia_vector_index'})



## Index data into Elasticsearch 

The following function generates the required bulk actions that can be passed to Elasticsearch's Bulk API, so we can index multiple documents efficiently in a single request.

For each row in the DataFrame, the function yields a dictionary representing a single document to be indexed. 


```python
def dataframe_to_bulk_actions(df):
    for index, row in df.iterrows():
        yield {
            "_index": 'wikipedia_vector_index',
            "_id": row['id'],
            "_source": {
                'url' : row["url"],
                'title' : row["title"],
                'text' : row["text"],
                'title_vector' : json.loads(row["title_vector"]),
                'content_vector' : json.loads(row["content_vector"]),
                'vector_id' : row["vector_id"]
            }
        }
```

As the dataframe is large, we will index data in batches of `100`. We index the data into Elasticsearch using the Python client's [helpers](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/client-helpers.html#bulk-helpers) for the bulk API.


```python
start = 0
end = len(wikipedia_dataframe)
batch_size = 100
for batch_start in range(start, end, batch_size):
    batch_end = min(batch_start + batch_size, end)
    batch_dataframe = wikipedia_dataframe.iloc[batch_start:batch_end]
    actions = dataframe_to_bulk_actions(batch_dataframe)
    helpers.bulk(client, actions)
```

Let's test the index with a simple match query.


```python
print(client.search(index="wikipedia_vector_index", body={
    "_source": {
        "excludes": ["title_vector", "content_vector"]
    },
    "query": {
        "match": {
            "text": {
                "query": "Hummingbird"
            }
        }
    }
}))
```

    {'took': 6, 'timed_out': False, '_shards': {'total': 1, 'successful': 1, 'skipped': 0, 'failed': 0}, 'hits': {'total': {'value': 4, 'relation': 'eq'}, 'max_score': 14.917897, 'hits': [{'_index': 'wikipedia_vector_index', '_id': '34227', '_score': 14.917897, '_source': {'url': 'https://simple.wikipedia.org/wiki/Hummingbird', 'title': 'Hummingbird', 'text': "Hummingbirds are small birds of the family Trochilidae.\n\nThey are among the smallest of birds: most species measure 7.5–13\xa0cm (3–5\xa0in). The smallest living bird species is the 2–5\xa0cm Bee Hummingbird. They can hover in mid-air by rapidly flapping their wings 12–80 times per second (depending on the species). They are also the only group of birds able to fly backwards. Their rapid wing beats do actually hum. They can fly at speeds over 15\xa0m/s (54\xa0km/h, 34\xa0mi/h).\n\nEating habits and pollination \nHummingbirds help flowers to pollinate, though most insects are best known for doing so.


key: _node_content
string_value:
{"id_": "b738f297-6ff0-427b-97c9-4cad0c90d74b", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "b439a133-16b3-4b80-b340-f96da2186215", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "9ed0470c384bbb16decb7867fa13c5ce0d122de32dbadb64dcf55fc42d5d9bc8", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "40b52e67-267a-4835-8c2d-579145913eff", "node_type": "1", "metadata": {}, "hash": "74661de1248127ce26ac21bcfb8a5d49af6e7e07e268e3552aba9b7d7a52b448", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 5514, "end_char_idx": 8305, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
```python
print(client.search(index="wikipedia_vector_index", body={
    "_source": {
        "excludes": ["title_vector", "content_vector"]
    },
    "query": {
        "match": {
            "text": {
                "query": "Hummingbird"
            }
        }
    }
}))
```

    {'took': 6, 'timed_out': False, '_shards': {'total': 1, 'successful': 1, 'skipped': 0, 'failed': 0}, 'hits': {'total': {'value': 4, 'relation': 'eq'}, 'max_score': 14.917897, 'hits': [{'_index': 'wikipedia_vector_index', '_id': '34227', '_score': 14.917897, '_source': {'url': 'https://simple.wikipedia.org/wiki/Hummingbird', 'title': 'Hummingbird', 'text': "Hummingbirds are small birds of the family Trochilidae.\n\nThey are among the smallest of birds: most species measure 7.5–13\xa0cm (3–5\xa0in). The smallest living bird species is the 2–5\xa0cm Bee Hummingbird. They can hover in mid-air by rapidly flapping their wings 12–80 times per second (depending on the species). They are also the only group of birds able to fly backwards. Their rapid wing beats do actually hum. They can fly at speeds over 15\xa0m/s (54\xa0km/h, 34\xa0mi/h).\n\nEating habits and pollination \nHummingbirds help flowers to pollinate, though most insects are best known for doing so. The hummingbird enjoys nectar, like the butterfly and other flower-loving insects, such as bees.\n\nHummingbirds do not have a good sense of smell; instead, they are attracted to color, especially the color red. Unlike the butterfly, the hummingbird hovers over the flower as it drinks nectar from it, like a moth. When it does so, it flaps its wings very quickly to stay in one place, which makes it look like a blur and also beats so fast it makes a humming sound. A hummingbird sometimes puts its whole head into the flower to drink the nectar properly. When it takes its head back out, its head is covered with yellow pollen, so that when it moves to another flower, it can pollinate. Or sometimes it may pollinate with its beak.\n\nLike bees, hummingbirds can assess the amount of sugar in the nectar they eat. They reject flowers whose nectar has less than 10% sugar. Nectar is a poor source of nutrients, so hummingbirds meet their needs for protein, amino acids, vitamins, minerals, etc. by preying on insects and spiders.\n\nFeeding apparatus \nMost hummingbirds have bills that are long and straight or nearly so, but in some species the bill shape is adapted for specialized feeding. Thornbills have short, sharp bills adapted for feeding from flowers with short corollas and piercing the bases of longer ones. The Sicklebills' extremely decurved bills are adapted to extracting nectar from the curved corollas of flowers in the family Gesneriaceae. The bill of the Fiery-tailed Awlbill has an upturned tip, as in the Avocets.


key: _node_content
string_value:
{"id_": "40b52e67-267a-4835-8c2d-579145913eff", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "b738f297-6ff0-427b-97c9-4cad0c90d74b", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "ea8b8f14a8b0276d5837900ddfbcf4c83440f30a753ceaaa046d18d5a56e5a5a", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "83c129b7-bda1-4d10-b70e-9b62571790cd", "node_type": "1", "metadata": {}, "hash": "0b4edb694746217e97e811978af2dea5d38676195abd4e42d15d036f2f40529f", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 6768, "end_char_idx": 9978, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
The hummingbird enjoys nectar, like the butterfly and other flower-loving insects, such as bees.\n\nHummingbirds do not have a good sense of smell; instead, they are attracted to color, especially the color red. Unlike the butterfly, the hummingbird hovers over the flower as it drinks nectar from it, like a moth. When it does so, it flaps its wings very quickly to stay in one place, which makes it look like a blur and also beats so fast it makes a humming sound. A hummingbird sometimes puts its whole head into the flower to drink the nectar properly. When it takes its head back out, its head is covered with yellow pollen, so that when it moves to another flower, it can pollinate. Or sometimes it may pollinate with its beak.\n\nLike bees, hummingbirds can assess the amount of sugar in the nectar they eat. They reject flowers whose nectar has less than 10% sugar. Nectar is a poor source of nutrients, so hummingbirds meet their needs for protein, amino acids, vitamins, minerals, etc. by preying on insects and spiders.\n\nFeeding apparatus \nMost hummingbirds have bills that are long and straight or nearly so, but in some species the bill shape is adapted for specialized feeding. Thornbills have short, sharp bills adapted for feeding from flowers with short corollas and piercing the bases of longer ones. The Sicklebills' extremely decurved bills are adapted to extracting nectar from the curved corollas of flowers in the family Gesneriaceae. The bill of the Fiery-tailed Awlbill has an upturned tip, as in the Avocets. The male Tooth-billed Hummingbird has barracuda-like spikes at the tip of its long, straight bill.\n\nThe two halves of a hummingbird's bill have a pronounced overlap, with the lower half (mandible) fitting tightly inside the upper half (maxilla). When hummingbirds feed on nectar, the bill is usually only opened slightly, allowing the tongue to dart out into the nectar.\n\nLike the similar nectar-feeding sunbirds and unlike other birds, hummingbirds drink by using grooved or trough-like tongues which they can stick out a long way.\nHummingbirds do not spend all day flying, as the energy cost would be prohibitive; the majority of their activity consists simply of sitting or perching. Hummingbirds feed in many small meals, consuming many small invertebrates and up to twelve times their own body weight in nectar each day. They spend an average of 10–15% of their time feeding and 75–80% sitting and digesting.\n\nCo-evolution with flowers\n\nSince hummingbirds are specialized nectar-eaters, they are tied to the bird-flowers they feed upon. Some species, especially those with unusual bill shapes such as the Sword-billed Hummingbird and the sicklebills, are co-evolved with a small number of flower species.\n\nMany plants pollinated by hummingbirds produce flowers in shades of red, orange, and bright pink, though the birds will take nectar from flowers of many colors. Hummingbirds can see wavelengths into the near-ultraviolet. However, their flowers do not reflect these wavelengths as many insect-pollinated flowers do. The narrow color spectrum may make hummingbird-pollinated flowers inconspicuous to insects, thereby reducing nectar robbing by insects.


key: _node_content
string_value:
{"id_": "83c129b7-bda1-4d10-b70e-9b62571790cd", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "40b52e67-267a-4835-8c2d-579145913eff", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "9a00189fb361cf49660baed803787807697d943beb37159d6395a6d9ae181449", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "ec649f89-f2b1-490f-9636-8cd874b7299b", "node_type": "1", "metadata": {}, "hash": "39523ded3ca188117a1192752416477a5a9f008295315d990355dba429ae47f3", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 8306, "end_char_idx": 11380, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
The male Tooth-billed Hummingbird has barracuda-like spikes at the tip of its long, straight bill.\n\nThe two halves of a hummingbird's bill have a pronounced overlap, with the lower half (mandible) fitting tightly inside the upper half (maxilla). When hummingbirds feed on nectar, the bill is usually only opened slightly, allowing the tongue to dart out into the nectar.\n\nLike the similar nectar-feeding sunbirds and unlike other birds, hummingbirds drink by using grooved or trough-like tongues which they can stick out a long way.\nHummingbirds do not spend all day flying, as the energy cost would be prohibitive; the majority of their activity consists simply of sitting or perching. Hummingbirds feed in many small meals, consuming many small invertebrates and up to twelve times their own body weight in nectar each day. They spend an average of 10–15% of their time feeding and 75–80% sitting and digesting.\n\nCo-evolution with flowers\n\nSince hummingbirds are specialized nectar-eaters, they are tied to the bird-flowers they feed upon. Some species, especially those with unusual bill shapes such as the Sword-billed Hummingbird and the sicklebills, are co-evolved with a small number of flower species.\n\nMany plants pollinated by hummingbirds produce flowers in shades of red, orange, and bright pink, though the birds will take nectar from flowers of many colors. Hummingbirds can see wavelengths into the near-ultraviolet. However, their flowers do not reflect these wavelengths as many insect-pollinated flowers do. The narrow color spectrum may make hummingbird-pollinated flowers inconspicuous to insects, thereby reducing nectar robbing by insects. Hummingbird-pollinated flowers also produce relatively weak nectar (averaging 25% sugars w/w) containing high concentrations of sucrose, whereas insect-pollinated flowers typically produce more concentrated nectars dominated by fructose and glucose.\n\nTaxonomy \nHummingbirds have traditionally been a part of the bird order Apodiformes. This order includes the hummingbirds, the swifts and the tree swifts. The Sibley-Ahlquist taxonomy of birds, based on DNA studies done in the 1970s and 1980s, changed the classification of hummingbirds. Instead of being in the same order as the swifts, the hummingbirds were made an order, the Trochiliformes. Their previous order, Apodiformes was changed to the superorder Apodimorphae. This superorder contains the three families of birds which were in it when it was an order.\n\nReferences", 'vector_id': 10024}}, {'_index': 'wikipedia_vector_index', '_id': '84773', '_score': 10.951234, '_source': {'url': 'https://simple.wikipedia.org/wiki/Inagua', 'title': 'Inagua', 'text': "Inagua is the southernmost district of the Bahamas.  It is the islands of Great Inagua and Little Inagua.\n\nGreat Inagua is the third largest island in the Bahamas at 596 square miles (1544\xa0km²) and lies about 55 miles (90\xa0km) from the eastern tip of Cuba. The island is about 55 × 19 miles (90 × 30\xa0km) in extent, the highest point being 108\xa0ft (33 m) on East Hill.


key: _node_content
string_value:
{"id_": "ec649f89-f2b1-490f-9636-8cd874b7299b", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "83c129b7-bda1-4d10-b70e-9b62571790cd", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "613daeab9e3fccfaefef7112e33719e5bd78f3a28b1df0ada49d2ceddedc4aaa", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "c6c8b0d5-e0e9-4285-99e6-7803b89a699a", "node_type": "1", "metadata": {}, "hash": "aff1c9ed3cae3bf897c93ec39ce61713909f66d7df874ecd0c20e80ef56a77f4", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 9979, "end_char_idx": 12872, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Hummingbird-pollinated flowers also produce relatively weak nectar (averaging 25% sugars w/w) containing high concentrations of sucrose, whereas insect-pollinated flowers typically produce more concentrated nectars dominated by fructose and glucose.\n\nTaxonomy \nHummingbirds have traditionally been a part of the bird order Apodiformes. This order includes the hummingbirds, the swifts and the tree swifts. The Sibley-Ahlquist taxonomy of birds, based on DNA studies done in the 1970s and 1980s, changed the classification of hummingbirds. Instead of being in the same order as the swifts, the hummingbirds were made an order, the Trochiliformes. Their previous order, Apodiformes was changed to the superorder Apodimorphae. This superorder contains the three families of birds which were in it when it was an order.\n\nReferences", 'vector_id': 10024}}, {'_index': 'wikipedia_vector_index', '_id': '84773', '_score': 10.951234, '_source': {'url': 'https://simple.wikipedia.org/wiki/Inagua', 'title': 'Inagua', 'text': "Inagua is the southernmost district of the Bahamas.  It is the islands of Great Inagua and Little Inagua.\n\nGreat Inagua is the third largest island in the Bahamas at 596 square miles (1544\xa0km²) and lies about 55 miles (90\xa0km) from the eastern tip of Cuba. The island is about 55 × 19 miles (90 × 30\xa0km) in extent, the highest point being 108\xa0ft (33 m) on East Hill. It encloses several lakes, most notably the 12-mile long Lake Windsor (also called Lake Rosa) which occupies nearly ¼ of the interior. The population of Great Inagua is 969 (2000 census).\n\nThe island's capital and only harbour is Matthew Town.\n\nThere is a large bird sanctuary in the centre of the island.  There are more than 80,000 West Indian Flamingoes and many other exotic birds such as the native Bahama Parrot, the Bahama woodstar hummingbird, Bahama pintails, Brown pelicans, Tri-colored herons, Snowy egrets, Reddish egrets, Stripe-headed tanangers, Cormorants, Roseate spoonbills, American kestrels, and Burrowing owls.\n\nDistricts of the Bahamas\nIslands of the Bahamas\n1999 establishments in the Bahamas", 'vector_id': 22383}}, {'_index': 'wikipedia_vector_index', '_id': '3707', '_score': 1.1967773, '_source': {'url': 'https://simple.wikipedia.org/wiki/Bird', 'title': 'Bird', 'text': 'Birds (Aves) are a group of animals with backbones which evolved from dinosaurs. Technically speaking, they are dinosaurs. \n\nBirds are endothermic. The heat loss from their bodies is slowed down by their feathers. \nModern birds are toothless: they have beaked jaws. They lay hard-shelled eggs. They have a high metabolic rate, a four-chambered heart and a strong yet lightweight skeleton.\n\nBirds live all over the world. They range in size from the 5 cm (2 in) bee hummingbird to the 2.70 m (9 ft) ostrich. They are the tetrapods with the most living species: about ten thousand.


key: _node_content
string_value:
{"id_": "c6c8b0d5-e0e9-4285-99e6-7803b89a699a", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "ec649f89-f2b1-490f-9636-8cd874b7299b", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "6d9be2d1a9d24e5daab131e21d25b6a3dac5f0095a5394472bd6f472114d6484", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "03e98ae6-e62b-4970-a702-8deec7cd2970", "node_type": "1", "metadata": {}, "hash": "53927c05ae13b958fd92e23b102c2384912a8655d2f72e2f2724ec93765ac53a", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 11381, "end_char_idx": 14393, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
It encloses several lakes, most notably the 12-mile long Lake Windsor (also called Lake Rosa) which occupies nearly ¼ of the interior. The population of Great Inagua is 969 (2000 census).\n\nThe island's capital and only harbour is Matthew Town.\n\nThere is a large bird sanctuary in the centre of the island.  There are more than 80,000 West Indian Flamingoes and many other exotic birds such as the native Bahama Parrot, the Bahama woodstar hummingbird, Bahama pintails, Brown pelicans, Tri-colored herons, Snowy egrets, Reddish egrets, Stripe-headed tanangers, Cormorants, Roseate spoonbills, American kestrels, and Burrowing owls.\n\nDistricts of the Bahamas\nIslands of the Bahamas\n1999 establishments in the Bahamas", 'vector_id': 22383}}, {'_index': 'wikipedia_vector_index', '_id': '3707', '_score': 1.1967773, '_source': {'url': 'https://simple.wikipedia.org/wiki/Bird', 'title': 'Bird', 'text': 'Birds (Aves) are a group of animals with backbones which evolved from dinosaurs. Technically speaking, they are dinosaurs. \n\nBirds are endothermic. The heat loss from their bodies is slowed down by their feathers. \nModern birds are toothless: they have beaked jaws. They lay hard-shelled eggs. They have a high metabolic rate, a four-chambered heart and a strong yet lightweight skeleton.\n\nBirds live all over the world. They range in size from the 5 cm (2 in) bee hummingbird to the 2.70 m (9 ft) ostrich. They are the tetrapods with the most living species: about ten thousand. More than half of these are passerines, sometimes known as perching birds.\n\nBirds are the closest living relatives of the Crocodilia. This is because they are the two main survivors of a once huge group called the Archosaurs. \n\nModern birds are not descended from Archaeopteryx. According to DNA evidence, modern birds (Neornithes) evolved in the long Upper Cretaceous period. More recent estimates showed that  modern birds originated early in the Upper Cretaceous.\n\nPrimitive bird-like dinosaurs are in the broader group Avialae. They have been found back to the mid-Jurassic period, around 170 million years ago. Many of these early "stem-birds", such as Anchiornis, were not yet capable of fully powered flight. Many had primitive characteristics like teeth in their jaws and long bony tails.p274\n\nThe Cretaceous–Palaeogene extinction event 66 million years ago killed off all the non-avian dinosaur lines. Birds, especially those in the southern continents, survived this event and then migrated to other parts of the world. Diversification occurred around the Cretaceous–Palaeogene extinction event. \n\nBirds have wings which are more or less developed depending on the species. The only known groups without wings are the extinct moa and elephant birds. Wings, which evolved from forelimbs, gave birds the ability to fly. Later, many groups evolved with reduced wings, such as ratites, penguins and many island species of birds. The digestive and respiratory systems of birds are also adapted for flight.


key: _node_content
string_value:
{"id_": "03e98ae6-e62b-4970-a702-8deec7cd2970", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "c6c8b0d5-e0e9-4285-99e6-7803b89a699a", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "168d3ba4b8e9e7be25933758c0c51895ca376a43156fe5a462e8b538c6a717ea", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "7c9c4058-cf24-4223-908b-de0a991a4fee", "node_type": "1", "metadata": {}, "hash": "b2b7a75a6102db128647b71550f4ca66501ad4554986e8e7828504e7c717402e", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 12714, "end_char_idx": 16000, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
They range in size from the 5 cm (2 in) bee hummingbird to the 2.70 m (9 ft) ostrich. They are the tetrapods with the most living species: about ten thousand. More than half of these are passerines, sometimes known as perching birds.\n\nBirds are the closest living relatives of the Crocodilia. This is because they are the two main survivors of a once huge group called the Archosaurs. \n\nModern birds are not descended from Archaeopteryx. According to DNA evidence, modern birds (Neornithes) evolved in the long Upper Cretaceous period. More recent estimates showed that  modern birds originated early in the Upper Cretaceous.\n\nPrimitive bird-like dinosaurs are in the broader group Avialae. They have been found back to the mid-Jurassic period, around 170 million years ago. Many of these early "stem-birds", such as Anchiornis, were not yet capable of fully powered flight. Many had primitive characteristics like teeth in their jaws and long bony tails.p274\n\nThe Cretaceous–Palaeogene extinction event 66 million years ago killed off all the non-avian dinosaur lines. Birds, especially those in the southern continents, survived this event and then migrated to other parts of the world. Diversification occurred around the Cretaceous–Palaeogene extinction event. \n\nBirds have wings which are more or less developed depending on the species. The only known groups without wings are the extinct moa and elephant birds. Wings, which evolved from forelimbs, gave birds the ability to fly. Later, many groups evolved with reduced wings, such as ratites, penguins and many island species of birds. The digestive and respiratory systems of birds are also adapted for flight. Some bird species in aquatic environments, particularly seabirds and some waterbirds, have evolved as good swimmers.\n\nIn general, birds are effective, and inherit their behaviour almost entirely. The key elements of their life are inherited. It was a great discovery that birds never learn to fly. \nSo it is quite wrong to say, when a chick waves its wings in the nest "It\'s learning to fly". What the chick is doing is exercising its muscles. They develop the ability to fly automatically (assuming they are species that do fly). And if they are species which migrate, that behaviour is also inherited. Many species migrate over great distances each year. Other main features of their life may be inherited, though they can and do learn. Birds have good memories which they use, for example, when they search for food.\n\nSeveral bird species make and use tools. Some social species pass on some knowledge across generations, a form of culture. Birds are social. They communicate with visual signals, calls and bird songs. Most of their social behaviours are inherited, such as cooperative breeding and hunting, flocking and mobbing of predators.\n\nMost bird species are socially monogamous, usually for one breeding season at a time, sometimes for years, but rarely for life. Other species are polygynous (one male with many females) or, rarely, polyandrous (one female with many males). Birds produce offspring by laying eggs which are fertilised by sexual reproduction. They are often laid in a nest and incubated by the parents. Most birds have an extended period of parental care after hatching.


key: _node_content
string_value:
{"id_": "7c9c4058-cf24-4223-908b-de0a991a4fee", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "03e98ae6-e62b-4970-a702-8deec7cd2970", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "f2c3b0615c70673c6d6e057d892b73f5485216a1eecd6bcb024e4b6514ca2c32", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "101711ce-ff07-4cc6-9edc-685010ba1921", "node_type": "1", "metadata": {}, "hash": "d1894b6f1a1dbea38ce9808b480005142d6ad79c0878ca1844e524815b337d61", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 14211, "end_char_idx": 17472, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Later, many groups evolved with reduced wings, such as ratites, penguins and many island species of birds. The digestive and respiratory systems of birds are also adapted for flight. Some bird species in aquatic environments, particularly seabirds and some waterbirds, have evolved as good swimmers.\n\nIn general, birds are effective, and inherit their behaviour almost entirely. The key elements of their life are inherited. It was a great discovery that birds never learn to fly. \nSo it is quite wrong to say, when a chick waves its wings in the nest "It\'s learning to fly". What the chick is doing is exercising its muscles. They develop the ability to fly automatically (assuming they are species that do fly). And if they are species which migrate, that behaviour is also inherited. Many species migrate over great distances each year. Other main features of their life may be inherited, though they can and do learn. Birds have good memories which they use, for example, when they search for food.\n\nSeveral bird species make and use tools. Some social species pass on some knowledge across generations, a form of culture. Birds are social. They communicate with visual signals, calls and bird songs. Most of their social behaviours are inherited, such as cooperative breeding and hunting, flocking and mobbing of predators.\n\nMost bird species are socially monogamous, usually for one breeding season at a time, sometimes for years, but rarely for life. Other species are polygynous (one male with many females) or, rarely, polyandrous (one female with many males). Birds produce offspring by laying eggs which are fertilised by sexual reproduction. They are often laid in a nest and incubated by the parents. Most birds have an extended period of parental care after hatching. Some birds, such as hens, lay eggs even when not fertilised, though unfertilised eggs do not produce offspring.\n\nMany species of birds are eaten by humans. Domesticated and undomesticated birds are sources of eggs, meat, and feathers.  In English, domesticated birds are often called poultry, undomesticated birds are called game. Songbirds, parrots and other species are popular as pets. Guano, which is bird manure, is harvested for use as a fertiliser. Birds figure throughout human culture. About 120–130 species have become extinct due to human activity since the 17th century and hundreds more before then. Human activity threatens about 1,200 bird species with extinction, though efforts are underway to protect them. Recreational bird-watching is an important part of the ecotourism industry.\n\nBird colours \n\nBirds come in a huge range of colours. These colours can be useful to a bird in two ways. Camouflage colours help to hide the bird, and bright colours identify the bird to others of the same species. Often the male is brightly coloured while the female is camouflaged. The logic is as follows: the female carries the "precious package" of developing eggs. The male has to defend a territory, and the function of his colour and song is to let others know that "this place is occupied".\n\nBird camouflage \n\nMany birds are brown, green or grey. These colours make a bird harder to be seen: they camouflage the bird. Brown is the most common colour.


key: _node_content
string_value:
{"id_": "101711ce-ff07-4cc6-9edc-685010ba1921", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "7c9c4058-cf24-4223-908b-de0a991a4fee", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "2d6ba1edf0466ec2f52975809a1c8815fe8213718689f604dbbde3bdf3873d9a", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "16bc7b8f-13f3-4542-b6a1-946442ff8233", "node_type": "1", "metadata": {}, "hash": "46c39405e79fb7c97b7468f9da54d91483773be0a648589c05387d027f234ec6", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 15789, "end_char_idx": 19035, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Birds produce offspring by laying eggs which are fertilised by sexual reproduction. They are often laid in a nest and incubated by the parents. Most birds have an extended period of parental care after hatching. Some birds, such as hens, lay eggs even when not fertilised, though unfertilised eggs do not produce offspring.\n\nMany species of birds are eaten by humans. Domesticated and undomesticated birds are sources of eggs, meat, and feathers.  In English, domesticated birds are often called poultry, undomesticated birds are called game. Songbirds, parrots and other species are popular as pets. Guano, which is bird manure, is harvested for use as a fertiliser. Birds figure throughout human culture. About 120–130 species have become extinct due to human activity since the 17th century and hundreds more before then. Human activity threatens about 1,200 bird species with extinction, though efforts are underway to protect them. Recreational bird-watching is an important part of the ecotourism industry.\n\nBird colours \n\nBirds come in a huge range of colours. These colours can be useful to a bird in two ways. Camouflage colours help to hide the bird, and bright colours identify the bird to others of the same species. Often the male is brightly coloured while the female is camouflaged. The logic is as follows: the female carries the "precious package" of developing eggs. The male has to defend a territory, and the function of his colour and song is to let others know that "this place is occupied".\n\nBird camouflage \n\nMany birds are brown, green or grey. These colours make a bird harder to be seen: they camouflage the bird. Brown is the most common colour. Brown birds include: sparrows, emus, thrushes, larks, eagles and falcons and the female birds of many species such as: wrens, ducks, blackbirds and peafowls. When a brown bird is in long grass or among tree trunks or rocks, it is camouflaged. Birds that live in long grass often have brown feathers streaked with black which looks like shadows. A bittern is almost invisible in long reeds because its camouflage is helped by its posture (beak and head pointed upwards). Other birds, including starlings and mynas, are quite dark in colour, but are flecked with little spots that look like raindrops on leaves. Bird may also camouflage their nests.\n\nMany birds from hot countries are green or have some green feathers, particularly parrots. Birds that live in green trees often have green backs, even if they have bright-coloured breasts. From the back, the birds are camouflaged. This is very useful when sitting on a nest. The bird\'s bright-coloured breast is hidden. Budgerigars are bred in different colours such as blue, white and mauve, but in the wild, they are nearly all green and yellow. Even though they fly very well, they normally spend a lot of time on the ground, eating grass seeds. Their yellow and black striped back helps to hide them in the shadows made by long dry grass, while their green breasts are a similar colour to the leaves of gum trees.\n\nGrey birds include most pigeons and doves, cranes, storks and herons. Grey birds are often rock-living birds like pigeons or birds that sit on dead tree trunks looking like a broken branch.


key: _node_content
string_value:
{"id_": "16bc7b8f-13f3-4542-b6a1-946442ff8233", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "101711ce-ff07-4cc6-9edc-685010ba1921", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "a4e0b4de2ec60a04c86394e69af6fbc2ce50f9f7ca90e3167327e9c3516e858a", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "bfb463d9-f747-48ee-9c9f-5fbbd907e92e", "node_type": "1", "metadata": {}, "hash": "0b403fdd640fb88e27248db83a287645b17ce76fcfdaac26946df90346da7443", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 17369, "end_char_idx": 20670, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
These colours make a bird harder to be seen: they camouflage the bird. Brown is the most common colour. Brown birds include: sparrows, emus, thrushes, larks, eagles and falcons and the female birds of many species such as: wrens, ducks, blackbirds and peafowls. When a brown bird is in long grass or among tree trunks or rocks, it is camouflaged. Birds that live in long grass often have brown feathers streaked with black which looks like shadows. A bittern is almost invisible in long reeds because its camouflage is helped by its posture (beak and head pointed upwards). Other birds, including starlings and mynas, are quite dark in colour, but are flecked with little spots that look like raindrops on leaves. Bird may also camouflage their nests.\n\nMany birds from hot countries are green or have some green feathers, particularly parrots. Birds that live in green trees often have green backs, even if they have bright-coloured breasts. From the back, the birds are camouflaged. This is very useful when sitting on a nest. The bird\'s bright-coloured breast is hidden. Budgerigars are bred in different colours such as blue, white and mauve, but in the wild, they are nearly all green and yellow. Even though they fly very well, they normally spend a lot of time on the ground, eating grass seeds. Their yellow and black striped back helps to hide them in the shadows made by long dry grass, while their green breasts are a similar colour to the leaves of gum trees.\n\nGrey birds include most pigeons and doves, cranes, storks and herons. Grey birds are often rock-living birds like pigeons or birds that sit on dead tree trunks looking like a broken branch. Water birds like herons often have a pale grey colour which makes it harder for a fish to notice that the bird is standing, looking down for something to catch. Water birds, no matter what colour they are on top, are often white underneath, so that when a fish looks up, the bird looks like part of the sky.\n\nBlack birds include crows, ravens and male blackbirds. Some birds that are dark colours spend quite a lot of time on the ground, hopping around in the shadows under bushes. Among these birds are the male blackbird and the satin bowerbird which is not black but very dark blue. Crows and ravens often perch high on bare trees in the winter, where their black shape against the sky looks like the dark bare branches.\n\nNoticeable colours \n\nMany birds are not camouflaged, but stand out with vivid colours. They are usually male birds whose females are dull and camouflaged. The function of the colours is two-fold. First, the colours help them get mates, and second, the colours identify them to other males of the same species. Many birds are territorial, especially in the nesting season. They give out territory sounds and are easily seen. This lets other males know they will defend their territory. It sends out a "look elsewhere" signal to their competitors.\n\nSome birds are famous for their colour and are named for it, such as the bluebird, the azure kingfisher, the golden pheasant, the scarlet macaw, the violet wren and the robin.\n\nMany other birds are very brightly coloured, in countless combinations. Some of the most colourful birds are quite common, like pheasants, peacocks, domestic fowl and parrots.


key: _node_content
string_value:
{"id_": "bfb463d9-f747-48ee-9c9f-5fbbd907e92e", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "16bc7b8f-13f3-4542-b6a1-946442ff8233", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "b050261aa3af77d356d137fc04abea23d313b0dbee4d4cbab5f25d3b12b96fc3", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "e72d136a-f2d0-452e-b2f6-bf6288ed9938", "node_type": "1", "metadata": {}, "hash": "c37494f5c952f0e566c31839eba0161356fda6617b9a78e0db8dcb6f9ab3da4b", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 19036, "end_char_idx": 22281, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Water birds like herons often have a pale grey colour which makes it harder for a fish to notice that the bird is standing, looking down for something to catch. Water birds, no matter what colour they are on top, are often white underneath, so that when a fish looks up, the bird looks like part of the sky.\n\nBlack birds include crows, ravens and male blackbirds. Some birds that are dark colours spend quite a lot of time on the ground, hopping around in the shadows under bushes. Among these birds are the male blackbird and the satin bowerbird which is not black but very dark blue. Crows and ravens often perch high on bare trees in the winter, where their black shape against the sky looks like the dark bare branches.\n\nNoticeable colours \n\nMany birds are not camouflaged, but stand out with vivid colours. They are usually male birds whose females are dull and camouflaged. The function of the colours is two-fold. First, the colours help them get mates, and second, the colours identify them to other males of the same species. Many birds are territorial, especially in the nesting season. They give out territory sounds and are easily seen. This lets other males know they will defend their territory. It sends out a "look elsewhere" signal to their competitors.\n\nSome birds are famous for their colour and are named for it, such as the bluebird, the azure kingfisher, the golden pheasant, the scarlet macaw, the violet wren and the robin.\n\nMany other birds are very brightly coloured, in countless combinations. Some of the most colourful birds are quite common, like pheasants, peacocks, domestic fowl and parrots. Colourful small birds include blue tits, the goldfinches, hummingbirds, fairy wrens and bee eaters (which are also called rainbow birds). Some birds, like those of the bird of paradise in Papua New Guinea have such beautiful feathers that they have been hunted for them.\n\nThe peafowl is the best example of a display of colour to attract a mate. Also the male domestic fowl and junglefowl have long shiny feathers above his tail and also long neck feathers that may be a different colour to his wings and body. There are only a very few types of birds (like the eclectus parrot) where the female is more colourful than the male.\n\n\'\'Pied birds\'\' are black and white. Black and white birds include magpies, pied geese, pelicans and Australian magpies (which are not really magpies at all). Pied birds often have brightly coloured beaks and legs of yellow or red. The silver pheasant, with its long white tail striped with fine bars of black, has a brightly coloured face.\n\nFlight \nMost birds can fly, and if they do, then the ability is inherited, not learnt. They fly by pushing through the air with their wings. The curved surfaces of the wings cause air currents (wind) which lift the bird. Flapping keeps the air current moving to create lift and also moves the bird forward.\n\nSome birds can glide on air currents without flapping. Many birds use this method when they are about to land. Some birds can also hover in the air. This method is used by birds of prey such as falcons that are looking for something to eat. Seagulls are also good at hovering, particularly if there is a strong breeze.


key: _node_content
string_value:
{"id_": "e72d136a-f2d0-452e-b2f6-bf6288ed9938", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "bfb463d9-f747-48ee-9c9f-5fbbd907e92e", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "f65f5a8d85e813908600bf7a526beb8a83c9863dd6f32266f41f63ae278b3d12", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "cf9951a9-3b59-4f75-934c-d53bfc5b9ae3", "node_type": "1", "metadata": {}, "hash": "357d35ca0ad9a23363a7ea0672c28aca655b775e87b3e296f914cd60c4951025", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 20671, "end_char_idx": 23931, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Colourful small birds include blue tits, the goldfinches, hummingbirds, fairy wrens and bee eaters (which are also called rainbow birds). Some birds, like those of the bird of paradise in Papua New Guinea have such beautiful feathers that they have been hunted for them.\n\nThe peafowl is the best example of a display of colour to attract a mate. Also the male domestic fowl and junglefowl have long shiny feathers above his tail and also long neck feathers that may be a different colour to his wings and body. There are only a very few types of birds (like the eclectus parrot) where the female is more colourful than the male.\n\n\'\'Pied birds\'\' are black and white. Black and white birds include magpies, pied geese, pelicans and Australian magpies (which are not really magpies at all). Pied birds often have brightly coloured beaks and legs of yellow or red. The silver pheasant, with its long white tail striped with fine bars of black, has a brightly coloured face.\n\nFlight \nMost birds can fly, and if they do, then the ability is inherited, not learnt. They fly by pushing through the air with their wings. The curved surfaces of the wings cause air currents (wind) which lift the bird. Flapping keeps the air current moving to create lift and also moves the bird forward.\n\nSome birds can glide on air currents without flapping. Many birds use this method when they are about to land. Some birds can also hover in the air. This method is used by birds of prey such as falcons that are looking for something to eat. Seagulls are also good at hovering, particularly if there is a strong breeze. The most expert hovering birds are tiny hummingbirds which can beat their wings both backwards and forwards and can stay quite still in the air while they dip their long beaks into flowers to feed on the sweet nectar.\n\nTypes of flight \nDifferent types of birds have different needs. Their wings have evolved to suit their lifestyle. Large birds of prey, such as eagles, spend a lot of time soaring on the wind. They have wings that are large and broad. The main flight feathers are long and wide. They help the eagle to stay on rising air currents without using much energy, while the eagle looks at the ground below, to find the next meal. When the eagle sees some small creature move, it can close its wings and fall from the sky like a missile, opening its great wings again to slow down as it comes to land. The world\'s largest eagle, the Philippine eagle has a wingspan of about 2 m (6.7\xa0ft) wide.\n\nBirds that live in grassland areas or open forests and feed on fruit, insects and reptiles often spend a lot of time flying short journeys looking for food and water. They have wings that are shaped in a similar way to eagles, but rounder and not as good for soaring. These include many Australian birds like cockatoos.\n\nBirds such as geese that migrate from one country to another fly very long distances. Their wings are big and strong, because the birds are large. They stock up on food for the long flight. Migrating water birds usually form family groups of 1230 birds. They fly very high, making use of long streams of air that blow from north to south in different seasons. They are well organised, often flying in a V pattern.


key: _node_content
string_value:
{"id_": "cf9951a9-3b59-4f75-934c-d53bfc5b9ae3", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "e72d136a-f2d0-452e-b2f6-bf6288ed9938", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "42b5b4a510fcc5e5557ce9254b8808a8d19f517f13cc7f495acfb23d098f42c5", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "bf29681f-2301-4848-931b-b502ade0c379", "node_type": "1", "metadata": {}, "hash": "2db2d5b3b65af2b150ce218ebfcd76f60db83f427d90bb301a5c3eedce4d87bd", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 22204, "end_char_idx": 25478, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Seagulls are also good at hovering, particularly if there is a strong breeze. The most expert hovering birds are tiny hummingbirds which can beat their wings both backwards and forwards and can stay quite still in the air while they dip their long beaks into flowers to feed on the sweet nectar.\n\nTypes of flight \nDifferent types of birds have different needs. Their wings have evolved to suit their lifestyle. Large birds of prey, such as eagles, spend a lot of time soaring on the wind. They have wings that are large and broad. The main flight feathers are long and wide. They help the eagle to stay on rising air currents without using much energy, while the eagle looks at the ground below, to find the next meal. When the eagle sees some small creature move, it can close its wings and fall from the sky like a missile, opening its great wings again to slow down as it comes to land. The world\'s largest eagle, the Philippine eagle has a wingspan of about 2 m (6.7\xa0ft) wide.\n\nBirds that live in grassland areas or open forests and feed on fruit, insects and reptiles often spend a lot of time flying short journeys looking for food and water. They have wings that are shaped in a similar way to eagles, but rounder and not as good for soaring. These include many Australian birds like cockatoos.\n\nBirds such as geese that migrate from one country to another fly very long distances. Their wings are big and strong, because the birds are large. They stock up on food for the long flight. Migrating water birds usually form family groups of 1230 birds. They fly very high, making use of long streams of air that blow from north to south in different seasons. They are well organised, often flying in a V pattern. The geese at the back do not have to flap so hard; they are pulled on by the wind of the ones at the front. Every so often, they change the leader so that the front bird, who does most work and sets the pace, can have a rest. Geese and swans are the highest-flying birds, reaching 8,000 metres or more when on migration. Geese often honk loudly while they are flying. It is thought that they do this to support the leader and help the young ones.\n\nBirds that fly very quickly, such as swifts and swallows, have long narrow pointed wings. These birds need great speed because they eat insects, catching most of them while they are flying. These birds also migrate. They often collect in huge flocks of thousands of birds that move together like a whirling cloud.\n\nBirds that live in bushes and branches have triangular wings that help the bird change direction. Many forest birds are expert at getting up speed by flapping and then gliding steadily among the trees, tilting to avoid things as they go. Members of the kingfisher family are expert at this type of flying.\n\nBirds such as owls that hunt at night have wings with soft rounded feathers so that they do not flap loudly. Birds that are awake at night are called nocturnal birds. Birds that are awake during the day are diurnal.\n\nWandering albatross might spend several years without coming to land. They can sleep while gliding. Arctic terns nest every one to three years.\n\nFlocks \nFlocks of birds can be very highly organised in a way that takes care of all the flock members.


key: _node_content
string_value:
{"id_": "bf29681f-2301-4848-931b-b502ade0c379", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "cf9951a9-3b59-4f75-934c-d53bfc5b9ae3", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "af330fc9d2f4e52e0af5449b63ae1597b2095761eb164db22a17ea7cd3aa7e96", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "1cd80ab7-6313-4e32-b1e3-cf0ae94cd062", "node_type": "1", "metadata": {}, "hash": "55eb80f2ab86be320ab3a4675c81eb7e5ff3836fd4299354afddb57f5eeceaf2", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 23878, "end_char_idx": 27204, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
They are well organised, often flying in a V pattern. The geese at the back do not have to flap so hard; they are pulled on by the wind of the ones at the front. Every so often, they change the leader so that the front bird, who does most work and sets the pace, can have a rest. Geese and swans are the highest-flying birds, reaching 8,000 metres or more when on migration. Geese often honk loudly while they are flying. It is thought that they do this to support the leader and help the young ones.\n\nBirds that fly very quickly, such as swifts and swallows, have long narrow pointed wings. These birds need great speed because they eat insects, catching most of them while they are flying. These birds also migrate. They often collect in huge flocks of thousands of birds that move together like a whirling cloud.\n\nBirds that live in bushes and branches have triangular wings that help the bird change direction. Many forest birds are expert at getting up speed by flapping and then gliding steadily among the trees, tilting to avoid things as they go. Members of the kingfisher family are expert at this type of flying.\n\nBirds such as owls that hunt at night have wings with soft rounded feathers so that they do not flap loudly. Birds that are awake at night are called nocturnal birds. Birds that are awake during the day are diurnal.\n\nWandering albatross might spend several years without coming to land. They can sleep while gliding. Arctic terns nest every one to three years.\n\nFlocks \nFlocks of birds can be very highly organised in a way that takes care of all the flock members. Studies of small flocking birds like tree sparrows show that they clearly communicate with each other, as sometimes thousands of birds may fly in close formation and spiral patterns without colliding (or flying into each other).\n\nTwo common behaviours in flocking birds are guarding and reconnaissance. When a flock of birds is feeding it is common for one bird to perch on a high place to keep guard over the flock. In the same way, when a flock is asleep, often, one bird will remain awake. It is also common for large flocks to send one or two birds ahead of them when they are flying to a new area. The look-out birds can spy the lie of the land to find food, water and good places to perch. Mixed feeding flocks occur, and can help to spot predators.\n\nFlightless birds \nSome birds do not fly. Flightlessness in birds has evolved many times.\nThese include running birds like ostriches and emus and ocean-living birds, the large penguin family. Birds on islands have usually lost the power of flight. This is to their advantage because birds with the power of flight can be blown off their island during a storm. The same ability which got them to the island may later take them away in a storm.\n\nOstriches and emus do not need to fly because although they feed and nest on the ground, their great size and their speed is their protection. Some other ground-feeding birds have not been so lucky. Some birds such as the dodo and the kiwi were ground-feeding birds that lived in safety on islands where there was nothing dangerous to eat them. They lost the power of flight. Kiwis are endangered because European settlement to New Zealand brought animals like cats, dogs and rats which kill kiwis and eat their eggs.


key: _node_content
string_value:
{"id_": "1cd80ab7-6313-4e32-b1e3-cf0ae94cd062", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "bf29681f-2301-4848-931b-b502ade0c379", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "6d8f38018679c50d4e448ad7b590cc82acca6c2a3fff825ea286696c8b51e82c", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "f02d2c66-b635-4da3-a649-575387732b4e", "node_type": "1", "metadata": {}, "hash": "757b21fe84375d6a645d6a93b36db683efd69ffba512bc114636deb1be0091e2", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 25479, "end_char_idx": 28662, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Studies of small flocking birds like tree sparrows show that they clearly communicate with each other, as sometimes thousands of birds may fly in close formation and spiral patterns without colliding (or flying into each other).\n\nTwo common behaviours in flocking birds are guarding and reconnaissance. When a flock of birds is feeding it is common for one bird to perch on a high place to keep guard over the flock. In the same way, when a flock is asleep, often, one bird will remain awake. It is also common for large flocks to send one or two birds ahead of them when they are flying to a new area. The look-out birds can spy the lie of the land to find food, water and good places to perch. Mixed feeding flocks occur, and can help to spot predators.\n\nFlightless birds \nSome birds do not fly. Flightlessness in birds has evolved many times.\nThese include running birds like ostriches and emus and ocean-living birds, the large penguin family. Birds on islands have usually lost the power of flight. This is to their advantage because birds with the power of flight can be blown off their island during a storm. The same ability which got them to the island may later take them away in a storm.\n\nOstriches and emus do not need to fly because although they feed and nest on the ground, their great size and their speed is their protection. Some other ground-feeding birds have not been so lucky. Some birds such as the dodo and the kiwi were ground-feeding birds that lived in safety on islands where there was nothing dangerous to eat them. They lost the power of flight. Kiwis are endangered because European settlement to New Zealand brought animals like cats, dogs and rats which kill kiwis and eat their eggs. However, kiwis and also the rare New Zealand ground parrot have survived. In the case of dodos, they were fat and disgusting in taste. All the same, they were killed and eaten by sailors until there was none left. Other flightless birds which have disappeared are the great auk and the moa.\n\nPenguins are a very successful group of birds. They are a clade. They spend half their time on land. Their wings are adapted to life in the sea and have become flippers which let them in swim fast. They catch fish at sea, where they are in danger from seals.\n\nDigestion \nModern birds do not have teeth, and many swallow their prey whole. Nevertheless, they must break up food before it is digested. First of all, along their throat (oesophagus) they have a crop. This stores food items before digestion. That way a bird can eat several items, and then fly off to a quiet spot to digest them. \n\nTheir stomach comes next, with two very different parts. One part is like a straight hollow rod (the proventriculus) which secretes mild hydrochloric acid and an enzyme to break down protein. The other part of the stomach is the gizzard. This is muscular, and grinds up the contents. In herbivorous birds the gizzard contains some gastroliths (small stones or pieces of grit). Bones of fish will mostly be dissolved by the stomach acid. The partly digested and ground-up food now goes to the intestine, where digestion is completed, and most contents are absorbed.


key: _node_content
string_value:
{"id_": "f02d2c66-b635-4da3-a649-575387732b4e", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "1cd80ab7-6313-4e32-b1e3-cf0ae94cd062", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "0d1d6283ef9fc64cffe88670615f71aa2f19c74a4823ad03e4a9d1c35c8d2728", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "ad858756-ebff-4e3c-a5f5-defb28cdb543", "node_type": "1", "metadata": {}, "hash": "15dcb51db789e488dd129433a545de3b241bbb4a9a6e37174240a24522fa89b9", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 27032, "end_char_idx": 30293, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
They lost the power of flight. Kiwis are endangered because European settlement to New Zealand brought animals like cats, dogs and rats which kill kiwis and eat their eggs. However, kiwis and also the rare New Zealand ground parrot have survived. In the case of dodos, they were fat and disgusting in taste. All the same, they were killed and eaten by sailors until there was none left. Other flightless birds which have disappeared are the great auk and the moa.\n\nPenguins are a very successful group of birds. They are a clade. They spend half their time on land. Their wings are adapted to life in the sea and have become flippers which let them in swim fast. They catch fish at sea, where they are in danger from seals.\n\nDigestion \nModern birds do not have teeth, and many swallow their prey whole. Nevertheless, they must break up food before it is digested. First of all, along their throat (oesophagus) they have a crop. This stores food items before digestion. That way a bird can eat several items, and then fly off to a quiet spot to digest them. \n\nTheir stomach comes next, with two very different parts. One part is like a straight hollow rod (the proventriculus) which secretes mild hydrochloric acid and an enzyme to break down protein. The other part of the stomach is the gizzard. This is muscular, and grinds up the contents. In herbivorous birds the gizzard contains some gastroliths (small stones or pieces of grit). Bones of fish will mostly be dissolved by the stomach acid. The partly digested and ground-up food now goes to the intestine, where digestion is completed, and most contents are absorbed. Anything indigestible, for example remains of feathers, is regurgitated via the mouth, not the cloaca.\n\nThe system is effective, and carnivorous birds can swallow quite large prey. A blue heron can swallow a fish as large as a carp successfully. Raptors eat by holding the prey down with a foot, and tearing it apart with their beak.\n\nReproduction\n\nMating \nAlthough birds are warm-blooded creatures like mammals, they do not give birth to live young. They lay eggs as reptiles do, but the shell of a bird\'s egg is hard. The baby bird grows inside the egg, and after a few weeks hatches (breaks out of the egg).\n\nBirds in cold climates usually have a breeding season once a year in the spring. Migratory birds can have two springs and two mating seasons in a year. \n\nNinety-five per cent of bird species are socially monogamous. These birds pair for at least the length of the breeding season. In some cases this arrangement lasts until the death of one of the pair. Monogamy clearly helps if females need males\' help to raise a brood successfully. It has other practical advantages: the nest is never left without defence. Birds are generally small, and they have many potential enemies.\n\nSome birds mate for life, like married couples. These birds include pigeons, geese, and cranes. Other birds look for new partners each year. For birds that choose new mates, part of the breeding season is display. The male bird will do all sorts of things to attract females. These include singing, dancing, showing off the feathers and building a beautiful nest. Some male birds have splendid feathers for attracting females.


key: _node_content
string_value:
{"id_": "ad858756-ebff-4e3c-a5f5-defb28cdb543", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "f02d2c66-b635-4da3-a649-575387732b4e", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "84b3908913f2401f65713501ab6d97d2eb02c48a98174cff449eb3f3c43e00e5", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "6cfdedfd-2b3c-49a6-a086-c754c45d71fe", "node_type": "1", "metadata": {}, "hash": "79e7ae56427750750523de22aab3820f007004236a21d2c864dbf8e7bf69635c", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 28663, "end_char_idx": 31890, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Anything indigestible, for example remains of feathers, is regurgitated via the mouth, not the cloaca.\n\nThe system is effective, and carnivorous birds can swallow quite large prey. A blue heron can swallow a fish as large as a carp successfully. Raptors eat by holding the prey down with a foot, and tearing it apart with their beak.\n\nReproduction\n\nMating \nAlthough birds are warm-blooded creatures like mammals, they do not give birth to live young. They lay eggs as reptiles do, but the shell of a bird\'s egg is hard. The baby bird grows inside the egg, and after a few weeks hatches (breaks out of the egg).\n\nBirds in cold climates usually have a breeding season once a year in the spring. Migratory birds can have two springs and two mating seasons in a year. \n\nNinety-five per cent of bird species are socially monogamous. These birds pair for at least the length of the breeding season. In some cases this arrangement lasts until the death of one of the pair. Monogamy clearly helps if females need males\' help to raise a brood successfully. It has other practical advantages: the nest is never left without defence. Birds are generally small, and they have many potential enemies.\n\nSome birds mate for life, like married couples. These birds include pigeons, geese, and cranes. Other birds look for new partners each year. For birds that choose new mates, part of the breeding season is display. The male bird will do all sorts of things to attract females. These include singing, dancing, showing off the feathers and building a beautiful nest. Some male birds have splendid feathers for attracting females. The most famous is the peacock who can spread the feathers above his tail into a huge fan. \n\nOther mating systems do occur in some species. Polygyny, polyandry, polygamy, polygynandry, and promiscuity do happen. Polygamous breeding systems arise when females are able to raise broods without the help of males. Some species may use more than one system depending on the circumstances.\n\nNesting \nOnce the birds have found partners, they find a suitable place to lay eggs. The idea of what is a suitable place differs between species, but most build bird nests. The bird is driven by a hormone (estradiol E2) to prepare a place for the eggs to hatch. Birds\' nests may be up a tree, in a cliff or on the ground according to species. When filled with eggs they are almost always guarded by one of the pair. In fact it is virtually impossible for the eggs to survive if one of the parents dies.\n\nRobins will make a beautiful little round nest of woven grass and carefully line it with feathers, bits of fluff and other soft things. Swallows like to nest near other swallows. They make nests from little blobs of clay, often on a beam near the roof of a building where it is well sheltered. Many birds like a hollow tree to nest in. Eagle\'s nests are often just piles of dead wood on the top of the tallest tree or mountain. Scrub turkeys scratch together a huge pile of leaves that may be 10 metres across. Guillemots lay their eggs on rock shelves with no nest at all. Their eggs are shaped so that they roll around in circles and do not fall off cliffs. A cuckoo does not make its own nest.


key: _node_content
string_value:
{"id_": "6cfdedfd-2b3c-49a6-a086-c754c45d71fe", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "ad858756-ebff-4e3c-a5f5-defb28cdb543", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "b8d5f5032462ff301a12e464deae215f0442d50ee179a3f7365eeaf27c05f1ec", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "05b3aebd-d363-44dd-8beb-fb4143acc40c", "node_type": "1", "metadata": {}, "hash": "84b231decc5cb00df513617d4bdbf2aad93ad01c55e6cdb46ad0fc8f79f992d7", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 30231, "end_char_idx": 33378, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Some male birds have splendid feathers for attracting females. The most famous is the peacock who can spread the feathers above his tail into a huge fan. \n\nOther mating systems do occur in some species. Polygyny, polyandry, polygamy, polygynandry, and promiscuity do happen. Polygamous breeding systems arise when females are able to raise broods without the help of males. Some species may use more than one system depending on the circumstances.\n\nNesting \nOnce the birds have found partners, they find a suitable place to lay eggs. The idea of what is a suitable place differs between species, but most build bird nests. The bird is driven by a hormone (estradiol E2) to prepare a place for the eggs to hatch. Birds\' nests may be up a tree, in a cliff or on the ground according to species. When filled with eggs they are almost always guarded by one of the pair. In fact it is virtually impossible for the eggs to survive if one of the parents dies.\n\nRobins will make a beautiful little round nest of woven grass and carefully line it with feathers, bits of fluff and other soft things. Swallows like to nest near other swallows. They make nests from little blobs of clay, often on a beam near the roof of a building where it is well sheltered. Many birds like a hollow tree to nest in. Eagle\'s nests are often just piles of dead wood on the top of the tallest tree or mountain. Scrub turkeys scratch together a huge pile of leaves that may be 10 metres across. Guillemots lay their eggs on rock shelves with no nest at all. Their eggs are shaped so that they roll around in circles and do not fall off cliffs. A cuckoo does not make its own nest. It lays its egg in the nest of another bird and leaves it for them to care for. The cuckoo eggs are camouflaged to look like the host\'s eggs.\n\nWhen the nest has been prepared, the birds mate so that the eggs are fertilised and the chicks will start growing. Unlike mammals, birds (and reptiles) only have one opening as the exit hole for body fluids, and for reproduction. The opening is called the cloaca. A female bird, called a hen, has two ovaries, of which the left one usually produces eggs.\n\nMost male birds have no sex organs that can be seen. But inside the male are two testes which produce sperm which is stored in the cloaca. Birds mate by rubbing their cloacas together, although with some birds, particularly large water birds, the male has a sort of a penis inside the cloaca.\n\nHatching \nOnce the hen has mated, she produces fertile eggs which have chicks growing inside them. She lays the eggs in the nest. There might be just one egg or a number of them, called a clutch. Emus might lay as many as fifteen huge dark green eggs in a clutch. After the eggs are laid, they are incubated, or kept warm so the chicks form inside. Most birds stay together for the whole nesting season, and one advantage is that the work is shared. Many birds take turns sitting on the eggs, so that each adult can feed.\n\nThis is not always the case. With emus, the male does all the sitting and all the baby-minding. With emperor penguins it is also the male that cares for the egg.


key: _node_content
string_value:
{"id_": "05b3aebd-d363-44dd-8beb-fb4143acc40c", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "6cfdedfd-2b3c-49a6-a086-c754c45d71fe", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "3e2dd5d0e9e4a7ef4248cf794a70c464cfff6d02475a8ed6c1a7fc79253b0b99", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "cd96c8e5-d801-4ca6-ad9f-7ee1ba37c3a1", "node_type": "1", "metadata": {}, "hash": "8860ece141cb4b812779057f8dd8c9a4519c77e6dbb51c940c4d5332a52a6f1b", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 31768, "end_char_idx": 34849, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Their eggs are shaped so that they roll around in circles and do not fall off cliffs. A cuckoo does not make its own nest. It lays its egg in the nest of another bird and leaves it for them to care for. The cuckoo eggs are camouflaged to look like the host\'s eggs.\n\nWhen the nest has been prepared, the birds mate so that the eggs are fertilised and the chicks will start growing. Unlike mammals, birds (and reptiles) only have one opening as the exit hole for body fluids, and for reproduction. The opening is called the cloaca. A female bird, called a hen, has two ovaries, of which the left one usually produces eggs.\n\nMost male birds have no sex organs that can be seen. But inside the male are two testes which produce sperm which is stored in the cloaca. Birds mate by rubbing their cloacas together, although with some birds, particularly large water birds, the male has a sort of a penis inside the cloaca.\n\nHatching \nOnce the hen has mated, she produces fertile eggs which have chicks growing inside them. She lays the eggs in the nest. There might be just one egg or a number of them, called a clutch. Emus might lay as many as fifteen huge dark green eggs in a clutch. After the eggs are laid, they are incubated, or kept warm so the chicks form inside. Most birds stay together for the whole nesting season, and one advantage is that the work is shared. Many birds take turns sitting on the eggs, so that each adult can feed.\n\nThis is not always the case. With emus, the male does all the sitting and all the baby-minding. With emperor penguins it is also the male that cares for the egg. There is only one egg, which he keeps on his feet and under his feathers, standing in a big group of males without feeding until the chick is hatched. While the eggs are hatching, the females are at sea, feeding, so that they can care for the chicks when they return.\n\nSome birds put the eggs inside or on top of the mound of leaves and twigs. The mound acts like a compost heap. The decomposition of the rotting leaves causes the temperature to rise. This is heat released by the chemical action of bacterial and fungal respiration. It is the same reaction as that which keeps mammals and birds at a high temperature. The parents leave the mound. When the chicks hatch, they are able to feed themselves.\n\nMany small birds take 2–4 weeks to hatch eggs. Albatrosses take 80 days. During this time the female loses a lot of her body weight.\n\nThe quickest hatching time is for the cuckoo. Some types of cuckoos take only 10 days. This means that when they hatch in the nest of their \'\'foster parents\'\', the eggs that the parents have laid are not yet ready. Newborn cuckoos are naked, blind and ugly, but they are strong. They get under any eggs that are in the nest and throw them out before they hatch. That means that the cuckoo has the whole care of both parents. Baby cuckoos grow fast and often get bigger than the parents who feed them.\n\nWhen baby birds hatch, in most types of birds, they are fed by both parents, and sometimes by older aunties as well.


key: _node_content
string_value:
{"id_": "cd96c8e5-d801-4ca6-ad9f-7ee1ba37c3a1", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "05b3aebd-d363-44dd-8beb-fb4143acc40c", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "dc2b489f1bfa9f172ab6e4c2b05fcd975ec3c39170cebe594a93ebcf420aad4a", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "3661d4eb-9eb0-4ef9-8893-d6ac68cca8f1", "node_type": "1", "metadata": {}, "hash": "1aba4d1e6e0a9b687bbe34f6437347df498a2d3357c582d0ed7c2cca772e24be", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 33246, "end_char_idx": 36408, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
With emus, the male does all the sitting and all the baby-minding. With emperor penguins it is also the male that cares for the egg. There is only one egg, which he keeps on his feet and under his feathers, standing in a big group of males without feeding until the chick is hatched. While the eggs are hatching, the females are at sea, feeding, so that they can care for the chicks when they return.\n\nSome birds put the eggs inside or on top of the mound of leaves and twigs. The mound acts like a compost heap. The decomposition of the rotting leaves causes the temperature to rise. This is heat released by the chemical action of bacterial and fungal respiration. It is the same reaction as that which keeps mammals and birds at a high temperature. The parents leave the mound. When the chicks hatch, they are able to feed themselves.\n\nMany small birds take 2–4 weeks to hatch eggs. Albatrosses take 80 days. During this time the female loses a lot of her body weight.\n\nThe quickest hatching time is for the cuckoo. Some types of cuckoos take only 10 days. This means that when they hatch in the nest of their \'\'foster parents\'\', the eggs that the parents have laid are not yet ready. Newborn cuckoos are naked, blind and ugly, but they are strong. They get under any eggs that are in the nest and throw them out before they hatch. That means that the cuckoo has the whole care of both parents. Baby cuckoos grow fast and often get bigger than the parents who feed them.\n\nWhen baby birds hatch, in most types of birds, they are fed by both parents, and sometimes by older aunties as well. Their mouths are open all the time and are often very brightly coloured, which acts as a releaser\'\', a trigger which stimulates the parent to feed them. For birds that eat grain and fruit, the parents eat and partly digest the food for the babies. It is then vomited carefully into the baby\'s mouth.\n  \n\n Families \nMany birds, particularly those that mate for life, are very sociable and keep together in a family group which might be anything from 4 or 6 adult birds and their young to a very large flock.\n\nAs chicks grow they change the fluffy down that covers them as babies for real feathers. At this stage they are called fledglings. Other family members may help care for fledgling chicks, feeding them and protecting them from attack while parents are feeding. When the fledglings have their new feathers, they come out of the nest to learn to fly. In some types of birds, like pigeons, the parents watch over this and as the young ones get stronger, will give them flying lessons, teaching them how to glide, how to fly in spirals and how to land like an expert.\n\n Communication \nMost birds are social animals, at least part of the time. They communicate to each other using sounds and displays.\n\nAlmost all birds make sounds to communicate. The types of noises that vary greatly. Some birds can sing, and  they are called songbirds or passerines. Examples are robins, larks, canaries, thrushes, nightingales. Corvids are passerines, but they do not sing. Birds that are not songbirds include: pigeons, seagulls, eagles, owls and ducks.


key: _node_content
string_value:
{"id_": "3661d4eb-9eb0-4ef9-8893-d6ac68cca8f1", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "cd96c8e5-d801-4ca6-ad9f-7ee1ba37c3a1", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "3c60845a6c713974a8dc231f29d5bb5e8294963bb951dad0e48d9f4b046b37ef", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "b4648c32-5d65-4273-a8fd-b8b3382f4bc3", "node_type": "1", "metadata": {}, "hash": "36c0ea771ff9c895b9c88e8484c653fd6db2575f2d3a0df6a42b50ada659ff1e", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 34850, "end_char_idx": 38160, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Their mouths are open all the time and are often very brightly coloured, which acts as a releaser\'\', a trigger which stimulates the parent to feed them. For birds that eat grain and fruit, the parents eat and partly digest the food for the babies. It is then vomited carefully into the baby\'s mouth.\n  \n\n Families \nMany birds, particularly those that mate for life, are very sociable and keep together in a family group which might be anything from 4 or 6 adult birds and their young to a very large flock.\n\nAs chicks grow they change the fluffy down that covers them as babies for real feathers. At this stage they are called fledglings. Other family members may help care for fledgling chicks, feeding them and protecting them from attack while parents are feeding. When the fledglings have their new feathers, they come out of the nest to learn to fly. In some types of birds, like pigeons, the parents watch over this and as the young ones get stronger, will give them flying lessons, teaching them how to glide, how to fly in spirals and how to land like an expert.\n\n Communication \nMost birds are social animals, at least part of the time. They communicate to each other using sounds and displays.\n\nAlmost all birds make sounds to communicate. The types of noises that vary greatly. Some birds can sing, and  they are called songbirds or passerines. Examples are robins, larks, canaries, thrushes, nightingales. Corvids are passerines, but they do not sing. Birds that are not songbirds include: pigeons, seagulls, eagles, owls and ducks. Parrots are not songbirds, even though they can be taught to sing human songs.\n\n Songbirds \nAll birds make noises (\'\'bird vocalisation\'\'), but not all sing. Songbirds are passerines, many of which have beautiful melodic songs. Songs have different functions. Danger cries are different from territorial songs and mating calls are a third type. Fledgling may also have different calls from adults. Recognition calls for partners are quite common.\n\nAs to where the song comes from, there are three kinds of species:\nThose where the song is mainly inherited, and the bird always sings the same song in the same situations. The capacity is inherited, and only details are learnt from its neighbours.\nThose where the song is partly inherited, but the bird tunes it in by copying others. In this case the slight differences between the calls of different birds may be used by partners for identification.\nThose where the song is entirely learnt, and the bird often copies sounds from its environment. Only the capacity to sing is inherited.\n\nMost singing birds that are kept as pets, like canaries, have several tunes and some variations.\n\nThe same species of bird will sing different songs in different regions. A good example of this is the currawong. This is an Australia bird which is like a black and white crow. In the autumn, families get together in large flocks and do a lot of singing. Currawongs from some areas sing much more complex songs than others. Generally, currawongs from the Blue Mountains are the finest singers. The song of the currawong can be sung as a solo, but is often performed as a choir. One bird will take the lead and sing "Warble-warble-warble-warble!" All the other birds will join in and sing "Wooooooo!".


key: _node_content
string_value:
{"id_": "b4648c32-5d65-4273-a8fd-b8b3382f4bc3", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "3661d4eb-9eb0-4ef9-8893-d6ac68cca8f1", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "c46ee5d5f71de00222c4a9ba0734debe7fafa79b8f6f33773f78181545f04fe0", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "3361e48b-46fa-4fe2-8ebb-17da6e0f4579", "node_type": "1", "metadata": {}, "hash": "8d2a38efe835b1742839571f706c974334bfff46efaea28bf2eb14ed7aa0238b", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 36409, "end_char_idx": 39708, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Parrots are not songbirds, even though they can be taught to sing human songs.\n\n Songbirds \nAll birds make noises (\'\'bird vocalisation\'\'), but not all sing. Songbirds are passerines, many of which have beautiful melodic songs. Songs have different functions. Danger cries are different from territorial songs and mating calls are a third type. Fledgling may also have different calls from adults. Recognition calls for partners are quite common.\n\nAs to where the song comes from, there are three kinds of species:\nThose where the song is mainly inherited, and the bird always sings the same song in the same situations. The capacity is inherited, and only details are learnt from its neighbours.\nThose where the song is partly inherited, but the bird tunes it in by copying others. In this case the slight differences between the calls of different birds may be used by partners for identification.\nThose where the song is entirely learnt, and the bird often copies sounds from its environment. Only the capacity to sing is inherited.\n\nMost singing birds that are kept as pets, like canaries, have several tunes and some variations.\n\nThe same species of bird will sing different songs in different regions. A good example of this is the currawong. This is an Australia bird which is like a black and white crow. In the autumn, families get together in large flocks and do a lot of singing. Currawongs from some areas sing much more complex songs than others. Generally, currawongs from the Blue Mountains are the finest singers. The song of the currawong can be sung as a solo, but is often performed as a choir. One bird will take the lead and sing "Warble-warble-warble-warble!" All the other birds will join in and sing "Wooooooo!". When all the birds know the song, the choir will sing the "Warble" part and the soloist will sing the "Woo!". The song changes from year to year and from place to place.\n\n Lorenz\'s studies \nThe Austrian naturalist Konrad Lorenz studied the way in which birds communicate, or talk to each other. He found that each type of bird had a number of sounds which they made automatically, when ever they felt a certain way. Every sound had an action that went with it. So, if the bird was frightened, it acted frightened and made a frightened sound. This told the other birds around it that something frightening was happening.\n\nIf a flock of birds were flying over a field, they would be calling "Fly! Fly!" But a hungry bird, seeing something good to eat down below might start calling "Food! Food!" If other birds were also hungry, they would make the same call until more birds were calling "Food! Food!" than "Fly! Fly!". At this point, the mind of the flock would be changed. Some of the birds would start to yell "Fly downwards! Fly downwards!" as they sank from the sky, until the whole flock was all noisily calling the same thing.\n\nThese communication sounds are often short hard sounds like: chirps, squeaks, squawks and twitters. Sometimes the calls are longer and more musical. They include the "Rookety-coo" sound of a pigeon and the "Cockadoodledoo!" of a rooster. The bird cannot change these sounds. They always make them in the same way. The bird is locked into making each sound every time a particular idea comes into its head.


key: _node_content
string_value:
{"id_": "3361e48b-46fa-4fe2-8ebb-17da6e0f4579", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "b4648c32-5d65-4273-a8fd-b8b3382f4bc3", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "da86953a16850211df6ddc71d761d78127265eb76dc0ee1cb1a278d65ea9608e", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "3359b50b-0d65-45f3-9d73-cdf820475f1a", "node_type": "1", "metadata": {}, "hash": "3470067cfc11da587f25c593a3f4d86f42b8ef65780c1365de2fc052aac9f5b5", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 38106, "end_char_idx": 41239, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
All the other birds will join in and sing "Wooooooo!". When all the birds know the song, the choir will sing the "Warble" part and the soloist will sing the "Woo!". The song changes from year to year and from place to place.\n\n Lorenz\'s studies \nThe Austrian naturalist Konrad Lorenz studied the way in which birds communicate, or talk to each other. He found that each type of bird had a number of sounds which they made automatically, when ever they felt a certain way. Every sound had an action that went with it. So, if the bird was frightened, it acted frightened and made a frightened sound. This told the other birds around it that something frightening was happening.\n\nIf a flock of birds were flying over a field, they would be calling "Fly! Fly!" But a hungry bird, seeing something good to eat down below might start calling "Food! Food!" If other birds were also hungry, they would make the same call until more birds were calling "Food! Food!" than "Fly! Fly!". At this point, the mind of the flock would be changed. Some of the birds would start to yell "Fly downwards! Fly downwards!" as they sank from the sky, until the whole flock was all noisily calling the same thing.\n\nThese communication sounds are often short hard sounds like: chirps, squeaks, squawks and twitters. Sometimes the calls are longer and more musical. They include the "Rookety-coo" sound of a pigeon and the "Cockadoodledoo!" of a rooster. The bird cannot change these sounds. They always make them in the same way. The bird is locked into making each sound every time a particular idea comes into its head. The connection between how they feel and how they call is innate: they are born with it. Some calls in some species are learnt. Then, it is the tendency to learn which is inherited.\n\n The Jackdaw of Altenberg \nKonrad Lorenz noticed that when birds sing, they often use a lot of their regular calls as part of the song. Lorenz had a flock of jackdaws which were scattered during World War II. One day, an old bird returned. For many months she sat on the chimney singing her song, but in the song she kept making the call which Lorenz knew meant "Come home! Come home!" One day, to the great surprise of Lorenz, a male bird flew from a passing flock and joined her on the chimney. Lorenz was sure that it was her long-lost "husband" who had found his way home at last.\n\n Evolution and taxonomy \n\nPalaeontologists have found some exceptional places (lagerstätten) where fossils of early birds are found. The preservation is so good that on the best examples impressions of their feathers can be seen, and sometimes even the remains of meals they have eaten. From these remains we know that birds evolved from small carnivorous dinosaurs (theropods) in the Jurassic period. They radiated into a huge variety in the Lower Cretaceous. At the same time, their direct competitors, the pterosaurs, dwindled in numbers and variety, and became extinct at the end of the Mesozoic.\n\nBirds are classified by taxonomists as \'Aves\' (Avialae). Birds are the only living descendants of dinosaurs (strictly speaking, they are dinosaurs).


key: _node_content
string_value:
{"id_": "3359b50b-0d65-45f3-9d73-cdf820475f1a", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "3361e48b-46fa-4fe2-8ebb-17da6e0f4579", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "9a50f02db7ce408a0f6fde0d64d536084cdb85f1bc177b73e4f0232e7c8fe26f", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "821cd7ff-21b9-436c-a0ba-7df39f79c560", "node_type": "1", "metadata": {}, "hash": "8b25cc782a3ec5b8964fff3f48acb32f0c513d3a9552ae1508c149935184a8d3", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 39578, "end_char_idx": 42802, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
They always make them in the same way. The bird is locked into making each sound every time a particular idea comes into its head. The connection between how they feel and how they call is innate: they are born with it. Some calls in some species are learnt. Then, it is the tendency to learn which is inherited.\n\n The Jackdaw of Altenberg \nKonrad Lorenz noticed that when birds sing, they often use a lot of their regular calls as part of the song. Lorenz had a flock of jackdaws which were scattered during World War II. One day, an old bird returned. For many months she sat on the chimney singing her song, but in the song she kept making the call which Lorenz knew meant "Come home! Come home!" One day, to the great surprise of Lorenz, a male bird flew from a passing flock and joined her on the chimney. Lorenz was sure that it was her long-lost "husband" who had found his way home at last.\n\n Evolution and taxonomy \n\nPalaeontologists have found some exceptional places (lagerstätten) where fossils of early birds are found. The preservation is so good that on the best examples impressions of their feathers can be seen, and sometimes even the remains of meals they have eaten. From these remains we know that birds evolved from small carnivorous dinosaurs (theropods) in the Jurassic period. They radiated into a huge variety in the Lower Cretaceous. At the same time, their direct competitors, the pterosaurs, dwindled in numbers and variety, and became extinct at the end of the Mesozoic.\n\nBirds are classified by taxonomists as \'Aves\' (Avialae). Birds are the only living descendants of dinosaurs (strictly speaking, they are dinosaurs). Birds and Crocodilia are the only living members of the once-dominant Archosaur reptiles.\n\n Definition \nThe class Aves is was defined (1990) as all the descendants of the most recent common ancestor of modern birds and Archaeopteryx lithographica. But Archaeopteryx is almost certainly not the ancestor of modern birds. The transition to flight happened a number of times. The researchers offered four definitions. Birds can be: \nAll archosaurs closer to birds than crocodiles (Avemetatarsalia).\nAdvanced archosaurs with feathers (Avofilopluma).\nThose feathered dinosaurs that fly (or Avialae)\nAves can mean the last common ancestor of all living birds and all of its descendants (a "crown group", in this sense synonymous with Neornithes).\n\n The first bird-like creatures Archaeopteryx, from the Upper Jurassic some 150–145 million years ago (mya), was for a long time the earliest known bird which could fly. It is famous, because it was one of the first important fossils found after Charles Darwin published his ideas about evolution in the 19th century. By modern standards, Archaeopteryx could not fly very well. Other early fossil birds are, for example, Confuciusornis, Anchiornis huxlei and other Paraves.\n\nMany fossils of early birds and small dinosaurs have been discovered in the Liaoning Province of Northeast China. These include Anchiornis huxlei, from about 160 mya. The fossils show that most small theropod dinosaurs had feathers. These deposits have preserved them so well that the impressions of their feathers can be clearly seen.


key: _node_content
string_value:
{"id_": "821cd7ff-21b9-436c-a0ba-7df39f79c560", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "3359b50b-0d65-45f3-9d73-cdf820475f1a", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "9b84846f3f7ba33384aa2de664ef363447cff8bcd85ceb531a923d1ad4af9dcf", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "272c1bfc-0a06-4985-b483-fa5ecb6fd85f", "node_type": "1", "metadata": {}, "hash": "4ae1abb1169760e6f0d8e22213ce422e30d7a242921b459c1997fc562800598e", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 41148, "end_char_idx": 44338, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Birds are the only living descendants of dinosaurs (strictly speaking, they are dinosaurs). Birds and Crocodilia are the only living members of the once-dominant Archosaur reptiles.\n\n Definition \nThe class Aves is was defined (1990) as all the descendants of the most recent common ancestor of modern birds and Archaeopteryx lithographica. But Archaeopteryx is almost certainly not the ancestor of modern birds. The transition to flight happened a number of times. The researchers offered four definitions. Birds can be: \nAll archosaurs closer to birds than crocodiles (Avemetatarsalia).\nAdvanced archosaurs with feathers (Avofilopluma).\nThose feathered dinosaurs that fly (or Avialae)\nAves can mean the last common ancestor of all living birds and all of its descendants (a "crown group", in this sense synonymous with Neornithes).\n\n The first bird-like creatures Archaeopteryx, from the Upper Jurassic some 150–145 million years ago (mya), was for a long time the earliest known bird which could fly. It is famous, because it was one of the first important fossils found after Charles Darwin published his ideas about evolution in the 19th century. By modern standards, Archaeopteryx could not fly very well. Other early fossil birds are, for example, Confuciusornis, Anchiornis huxlei and other Paraves.\n\nMany fossils of early birds and small dinosaurs have been discovered in the Liaoning Province of Northeast China. These include Anchiornis huxlei, from about 160 mya. The fossils show that most small theropod dinosaurs had feathers. These deposits have preserved them so well that the impressions of their feathers can be clearly seen. This leads us to think that feathers evolved first as heat insulation and only later for flight. The origin of birds lies in these small feathered dinosaurs.\n\nPalaeontologists now agree that birds are included in Maniraptora group of dinosaurs. This explains why we say that birds are living dinosaurs.\n\n Evolution of modern birds \nA leading authority says "Most living birds have fossil representatives in the Cenozoic"... "Key problems remain in understanding bird phylogeny... we seem to understand as little about the relationships among living birds as among Cretaceous birds".\n\n Origin of birds\n Paraves\n\nBirds and people \n\nSome birds are eaten as food. Most usually it is the chicken and its eggs, but people often also eat geese, pheasants, turkeys and ducks. Other birds are sometimes eaten are: emus, ostriches, pigeons, grouse, quails, doves, woodcocks and even songbirds. Some species have died out because they have been hunted for food, for example the dodo and the passenger pigeon.\n\nMany species have learned how to get food from people. The number of birds of these species has grown because of it. Seagulls and crows find food from garbage dumps. The feral pigeon (Columba livia), sparrows (Passer domesticus and starlings (Sturnus vulgaris) live in large numbers in towns and cities all over the world.\n\nSometimes people also use working birds. For example, homing pigeons carry messages. Nowadays people sometimes race them for sport. People also use falcons for hunting, and cormorants for fishing.


key: _node_content
string_value:
{"id_": "272c1bfc-0a06-4985-b483-fa5ecb6fd85f", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "821cd7ff-21b9-436c-a0ba-7df39f79c560", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "103ef8e1535149b47794b4aa62be6c898f3c19dbac04abd33b32c1ccd45a92e6", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "c9b4eb5a-8874-49f0-aa54-7db45077bba7", "node_type": "1", "metadata": {}, "hash": "5aeb01015287806a863067b3d728852e714127786cf5f460bf224767403eb05f", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 42634, "end_char_idx": 45228, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
The fossils show that most small theropod dinosaurs had feathers. These deposits have preserved them so well that the impressions of their feathers can be clearly seen. This leads us to think that feathers evolved first as heat insulation and only later for flight. The origin of birds lies in these small feathered dinosaurs.\n\nPalaeontologists now agree that birds are included in Maniraptora group of dinosaurs. This explains why we say that birds are living dinosaurs.\n\n Evolution of modern birds \nA leading authority says "Most living birds have fossil representatives in the Cenozoic"... "Key problems remain in understanding bird phylogeny... we seem to understand as little about the relationships among living birds as among Cretaceous birds".\n\n Origin of birds\n Paraves\n\nBirds and people \n\nSome birds are eaten as food. Most usually it is the chicken and its eggs, but people often also eat geese, pheasants, turkeys and ducks. Other birds are sometimes eaten are: emus, ostriches, pigeons, grouse, quails, doves, woodcocks and even songbirds. Some species have died out because they have been hunted for food, for example the dodo and the passenger pigeon.\n\nMany species have learned how to get food from people. The number of birds of these species has grown because of it. Seagulls and crows find food from garbage dumps. The feral pigeon (Columba livia), sparrows (Passer domesticus and starlings (Sturnus vulgaris) live in large numbers in towns and cities all over the world.\n\nSometimes people also use working birds. For example, homing pigeons carry messages. Nowadays people sometimes race them for sport. People also use falcons for hunting, and cormorants for fishing. In the past, people in mines often used a canary to see if there were bad gas methane in the air.\n\nPeople often have colorful birds such as parrots and mynahs as pets. These intelligent birds are popular because they can copy human talking. Because of this, some people trap birds and take them to other countries to sell. This is not usually allowed these days. Most pet birds are specially bred and are sold in pet shops.\n\nPeople can catch some bird diseases, for example: psittacosis, salmonellosis, campylobacteriosis, Newcastle\'s disease, mycobacteriosis, influenza, giardiasis and cryptosporiadiosis. In 2005, there was an epidemic of bird influenza spreading through some parts of the world, often called avian flu.\n\nSome people have birdboxes in their gardens to give birds a place to nest and bird tables where birds can get food and water in very cold or very dry weather.


key: _node_content
string_value:
{"id_": "c9b4eb5a-8874-49f0-aa54-7db45077bba7", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "272c1bfc-0a06-4985-b483-fa5ecb6fd85f", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "5eb013f4980d9e6d60bd638c0903cfcd671843db6b5ac7d48de0a7ce6cfaedbb", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "b27be2d3-32fb-4bd0-9eb9-601950d2587c", "node_type": "1", "metadata": {}, "hash": "7eef2531684a8337cf9f73855d47ed69703a45df1f70cd6f8b8972eb249a0f49", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 43583, "end_char_idx": 46368, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "b27be2d3-32fb-4bd0-9eb9-601950d2587c", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "c9b4eb5a-8874-49f0-aa54-7db45077bba7", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "1ecd961a17743d4c5d72e457d6005026df6b52af659feabfa45864d1d5257c8f", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "665ccb40-6179-4783-b3ba-d2b61cd80659", "node_type": "1", "metadata": {}, "hash": "88ef2f56aef8083645d1f0aed4108001b7a76d7d9b71c5d55d8164f49a1226cb", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 44951, "end_char_idx": 47840, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "665ccb40-6179-4783-b3ba-d2b61cd80659", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "b27be2d3-32fb-4bd0-9eb9-601950d2587c", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "39e89bc752c3deb6a3c8e7c0776704ba1b1d81c33428788c274b27df59d45ae4", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "38753b98-4aca-4089-bc81-55353242f203", "node_type": "1", "metadata": {}, "hash": "f7f3db1c491f0fd69fd854ceea4636f5e6a2687aa35fb95815afd54121f291d1", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 46369, "end_char_idx": 49516, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "38753b98-4aca-4089-bc81-55353242f203", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "665ccb40-6179-4783-b3ba-d2b61cd80659", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "c045bc1935bdcff15150ea0cb6c8670e10fb1e676699472814f83115f641f1b2", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "db6f5e4a-7ea3-4016-96a2-bc31fa99946a", "node_type": "1", "metadata": {}, "hash": "7b7d12f2c4520527f126703d88d2b47307d62aac6e34849a0628d93d9363b25d", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 47841, "end_char_idx": 51024, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "db6f5e4a-7ea3-4016-96a2-bc31fa99946a", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "38753b98-4aca-4089-bc81-55353242f203", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "8a40575a5a88b3708a731b17a2fe64b0d74c4b8376a39f3d613adbce99759a2e", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "fe1df88e-addc-408a-ae68-a97ced1242f4", "node_type": "1", "metadata": {}, "hash": "086997ea4becde911803d8101f6f621241fe4f3c319d814cda3f75b20788252d", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 49517, "end_char_idx": 52810, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "fe1df88e-addc-408a-ae68-a97ced1242f4", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "db6f5e4a-7ea3-4016-96a2-bc31fa99946a", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "c00dee90123146386254d4c159b6eb46e4236bf8441a75426bc562af66a916d4", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "87d258c9-f362-47ab-8c02-aa8eb803aee6", "node_type": "1", "metadata": {}, "hash": "449ffdd594592098e7c21067d0336a2c34a54e16017c576142b773a7ef3fad1c", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 51232, "end_char_idx": 54540, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "87d258c9-f362-47ab-8c02-aa8eb803aee6", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "fe1df88e-addc-408a-ae68-a97ced1242f4", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "1add1ce84f06902f6238e007b79670a69179c57033b46c06a1fef3a5af2dda73", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "71da4a10-9f75-4db1-b469-6f29ba86290f", "node_type": "1", "metadata": {}, "hash": "4da822e4bfa0795c3a729acf40724430c60bf236f6cf84bf332970b0d555d952", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 52770, "end_char_idx": 56112, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "71da4a10-9f75-4db1-b469-6f29ba86290f", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "87d258c9-f362-47ab-8c02-aa8eb803aee6", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "1ef281ba9fe29ab379b5984c74601e54611e0bd0c25a3d877f918475c4de22e5", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "bf0fecf7-ba2a-4854-b3c8-9564e46ea099", "node_type": "1", "metadata": {}, "hash": "e5b8b030f3de8ca1a7180c51c525cc314fb8b54b28ea6256e70ea9e57300b709", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 54308, "end_char_idx": 57769, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Because of these two things, people did not have to migrate as much any more. Villages could grow to much larger sizes than before. Over time, villages fought and spread their control over larger areas and some became civilisations. During this time, humankind also developed further intellectually, militarily and spiritually.\n\nWhen humans started to grow crops and domesticate certain animals such as dogs, goats, sheep, and cattle;  their societies changed. Because people now grew crops and raised livestock, they started to stay in the same place and build permanent settlements. In most places, this happened between 10,000 and 12,000 years ago. Their diet also changed. People ate more cereals and vegetables. They started to keep extra foods and seeds for later. In some years there were surpluses (extras) that could be traded for other goods.\n\nThese changes happened independently in many parts of the world. They did not happen in the same order though. For example, the earliest farming societies in the Near East did not use pottery. No one is sure if Britain had agriculture, or if permanent villages existed there at all. Early Japanese societies used pottery before developing agriculture.\n\nVere Gordon Childe gave the name Neolithic Revolution to this process in the 1920s. He thought that it was as important as the Industrial Revolution (which happened in the 18th and 19th century).\n\nAncient history – the early civilizations \n\nAncient history was the time from the development of writing to the fall of the Roman Empire. The fall of the Roman Empire caused chaos in Europe, leading to the Middle Ages (also called the Dark Ages or the Age of Faith).\n\nThe first civilizations were built along major river systems. These civilizations are called river valley civilizations. River valley civilizations were the most powerful civilizations in this time period because water was needed to have an agricultural society.\n\nThese civilizations were similar in that:\n They developed along river systems\n They had polytheistic religions\n They used writing systems\n\nMiddle East and North Africa\n\nSumer \n\nSumer was the world\'s first known ancient civilization. The Sumerians took over the fertile crescent region of Mesopotamia around 3300 BCE. They grew crops on the Tigris and Euphrates rivers. By 3000 BCE, many cities had been built in parts of Sumerian Mesopotamia. They formed independently and each had their own government. They were called city-states and often fought with each other.\n\nA surplus in food led to a Division of labour. This means that some people were able to stop growing crops and do other jobs, since enough crops were already grown. This brought a split in society. Today, such a split is called social pyramid. In a social pyramid, people are grouped into social classes based on their wealth and power. In Sumer, the king, priests, and government officials were at the top of the social pyramid. Below them were the artisans, merchants, farmers, and fishers. At the bottom of the pyramid were slaves. Slaves were often prisoners of war, criminals, or people working to pay off debt.\n\nThe Sumerians created the world\'s first system of writing; it was called cuneiform. The oldest versions of one of the world\'s first literary works, the Epic of Gilgamesh, go back to this time. In Sumer, only the sons of the rich and powerful learned how to read and write. They went to a school called edubba.


key: _node_content
string_value:
{"id_": "bf0fecf7-ba2a-4854-b3c8-9564e46ea099", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "71da4a10-9f75-4db1-b469-6f29ba86290f", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "202f9792ef0bb91c7e76a4a3f5be93de9fda3a3d62aba9b2729346886f8ab29c", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "487bf57b-896e-4435-a347-7b23544069dd", "node_type": "1", "metadata": {}, "hash": "7b7b181423136f07463092e4c11755d5a32feb18e996da67989e763c45f483f4", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 56054, "end_char_idx": 58976, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "487bf57b-896e-4435-a347-7b23544069dd", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "bf0fecf7-ba2a-4854-b3c8-9564e46ea099", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "34dc765367e5222a384c9a5dd0319465991469e527a322c4fd5876435ffba690", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "64dc1e59-a4a7-421a-b02e-25982055cdfe", "node_type": "1", "metadata": {}, "hash": "203db568ec3cd211e083ea25970d8f4710b2b4b59e764859791fc6a6d6b8df44", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 57373, "end_char_idx": 60383, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "64dc1e59-a4a7-421a-b02e-25982055cdfe", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "487bf57b-896e-4435-a347-7b23544069dd", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "e913040b992c6852aa034178a2121374bb0c04e571faa30b736f7ac39e6f0165", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "89cc2541-548d-42f1-bf05-a8284f91618d", "node_type": "1", "metadata": {}, "hash": "77bcd75f1dd2d870d1567361cd9e118adcf1604cc13f17a8ccc90df963828945", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 58804, "end_char_idx": 62063, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "89cc2541-548d-42f1-bf05-a8284f91618d", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "64dc1e59-a4a7-421a-b02e-25982055cdfe", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "62de2b229d039ac9f8d76e8f4753f0332f897a1038374389c7c27de0c2a26aca", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "31b8b8c0-655d-4896-88fe-9999ff83b965", "node_type": "1", "metadata": {}, "hash": "a5120d8439932e3dc30978e9bb332c60051fe68cf27619314b3bd427f674dba7", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 60340, "end_char_idx": 63728, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "31b8b8c0-655d-4896-88fe-9999ff83b965", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "89cc2541-548d-42f1-bf05-a8284f91618d", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "9e9fc94102f80251052aa35a96f824665c9a342cf48e630334a94c50048fec49", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "c670ab74-ef0b-4e9b-b049-06892279faa8", "node_type": "1", "metadata": {}, "hash": "1da0a2c276a8cc4c284409d5a4740f8624ec72bc25c78b0a924010f3797842a2", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 61957, "end_char_idx": 65370, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "c670ab74-ef0b-4e9b-b049-06892279faa8", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "31b8b8c0-655d-4896-88fe-9999ff83b965", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "e9afe2c00b2eedcf5c215b8ee613fc457584e69dddc60c29151909faea0897b7", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "89db56a8-aa95-42cc-bfc7-c2ab9cbcf781", "node_type": "1", "metadata": {}, "hash": "6cf62dcbcd3b3c7b7b4197ae21ca3639ab9ba4a4650d6e69d77972496d7c5cdf", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 63677, "end_char_idx": 66794, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "89db56a8-aa95-42cc-bfc7-c2ab9cbcf781", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "c670ab74-ef0b-4e9b-b049-06892279faa8", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "c10914675456928a4cc3889f598a4bf87a7b19c4bf2ad99cdc3ff277c838179c", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "1cd6e436-aa66-4b9f-af9c-18bd2a0e83a4", "node_type": "1", "metadata": {}, "hash": "b7d6130d74fe88ce4d80d03d0ca5e439f027ab68217939884692463879f023eb", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 65250, "end_char_idx": 68322, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "1cd6e436-aa66-4b9f-af9c-18bd2a0e83a4", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "89db56a8-aa95-42cc-bfc7-c2ab9cbcf781", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "19ad2236bdfffbf2b7102f312d9ae21c955c4aec2252f6c0452c7b6fcfb30c0d", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "62bf6486-66ce-4140-9181-2873d125d755", "node_type": "1", "metadata": {}, "hash": "b7829365d93209870338b1933b69c0969d49a0da5a29781cf213563facd1ac88", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 66586, "end_char_idx": 69875, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "62bf6486-66ce-4140-9181-2873d125d755", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "1cd6e436-aa66-4b9f-af9c-18bd2a0e83a4", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "37b7f10a83a3d8bbe1401685fd5ac2f603a92ab26406019eb451ac0cd1b65c32", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "57a3fd57-c7a8-43c5-b5b2-817e3f789b93", "node_type": "1", "metadata": {}, "hash": "0b49ff03ca10850e21cb67344574d03727303dad284c459bc73f108d14d0c376", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 68151, "end_char_idx": 71339, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "57a3fd57-c7a8-43c5-b5b2-817e3f789b93", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "62bf6486-66ce-4140-9181-2873d125d755", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "513f1daa453a5cc2ba59bb7e9bac0ac03ef018faf931ca414456d9ce174af5f5", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "565dea88-95ba-4cb4-9171-2d4df31bbf1e", "node_type": "1", "metadata": {}, "hash": "a7fb9254fb8ee796fbe392b4d9ee2380a8d35e7db310e1194e4ac6801d51c7f6", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 69718, "end_char_idx": 72931, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
But with the rise of Islam, many changes happened during the Islamic Golden Age. The Greek and Roman traditions were kept and further development took place. The Chinese civilization had a Golden Age during the Tang period, when their capital was the biggest in the world. During the Renaissance, Europe developed and made great advancements in many areas as well.\n\nAsia\n\nMiddle East – Islamic rise, Byzantine decline \n\nIn Arabia, Muhammad founded Islam in 632.  His followers rapidly conquered territories in Syria and Egypt.  They soon were a danger to the Byzantine Empire.  In the 8th and 9th centuries, the Byzantine Empire stopped Islamic expansion and reconquered some lost territories.  In 1000 A.D. the eastern Empire was at its height: Basileios II reconquered Bulgaria and Armenia.  Culture and trade flourished.  In 1071 the Battle of Manzikert led the empire into a dramatic decline.  For the Byzantine Empire this meant centuries of civil wars and Turkic invasions.  The Muslim caliphate had an Golden Age under the Abbasids.\n\nTheir power forced Emperor Alexius I Comnenus of the Byzantine Empire to send a call for help to the West in 1095.  The West sent the Crusades.  These eventually led to the Sack of Constantinople in the Fourth Crusade in 1204.  Because of this, what was left of the Empire broke into successor states.  The winner of these disputes was that of Nicaea.  After Constantinople was again conquered by imperial forces, the empire was little more than a Greek state on the Aegean coast.  The Eastern Empire came to an end when Mehmed II conquered Constantinople on May 29, 1453.  The Ottoman Empire took its place and from 1400 to 1600 was the most powerful empire in the Middle East and ruled at the southern and eastern coast of the Mediterranean Sea.\n\nChina \nThe Tang Dynasty (618–907), with its capital at Chang\'an (today Xi\'an), was the biggest city in the world at the time and is considered by historians as a high point in Chinese civilization as well as a golden age of cosmopolitan culture. The Ming Dynasty ruled from 1368 to 1644. The Ming built a vast army and navy.\n\nIndia \nFrom around the 6th–7th century. In South India, Chola kings ruled Tamil Nadu, and Chera kings ruled Kerala. They had trading relationships with the Roman Empire to the west and Southeast Asia to the east. In north India, Rajputs ruled in many kingdoms.\n\nIn 1336, two brothers named Harihara I and Bukka founded the Vijayanagara Empire in an area which is now in the Karnataka state of India. The most famous king of this empire was Krishnadevaraya. In 1565, rulers of this empire were defeated in a battle. But the empire continued for about the next one hundred years.\nNorthern India was ruled by Islamic sultans.\n\nJapan \nThe Heian Period in Japan is famous for its art, poetry and literature. The writing system, Kana, was developed. It was followed by the feudal period (1185–1853) during which samurai and daimyos were the leading figures and the shogun the real monarch whereas the tennō had only a role as religious head. Between the years 1272 and 1281 the Mongols tried to invade but were driven out by the Japanese.\nIn 1542, a Portuguese ship reached Japan.


key: _node_content
string_value:
{"id_": "565dea88-95ba-4cb4-9171-2d4df31bbf1e", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "57a3fd57-c7a8-43c5-b5b2-817e3f789b93", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "5152f0e13aacb243e88de751d801341bcc7f59e807badb2985802f207e6c0a54", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "503f0ac8-5696-4624-98f0-335570ac0342", "node_type": "1", "metadata": {}, "hash": "94258a44f946d9047f4b57124cc8add1c404ca5b34577ded1da82b1406b7db08", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 71341, "end_char_idx": 74450, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
The Ottoman Empire took its place and from 1400 to 1600 was the most powerful empire in the Middle East and ruled at the southern and eastern coast of the Mediterranean Sea.\n\nChina \nThe Tang Dynasty (618–907), with its capital at Chang\'an (today Xi\'an), was the biggest city in the world at the time and is considered by historians as a high point in Chinese civilization as well as a golden age of cosmopolitan culture. The Ming Dynasty ruled from 1368 to 1644. The Ming built a vast army and navy.\n\nIndia \nFrom around the 6th–7th century. In South India, Chola kings ruled Tamil Nadu, and Chera kings ruled Kerala. They had trading relationships with the Roman Empire to the west and Southeast Asia to the east. In north India, Rajputs ruled in many kingdoms.\n\nIn 1336, two brothers named Harihara I and Bukka founded the Vijayanagara Empire in an area which is now in the Karnataka state of India. The most famous king of this empire was Krishnadevaraya. In 1565, rulers of this empire were defeated in a battle. But the empire continued for about the next one hundred years.\nNorthern India was ruled by Islamic sultans.\n\nJapan \nThe Heian Period in Japan is famous for its art, poetry and literature. The writing system, Kana, was developed. It was followed by the feudal period (1185–1853) during which samurai and daimyos were the leading figures and the shogun the real monarch whereas the tennō had only a role as religious head. Between the years 1272 and 1281 the Mongols tried to invade but were driven out by the Japanese.\nIn 1542, a Portuguese ship reached Japan. Japanese learned about guns and firearms from them.\n\nMongols \nGenghis Khan in 1209 brought together the Mongol tribes and founded the Mongol Empire, one of the largest land empires in history. Later Kublai Khan would go on to expand the empire and found the Mongol-ruled Yuan Dynasty of China. The empire later broke into several empires, all of which were later destroyed.\n\nEuropean Middle Ages \n\nThe Middle Ages was the time from the fall of the Roman empire until the middle of the 15th century. From 500 to about 800 there was some decline compared with the Roman civilization. European villages were often destroyed and looted by barbarians such as the Vikings. During the High Middle Ages magnificent castles and large churches called cathedrals were built and important works of literature were written. In the later Middle Ages, there was a plague called the Black Death. The Black Death killed one-third to one-half of Europe\'s population.\n\nA system called feudalism was a very important part of the Middle Ages. In this system, the king was at the top of the social pyramid. The king gave land to the lord in exchange for loyalty. The lords were the next in the pyramid. The lords gave land (called a fief) to knights in exchange for loyalty and protection. The knights came next in the pyramid. Peasants were not part of the feudal system because they did not give or receive land. They worked on a lord\'s manor in exchange for protection.\n\nThe Crusades were also fought during the Middle Ages.


key: _node_content
string_value:
{"id_": "503f0ac8-5696-4624-98f0-335570ac0342", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "565dea88-95ba-4cb4-9171-2d4df31bbf1e", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "ae96b065146dbc15a2c55650e4481702e42d351572af37632874832e3538b69c", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "65074c67-7aac-4a2a-924d-6d1eb4ee6a83", "node_type": "1", "metadata": {}, "hash": "81202b6f0a80376d3cc4203f71c38c3817f6de409e7efa72bbe0303522441ef9", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 72792, "end_char_idx": 76198, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "65074c67-7aac-4a2a-924d-6d1eb4ee6a83", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "503f0ac8-5696-4624-98f0-335570ac0342", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "ec920df248dfa8083ab0e67d608b1b48b6defe9a7236491ed6042d402686ea3b", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "8e5b638d-ad9e-4fe2-b934-884599897758", "node_type": "1", "metadata": {}, "hash": "77b0ffc91a3532f8c8c026878e93af591ec9e7e441770c11471ffa829061e457", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 74335, "end_char_idx": 77765, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "8e5b638d-ad9e-4fe2-b934-884599897758", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "65074c67-7aac-4a2a-924d-6d1eb4ee6a83", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d40d4cb78ea257815564711130de283bc8d95e34853668854d08a51c3c403afa", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "7749787f-e73a-4141-ad62-49092736cd4f", "node_type": "1", "metadata": {}, "hash": "db035958254acf8d7e9e6422d64a075e7c0ac8769f40b9e12bf5e1ae61da68c4", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 76095, "end_char_idx": 79228, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "7749787f-e73a-4141-ad62-49092736cd4f", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "8e5b638d-ad9e-4fe2-b934-884599897758", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "4e56377e36f6e3225fe3fce1338b517cf07bdb352fce31ace81e9a9057c645d8", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "0a1d6e3e-f5d1-4a4b-a79f-0f75b2925780", "node_type": "1", "metadata": {}, "hash": "5f96904e86ff5e4ac5e803ac3b5c4ea01ec4a639eb7711a28e34d3df2b3ed319", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 77690, "end_char_idx": 80612, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "0a1d6e3e-f5d1-4a4b-a79f-0f75b2925780", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "7749787f-e73a-4141-ad62-49092736cd4f", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "572211a4a682330dec648cc59b91564ac661ed750825cf760ac56b5c574ced90", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "6fd50694-1e22-49b3-a8ee-eeb9d48a8b83", "node_type": "1", "metadata": {}, "hash": "8ef629c6e0f66041ac2a0d88402bfa18c366885cf2e71ffa1523c55d5884c274", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 79020, "end_char_idx": 82133, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
They spoke the Nahuatl language. Their capital was Tenochtitlan. It was built on islands in a lake. Tenochtitlan was one of the greatest cities of the world in that time.\n\nThe Aztecs believed in polytheism. Quetzalcoatl (feathered snake), Huitzilopochtli (hummingbird of the south) and Tezcatlipoca (smoking mirror) were the most important Gods. Sometimes the Aztecs killed humans to please their gods. Between 1519 and 1521 the Spanish leader Hernán Cortés defeated the Aztecs and took their empire. Some Aztecs did not want to fight against the soldiers of Cortés, because they thought they were Gods.\n\nToday many Mexicans have Aztec and other Native American forefathers. People still use Aztec symbols in Mexico. On the Mexican flag there is a picture of an eagle on a cactus with a snake in its mouth. This was an Aztec symbol. Also the name Mexico is an Aztec word.\n\nThe Aztecs ate a lot of plants and vegetables that could be grown easily in the Mexico area. The main food that they ate was corn, which they called maize. Another food that they ate was squash.\n\nAztecs also had a lot of harsh punishments for certain crimes. For the following crimes the punishment was death: adultery, wearing cotton clothes (cotton clothes were only for the nobles), cutting down a living tree, moving a field boundary making your land bigger, making someone else\'s smaller, major theft and treason.\n\nThe Incas \n\nThe Incas were a civilized empire in western South America. The Incas are called a "pre-Columbian" empire. This means that their country was here before Christopher Columbus. They ruled parts of South America around what is now Peru for a little over 100 years, until the Spanish invasion in the 16th century.\n\nThe Incan empire or , meaning four regions in Quechua, only lasted for about 100 years as the arrival of the Spaniards in 1532 conquered them. Their main language was Quechua, but as the Incas were basically made up of many different groups there were probably many other different languages.\n\nTheir capital was in the city of Cusco, or Qosqo, in what is now southern Peru.\n\nManco Capac founded the first Inca state around 1200. It covered the area around Cusco. In the 1400s, Pachacuti began to absorb other people in the Andes. The expansion of the Inca Empire had started. The Inca Empire would become the biggest empire in the Americas before Columbus.\n\nIn 1532, the civil war ended. The brothers Huascar and Atahualpa, fought for who would succeed their father. During this time, the Spanish conquerors took possession of the Inca territory. They were led by Francisco Pizarro. In the following years the conquistadors managed to extend their power over the whole Andean region. They suppressed successive Inca rebellions until the establishment of the Viceroyalty of Perú in 1542 and the fall of the resistance of the last Incas of Vilcabamba in 1572. The Inca civilization ends at that time, but many cultural traditions remain in some ethnic groups as Quechuas and Aymara people.\n\nAfrica \n\nAncient Egypt and Carthage are well known civilizations of ancient Africa.


key: _node_content
string_value:
{"id_": "6fd50694-1e22-49b3-a8ee-eeb9d48a8b83", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "0a1d6e3e-f5d1-4a4b-a79f-0f75b2925780", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "5d22e981b24b850bac154e5005f2f994ef8e9d7a141e06179597529bd2daa69f", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "087c065f-684b-430a-b43d-7dfa199bc4a2", "node_type": "1", "metadata": {}, "hash": "a3d1d8dd052f1df64ad53a1b467ff2c4b774cce2de7275d38129836e33a10df9", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 80498, "end_char_idx": 83827, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "087c065f-684b-430a-b43d-7dfa199bc4a2", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "6fd50694-1e22-49b3-a8ee-eeb9d48a8b83", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "26c8dbcc0bc1af4a5d07977cc644ef6505107801cbac9f0eaea0212fc41c9f80", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "28a708cb-a211-436c-8008-7f7e99f89059", "node_type": "1", "metadata": {}, "hash": "d9a31340c046a4cbfe34004064053c30d375d2f0a18577ac720aa5c639c70f60", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 82134, "end_char_idx": 85597, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "28a708cb-a211-436c-8008-7f7e99f89059", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "087c065f-684b-430a-b43d-7dfa199bc4a2", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "b2fbfe53e0af333a454f5ac39184aa5c10c23fc30b109d140433caa0acd8af7f", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "3a38a5b8-d933-4ccf-8259-70dbd0e5d90f", "node_type": "1", "metadata": {}, "hash": "f7b71ee2ad852ed8159de116fb6c042d6003ad415c8da9b2c5760b31680c4564", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 83827, "end_char_idx": 87123, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "3a38a5b8-d933-4ccf-8259-70dbd0e5d90f", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "28a708cb-a211-436c-8008-7f7e99f89059", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "2a7c453cf312bf14004e3c260e0551078014b64b3ea838429af21eef9981b137", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "0f4cb018-f63e-4d5b-81d2-40e0aa69a445", "node_type": "1", "metadata": {}, "hash": "8966fd7a8c1fb0512a6a85e121b4cf1ad0cd3ba27a1dfe68b9185bf3817f47e7", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 85369, "end_char_idx": 88573, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "0f4cb018-f63e-4d5b-81d2-40e0aa69a445", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "3a38a5b8-d933-4ccf-8259-70dbd0e5d90f", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "70d7bde0b555e13836636c319b6af09821e4381a21435d6ac14e6693ca15a71f", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "6e021be5-ee0b-400b-9b5a-380a1ab53a74", "node_type": "1", "metadata": {}, "hash": "9b354c1cbb852e4b58b9d7ecfb0e2e49f3c9126a6a8213305c5ce35388bfb486", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 87124, "end_char_idx": 90351, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "6e021be5-ee0b-400b-9b5a-380a1ab53a74", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "0f4cb018-f63e-4d5b-81d2-40e0aa69a445", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "6ff100e578986288c799f7b60d1887d26ac199fffcc85a7081bba8e74b85cc28", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "47e2ccc4-5fa2-4b80-868a-d45dbad0965e", "node_type": "1", "metadata": {}, "hash": "ed7fd05c794f6314d4b7f36265218e04fdf300d4b92f755ce282ab397d3d1d1c", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 88703, "end_char_idx": 91905, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "47e2ccc4-5fa2-4b80-868a-d45dbad0965e", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "6e021be5-ee0b-400b-9b5a-380a1ab53a74", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d49ca3198b58ea5bbdd884e2323ae886dbdf7c9c2bb42efcc89dd8c225d52224", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "e18b042b-b7c1-4e9d-b40f-2783fc81bc4d", "node_type": "1", "metadata": {}, "hash": "ade7e1cb6877c44208fe30dc61468d69759a2581cccad98f3dc7fb99a92f012e", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 90258, "end_char_idx": 93509, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "e18b042b-b7c1-4e9d-b40f-2783fc81bc4d", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "47e2ccc4-5fa2-4b80-868a-d45dbad0965e", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "e866c8d6d9252b59eb280d1fe27ff12b9162014d1d855540b9d1198845d4a762", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "5183baa0-d065-4931-8f40-95619c1e3917", "node_type": "1", "metadata": {}, "hash": "e2e848c0dda054ae23d7d701ae2c71dec97193d98ffa3f9ad99058984e0be203", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 91906, "end_char_idx": 95512, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: _node_content
string_value:
{"id_": "5183baa0-d065-4931-8f40-95619c1e3917", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "e18b042b-b7c1-4e9d-b40f-2783fc81bc4d", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "6b9ef9cdcd83ec2e769cc82355cfa09c7980ce094ff41abe944ddaef03f77a27", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "03fbc5e8-162a-4329-838b-38afb6fce013", "node_type": "1", "metadata": {}, "hash": "51a4473c10e1703d9153f40cb37eb6a5f357bb869b19d2270515ba74cb6abc41", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 93510, "end_char_idx": 97037, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
When in 1988/89 Gorbachev made clear that he would not force the countries of the East block to stick to Communism the Berlin Wall was torn down in 1989 and the Soviet Union collapsed (1991). Then the United States was the only superpower left.\n\nAfter Mao Zedong\'s death China\'s communist party proved that economic reform was possible without political freedom and paved the way for enormous economic growth.\n\nAs the 20th century ended, the European Union began to rise and included former satellite states and even parts of the Soviet Union. States in Asia, Africa and South America tried to copy the European Union.\n\nThe twentieth century was a time of great progress in terms of technology. People began to live longer because of better medicine and medical technology. New communications and transportation technologies connected the world. But these advances also helped cause problems with the environment.\n\nThe last half of the century had smaller wars.  Improved information technology and globalization increased trade and cultural exchange.  Space exploration expanded through the solar system.  The structure of DNA was discovered.\n\nThe same period also raised questions about the end of human history because of global dangers: nuclear weapons, greenhouse effect and other problems in the environment.\n\n21st century \n\nAs the 20th century ended, globalization has continued. During this period, communications with mobile phones and the Internet have expanded, which has led to fundamental social changes in corporation, political, and individuals\' personal lives. Due to the population of growth and industrialization, worldwide resource competition is becoming increasingly highly, especially in India, China and Brazil. The increasing demand on the environmental degradation and global warming.\n\nA new Great Recession affected the world in the late 2000s and the early 2010s, and the COVID-19 pandemic spread in 2020, causing further economic and political disruption. Some scientists referred to this as a "Planetary Phase of Civilization".\n\nRelated pages \n History of Africa\n History of America\n History of Asia\n History of Australia\n History of Europe\n History of the Earth\n\nReferences\n\nFurther reading \n \nEnglish translation by Paul G. Bahn from the French edition La Grotte Chauvet\n \n \nTranslation of La Grotte Chauvet, l\'art des origins, Éditions du Seuil, 2001\n\nOther websites \n Universal Concise History of the World, 1832 Full text, free to read, American book on the history of the world with the intriguing perspective of 1832 America.\n WWW-VL: World History at European University Institute\n Five Epochs of Civilization A scheme of organization which divides world history into five epochs marked by changes in communication technology\n World history -Citizendium\n\n+\nFormer good articles', 'vector_id': 11672}}]}}


    /var/folders/vz/v2f6_x6s0kg51j2vbm5rlhww0000gn/T/ipykernel_27262/2105931364.py:1: DeprecationWarning: The 'body' parameter is deprecated and will be removed in a future version. Instead use individual parameters.
      print(client.search(index="wikipedia_vector_index", body={


## Encode a question with OpenAI embedding model

To perform semantic search, we need to encode queries with the same embedding model used to encode the documents at index time.
In this example, we need to use the `text-embedding-3-small` model.

You'll need your OpenAI [API key](https://platform.openai.com/account/api-keys) to generate the embeddings.


key: _node_content
string_value:
{"id_": "03fbc5e8-162a-4329-838b-38afb6fce013", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "5183baa0-d065-4931-8f40-95619c1e3917", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "f5b8a2dc34c2be897c9be3ccef800ac15c9b3817b90a6ba8d682315f199e42d1", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "756ad596-cc2b-4294-9548-c4bed3a875b4", "node_type": "1", "metadata": {}, "hash": "5e4769f35443ab876cfe424f636d215ca397620c45a238af1235c4b683127568", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 95513, "end_char_idx": 98604, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Some scientists referred to this as a "Planetary Phase of Civilization".\n\nRelated pages \n History of Africa\n History of America\n History of Asia\n History of Australia\n History of Europe\n History of the Earth\n\nReferences\n\nFurther reading \n \nEnglish translation by Paul G. Bahn from the French edition La Grotte Chauvet\n \n \nTranslation of La Grotte Chauvet, l\'art des origins, Éditions du Seuil, 2001\n\nOther websites \n Universal Concise History of the World, 1832 Full text, free to read, American book on the history of the world with the intriguing perspective of 1832 America.\n WWW-VL: World History at European University Institute\n Five Epochs of Civilization A scheme of organization which divides world history into five epochs marked by changes in communication technology\n World history -Citizendium\n\n+\nFormer good articles', 'vector_id': 11672}}]}}


    /var/folders/vz/v2f6_x6s0kg51j2vbm5rlhww0000gn/T/ipykernel_27262/2105931364.py:1: DeprecationWarning: The 'body' parameter is deprecated and will be removed in a future version. Instead use individual parameters.
      print(client.search(index="wikipedia_vector_index", body={


## Encode a question with OpenAI embedding model

To perform semantic search, we need to encode queries with the same embedding model used to encode the documents at index time.
In this example, we need to use the `text-embedding-3-small` model.

You'll need your OpenAI [API key](https://platform.openai.com/account/api-keys) to generate the embeddings.


```python
# Get OpenAI API key
OPENAI_API_KEY = getpass("Enter OpenAI API key")

# Set API key
openai.api_key = OPENAI_API_KEY

# Define model
EMBEDDING_MODEL = "text-embedding-3-small"

# Define question
question = 'Is the Atlantic the biggest ocean in the world?'

# Create embedding
question_embedding = openai.Embedding.create(input=question, model=EMBEDDING_MODEL)

```

## Run semantic search queries

Now we're ready to run queries against our Elasticsearch index using our encoded question. We'll be doing a k-nearest neighbors search, using the Elasticsearch [kNN query](https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search.html) option.

First, we define a small function to pretty print the results.


```python
# Function to pretty print Elasticsearch results

def pretty_response(response):
    for hit in response['hits']['hits']:
        id = hit['_id']
        score = hit['_score']
        title = hit['_source']['title']
        text = hit['_source']['text']
        pretty_output = (f"\nID: {id}\nTitle: {title}\nSummary: {text}\nScore: {score}")
        print(pretty_output)
```

Now let's run our `kNN` query.


```python
response = client.search(
  index = "wikipedia_vector_index",
  knn={
      "field": "content_vector",
      "query_vector":  question_embedding["data"][0]["embedding"],
      "k": 10,
      "num_candidates": 100
    }
)
pretty_response(response)
```

    
    ID: 1936
    Title: Atlantic Ocean
    Summary: The Atlantic Ocean is the world's second largest ocean.  It covers a total area of about .


key: _node_content
string_value:
{"id_": "756ad596-cc2b-4294-9548-c4bed3a875b4", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "03fbc5e8-162a-4329-838b-38afb6fce013", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "43b0a7f3f32bb44044883d80a4d6bd30f06313df00cb68a4ddd51eb154cc1807", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "0446c0e3-7e06-4dc5-b061-85c8a7914e5d", "node_type": "1", "metadata": {}, "hash": "2f2564641505934a9d467e0e0ee6d272890f7d36cec384ac92874da5e5c1f52d", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 97040, "end_char_idx": 100309, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
```python
# Get OpenAI API key
OPENAI_API_KEY = getpass("Enter OpenAI API key")

# Set API key
openai.api_key = OPENAI_API_KEY

# Define model
EMBEDDING_MODEL = "text-embedding-3-small"

# Define question
question = 'Is the Atlantic the biggest ocean in the world?'

# Create embedding
question_embedding = openai.Embedding.create(input=question, model=EMBEDDING_MODEL)

```

## Run semantic search queries

Now we're ready to run queries against our Elasticsearch index using our encoded question. We'll be doing a k-nearest neighbors search, using the Elasticsearch [kNN query](https://www.elastic.co/guide/en/elasticsearch/reference/current/knn-search.html) option.

First, we define a small function to pretty print the results.


```python
# Function to pretty print Elasticsearch results

def pretty_response(response):
    for hit in response['hits']['hits']:
        id = hit['_id']
        score = hit['_score']
        title = hit['_source']['title']
        text = hit['_source']['text']
        pretty_output = (f"\nID: {id}\nTitle: {title}\nSummary: {text}\nScore: {score}")
        print(pretty_output)
```

Now let's run our `kNN` query.


```python
response = client.search(
  index = "wikipedia_vector_index",
  knn={
      "field": "content_vector",
      "query_vector":  question_embedding["data"][0]["embedding"],
      "k": 10,
      "num_candidates": 100
    }
)
pretty_response(response)
```

    
    ID: 1936
    Title: Atlantic Ocean
    Summary: The Atlantic Ocean is the world's second largest ocean.  It covers a total area of about . It covers about 20 percent of the Earth's surface. It is named after the god Atlas from Greek mythology.
    
    Geologic history 
    The Atlantic formed when the Americas moved west from Eurasia and Africa. This began sometime in the Cretaceous period, roughly 135 million years ago. It was part of the break-up of the supercontinent Pangaea.
    
    The east coast of South America is shaped somewhat like the west coast of Africa, and this gave a clue that continents moved over long periods of time (continental drift). The Atlantic Ocean is still growing now, because of sea-floor spreading from the mid-Atlantic Ridge, while the Pacific Ocean is said to be shrinking because the sea floor is folding under itself or subducting into the mantle.
    
    Geography
    The Atlantic Ocean is bounded on the west by North and South America. It connects to the Arctic Ocean through the Denmark Strait, Greenland Sea, Norwegian Sea and Barents Sea. It connects with the Mediterranean Sea through the Strait of Gibraltar.
    
    In the southeast, the Atlantic merges into the Indian Ocean. The 20° East meridian defines its border.
    
    In the southwest, the Drake Passage connects it to the Pacific Ocean. The Panama Canal links the Atlantic and Pacific.
    
    The Atlantic Ocean is second in size to the Pacific. It occupies an area of about . The volume of the Atlantic, along with its adjacent seas (the seas next to it), is 354,700,000 cubic kilometres.
    
    The average depth of the Atlantic, along with its adjacent seas, is . The greatest depth is Milwaukee Deep near Puerto Rico, where the Ocean is  deep.
    
    Gulf Stream 
    The Atlantic Ocean has important ocean currents.


key: _node_content
string_value:
{"id_": "0446c0e3-7e06-4dc5-b061-85c8a7914e5d", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "756ad596-cc2b-4294-9548-c4bed3a875b4", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "ba48a28a6b65a0cf9fa43fb941c99f221726ed6037ce0117659a623b9f8e7b96", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "1756d0e0-113e-43b2-87fb-f1bfe3e895d0", "node_type": "1", "metadata": {}, "hash": "904d73e910b86bc53696b281c82c723e3c1f2118e316319897539ce73cfe3ee8", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 98571, "end_char_idx": 102074, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
It covers a total area of about . It covers about 20 percent of the Earth's surface. It is named after the god Atlas from Greek mythology.
    
    Geologic history 
    The Atlantic formed when the Americas moved west from Eurasia and Africa. This began sometime in the Cretaceous period, roughly 135 million years ago. It was part of the break-up of the supercontinent Pangaea.
    
    The east coast of South America is shaped somewhat like the west coast of Africa, and this gave a clue that continents moved over long periods of time (continental drift). The Atlantic Ocean is still growing now, because of sea-floor spreading from the mid-Atlantic Ridge, while the Pacific Ocean is said to be shrinking because the sea floor is folding under itself or subducting into the mantle.
    
    Geography
    The Atlantic Ocean is bounded on the west by North and South America. It connects to the Arctic Ocean through the Denmark Strait, Greenland Sea, Norwegian Sea and Barents Sea. It connects with the Mediterranean Sea through the Strait of Gibraltar.
    
    In the southeast, the Atlantic merges into the Indian Ocean. The 20° East meridian defines its border.
    
    In the southwest, the Drake Passage connects it to the Pacific Ocean. The Panama Canal links the Atlantic and Pacific.
    
    The Atlantic Ocean is second in size to the Pacific. It occupies an area of about . The volume of the Atlantic, along with its adjacent seas (the seas next to it), is 354,700,000 cubic kilometres.
    
    The average depth of the Atlantic, along with its adjacent seas, is . The greatest depth is Milwaukee Deep near Puerto Rico, where the Ocean is  deep.
    
    Gulf Stream 
    The Atlantic Ocean has important ocean currents.  One of these, called the Gulf Stream, flows across the North Atlantic.  Water gets heated by the sun in the Caribbean Sea and then moves northwest toward the North Pole.  This makes France, the British Isles, Iceland, and Norway in Europe much warmer in winter than Newfoundland and Nova Scotia in Canada. Without the Gulf Stream, the climates of northeast Canada and northwest Europe might be the same, because these places are about the same distance from the North Pole.
    
    There are currents in the South Atlantic too, but the shape of this sea means that it has less effect on South Africa.
    
    Geology 
    The main feature of the Atlantic Ocean's seabed is a large underwater mountain chain called the Mid-Atlantic Ridge.  It runs from north to south under the Ocean. This is at the boundary of four tectonic plates: Eurasian, North American, South American and African. The ridge extends from Iceland in the north to about 58° south.
    
    The salinity of the surface waters of the open ocean ranges from 3337 parts per thousand and varies with latitude and season.
    
    References
    
    Other websites 
    LA Times special Altered Oceans 
    Oceanography Image of the Day, from the Woods Hole Oceanographic Institution
    National Oceanic and Atmospheric Administration 
    NOAA In-situ Ocean Data Viewer  Plot and download ocean observations
    
    www.cartage.org.lb 
    www.mnsu.edu
    Score: 0.93642545
    
    ID: 1975
    Title: Pacific Ocean
    Summary: The Pacific Ocean is the body of water between Asia and Australia in the west, the Americas in the east, the Southern Ocean to the south, and the Arctic Ocean to the north. It is the largest named ocean and it covers one-third of the surface of the entire world.


key: _node_content
string_value:
{"id_": "1756d0e0-113e-43b2-87fb-f1bfe3e895d0", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "0446c0e3-7e06-4dc5-b061-85c8a7914e5d", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "2abe98d76dd5bd367dc1ca0277ac61093b982f1af54674973d650cd1f5aac37b", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "d2130903-d320-4679-b86d-252164d00c99", "node_type": "1", "metadata": {}, "hash": "df951f996c309dacaa87c7a2b8a4608f00ab68bfb1348dcd98eab31931794925", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 100244, "end_char_idx": 103693, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
Gulf Stream 
    The Atlantic Ocean has important ocean currents.  One of these, called the Gulf Stream, flows across the North Atlantic.  Water gets heated by the sun in the Caribbean Sea and then moves northwest toward the North Pole.  This makes France, the British Isles, Iceland, and Norway in Europe much warmer in winter than Newfoundland and Nova Scotia in Canada. Without the Gulf Stream, the climates of northeast Canada and northwest Europe might be the same, because these places are about the same distance from the North Pole.
    
    There are currents in the South Atlantic too, but the shape of this sea means that it has less effect on South Africa.
    
    Geology 
    The main feature of the Atlantic Ocean's seabed is a large underwater mountain chain called the Mid-Atlantic Ridge.  It runs from north to south under the Ocean. This is at the boundary of four tectonic plates: Eurasian, North American, South American and African. The ridge extends from Iceland in the north to about 58° south.
    
    The salinity of the surface waters of the open ocean ranges from 3337 parts per thousand and varies with latitude and season.
    
    References
    
    Other websites 
    LA Times special Altered Oceans 
    Oceanography Image of the Day, from the Woods Hole Oceanographic Institution
    National Oceanic and Atmospheric Administration 
    NOAA In-situ Ocean Data Viewer  Plot and download ocean observations
    
    www.cartage.org.lb 
    www.mnsu.edu
    Score: 0.93642545
    
    ID: 1975
    Title: Pacific Ocean
    Summary: The Pacific Ocean is the body of water between Asia and Australia in the west, the Americas in the east, the Southern Ocean to the south, and the Arctic Ocean to the north. It is the largest named ocean and it covers one-third of the surface of the entire world. It joins the Atlantic Ocean at a line drawn  south from Cape Horn, Chile/Argentina to Antarctica, and joins the Indian Ocean at a line drawn  south from Tasmania, Australia to Antarctica.
    
    As the Atlantic slowly gets wider, the Pacific is slowly shrinking. It does this by folding the sea floor in towards the centre of the Earth - this is called subduction.  This bumping and grinding is hard so there are many earthquakes and volcanoes when the pressure builds up and is quickly released as large explosions of hot rocks and dust. When an earthquake happens under the sea, the quick jerk causes a tsunami. This is why tsunamis are more common around the edge of the Pacific than anywhere else. Many of the Earth's volcanoes are either islands in the Pacific, or are on continents within a few hundred kilometers of the ocean's edge. Plate tectonics are another reason which makes Pacific Ocean smaller.
    
    Other websites 
    
     EPIC Pacific Ocean Data Collection Viewable on-line collection of observational data
     NOAA In-situ Ocean Data Viewer  plot and download ocean observations
     NOAA PMEL Argo profiling floats Realtime Pacific Ocean data
     NOAA TAO El Niño data Realtime Pacific Ocean El Niño buoy data
     NOAA Ocean Surface Current Analyses – Realtime (OSCAR) Near-realtime Pacific Ocean Surface Currents derived from satellite altimeter and scatterometer data
    Score: 0.9178456
    
    ID: 11124
    Title: List of seas
    Summary: The sea is the interconnected system of all the Earth's oceanic waters, including the Atlantic, Pacific, Indian, Southern and Arctic Oceans.


key: _node_content
string_value:
{"id_": "d2130903-d320-4679-b86d-252164d00c99", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "1756d0e0-113e-43b2-87fb-f1bfe3e895d0", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "5ee2428f5710c70f874a9ac901836e418efba102e7ed6e558e79fe7c77eb84c5", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "2d00ec78-0485-474f-93b6-906775d6f67d", "node_type": "1", "metadata": {}, "hash": "2cf315ee0a733b3751eaa0364be710d9ff210de1e03066d15bdd37df8f320502", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 101985, "end_char_idx": 104411, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


key: chroma:document
string_value:
It is the largest named ocean and it covers one-third of the surface of the entire world. It joins the Atlantic Ocean at a line drawn  south from Cape Horn, Chile/Argentina to Antarctica, and joins the Indian Ocean at a line drawn  south from Tasmania, Australia to Antarctica.
    
    As the Atlantic slowly gets wider, the Pacific is slowly shrinking. It does this by folding the sea floor in towards the centre of the Earth - this is called subduction.  This bumping and grinding is hard so there are many earthquakes and volcanoes when the pressure builds up and is quickly released as large explosions of hot rocks and dust. When an earthquake happens under the sea, the quick jerk causes a tsunami. This is why tsunamis are more common around the edge of the Pacific than anywhere else. Many of the Earth's volcanoes are either islands in the Pacific, or are on continents within a few hundred kilometers of the ocean's edge. Plate tectonics are another reason which makes Pacific Ocean smaller.
    
    Other websites 
    
     EPIC Pacific Ocean Data Collection Viewable on-line collection of observational data
     NOAA In-situ Ocean Data Viewer  plot and download ocean observations
     NOAA PMEL Argo profiling floats Realtime Pacific Ocean data
     NOAA TAO El Niño data Realtime Pacific Ocean El Niño buoy data
     NOAA Ocean Surface Current Analyses – Realtime (OSCAR) Near-realtime Pacific Ocean Surface Currents derived from satellite altimeter and scatterometer data
    Score: 0.9178456
    
    ID: 11124
    Title: List of seas
    Summary: The sea is the interconnected system of all the Earth's oceanic waters, including the Atlantic, Pacific, Indian, Southern and Arctic Oceans. However, the word "sea" can also be used for many specific, much smaller bodies of seawater, such as the North Sea or the Red Sea.There are 78 seas in the world
    
    List of seas, by ocean
    
    Pacific Ocean 
     Bering Sea
     Gulf of Alaska
     Seck Sea (Gulf of California)
     Sea of Okhotsk
     Sea of Japan
     Seto Inland Sea
     East China Sea
     South China Sea
     Beibu Gulf
     Sulu Sea
     Celebes Sea
     Bohol Sea (Mindanao Sea)
     Philippine Sea
     Flores Sea
     Banda Sea
     Arafura Sea
     Tasman Sea
     Yellow Sea
     Bohai Sea
     Coral Sea
     Gulf of Carpentaria
    
    Atlantic Ocean 
     Hudson Bay
     James Bay
     Baffin Bay init fam
     Gulf of St.


key: _node_content
string_value:
{"id_": "2d00ec78-0485-474f-93b6-906775d6f67d", "embedding": null, "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "excluded_embed_metadata_keys": ["url", "tokens", "retrieve_doc", "source"], "excluded_llm_metadata_keys": ["title", "tokens", "retrieve_doc", "source"], "relationships": {"1": {"node_id": "bca9a32e-2a68-4086-92a6-f8f665c68eb4", "node_type": "4", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "d87607119004b9428a3ad29eef529770faa5b7d1140477aff6167fabb456d032", "class_name": "RelatedNodeInfo"}, "2": {"node_id": "d2130903-d320-4679-b86d-252164d00c99", "node_type": "1", "metadata": {"url": "https://github.com/openai/openai-cookbook/blob/main/examples/vector_databases/elasticsearch/elasticsearch-semantic-search.ipynb", "title": "Semantic search using Elasticsearch and OpenAI", "tokens": 28076, "retrieve_doc": false, "source": "openai_cookbooks"}, "hash": "19ffa9bdaea2a13dafdae3f8ecc5531db55d7e6d4545a563a5e854389d6e3cdd", "class_name": "RelatedNodeInfo"}, "3": {"node_id": "c8836599-fbf4-4c8b-b945-84367cd4a3c7", "node_type": "1", "metadata": {}, "hash": "1c689b87512a50af6cbd0f0c64411e34f3093c36a3ce18972c7eeeebd7325659", "class_name": "RelatedNodeInfo"}}, "text": "", "mimetype": "text/plain", "start_char_idx": 102779, "end_char_idx": 105708, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}


