Spaces:
Runtime error
Runtime error
Muhammad Abdullah
commited on
Commit
·
2e79833
1
Parent(s):
805fd73
adding support for image
Browse files- app.py +91 -17
- initial_index/default__vector_store.json +0 -0
- initial_index/docstore.json +1 -0
- initial_index/graph_store.json +1 -0
- initial_index/image__vector_store.json +1 -0
- initial_index/index_store.json +1 -0
app.py
CHANGED
|
@@ -11,8 +11,32 @@ from llama_index.core import (
|
|
| 11 |
from llama_index.llms.openai import OpenAI
|
| 12 |
from llama_index.core import Settings
|
| 13 |
|
| 14 |
-
from llama_index.core.prompts.prompts import QuestionAnswerPrompt, RefinePrompt
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
# Text QA templates
|
| 18 |
DEFAULT_TEXT_QA_PROMPT_TMPL = (
|
|
@@ -20,10 +44,10 @@ DEFAULT_TEXT_QA_PROMPT_TMPL = (
|
|
| 20 |
"---------------------\n"
|
| 21 |
"{context_str}"
|
| 22 |
"\n---------------------\n"
|
| 23 |
-
"Given the context information
|
| 24 |
"(if you don't know the answer, use the best of your knowledge): {query_str}\n"
|
| 25 |
)
|
| 26 |
-
TEXT_QA_TEMPLATE =
|
| 27 |
|
| 28 |
# Refine templates
|
| 29 |
DEFAULT_REFINE_PROMPT_TMPL = (
|
|
@@ -35,11 +59,38 @@ DEFAULT_REFINE_PROMPT_TMPL = (
|
|
| 35 |
"{context_msg}\n"
|
| 36 |
"------------\n"
|
| 37 |
"Given the new context and using the best of your knowledge, improve the existing answer. "
|
| 38 |
-
"If you can't improve the existing answer, just repeat it again.
|
| 39 |
-
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
)
|
| 42 |
-
DEFAULT_REFINE_PROMPT = RefinePrompt(DEFAULT_REFINE_PROMPT_TMPL)
|
| 43 |
|
| 44 |
|
| 45 |
def get_llm(
|
|
@@ -197,21 +248,44 @@ with upload_tab:
|
|
| 197 |
st.markdown(
|
| 198 |
"Either upload an image/screenshot of a document, or enter the text manually."
|
| 199 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
document_text = st.text_area("Or enter raw text")
|
| 201 |
# TODO remove uploaded_file in docs and update the text
|
| 202 |
-
if st.button("Extract Terms and Definitions") and
|
|
|
|
|
|
|
| 203 |
st.session_state["terms"] = {}
|
| 204 |
terms_docs = {}
|
| 205 |
-
with st.spinner("Extracting..."):
|
| 206 |
-
|
| 207 |
-
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 213 |
)
|
| 214 |
-
)
|
| 215 |
st.session_state["terms"].update(terms_docs)
|
| 216 |
|
| 217 |
if "terms" in st.session_state and st.session_state["terms"]:
|
|
|
|
| 11 |
from llama_index.llms.openai import OpenAI
|
| 12 |
from llama_index.core import Settings
|
| 13 |
|
|
|
|
| 14 |
|
| 15 |
+
from llama_index.core import (
|
| 16 |
+
PromptTemplate,
|
| 17 |
+
SelectorPromptTemplate,
|
| 18 |
+
ChatPromptTemplate,
|
| 19 |
+
SimpleDirectoryReader,
|
| 20 |
+
)
|
| 21 |
+
from llama_index.core.prompts.utils import is_chat_model
|
| 22 |
+
from llama_index.core.llms import ChatMessage, MessageRole
|
| 23 |
+
|
| 24 |
+
from PIL import Image
|
| 25 |
+
from llama_index.readers.file import ImageReader
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
@st.cache_resource
|
| 29 |
+
def get_file_extractor():
|
| 30 |
+
image_parser = ImageReader(keep_image=True, parse_text=True)
|
| 31 |
+
file_extractor = {
|
| 32 |
+
".jpg": image_parser,
|
| 33 |
+
".png": image_parser,
|
| 34 |
+
".jpeg": image_parser,
|
| 35 |
+
}
|
| 36 |
+
return file_extractor
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
file_extractor = get_file_extractor()
|
| 40 |
|
| 41 |
# Text QA templates
|
| 42 |
DEFAULT_TEXT_QA_PROMPT_TMPL = (
|
|
|
|
| 44 |
"---------------------\n"
|
| 45 |
"{context_str}"
|
| 46 |
"\n---------------------\n"
|
| 47 |
+
"Given the context information answer the following question "
|
| 48 |
"(if you don't know the answer, use the best of your knowledge): {query_str}\n"
|
| 49 |
)
|
| 50 |
+
TEXT_QA_TEMPLATE = PromptTemplate(DEFAULT_TEXT_QA_PROMPT_TMPL)
|
| 51 |
|
| 52 |
# Refine templates
|
| 53 |
DEFAULT_REFINE_PROMPT_TMPL = (
|
|
|
|
| 59 |
"{context_msg}\n"
|
| 60 |
"------------\n"
|
| 61 |
"Given the new context and using the best of your knowledge, improve the existing answer. "
|
| 62 |
+
"If you can't improve the existing answer, just repeat it again."
|
| 63 |
+
)
|
| 64 |
+
DEFAULT_REFINE_PROMPT = PromptTemplate(DEFAULT_REFINE_PROMPT_TMPL)
|
| 65 |
+
|
| 66 |
+
CHAT_REFINE_PROMPT_TMPL_MSGS = [
|
| 67 |
+
ChatMessage(content="{query_str}", role=MessageRole.USER),
|
| 68 |
+
ChatMessage(content="{existing_answer}", role=MessageRole.ASSISTANT),
|
| 69 |
+
ChatMessage(
|
| 70 |
+
content="We have the opportunity to refine the above answer "
|
| 71 |
+
"(only if needed) with some more context below.\n"
|
| 72 |
+
"------------\n"
|
| 73 |
+
"{context_msg}\n"
|
| 74 |
+
"------------\n"
|
| 75 |
+
"Given the new context and using the best of your knowledge, improve the existing answer. "
|
| 76 |
+
"If you can't improve the existing answer, just repeat it again.",
|
| 77 |
+
role=MessageRole.USER,
|
| 78 |
+
),
|
| 79 |
+
]
|
| 80 |
+
|
| 81 |
+
CHAT_REFINE_PROMPT = ChatPromptTemplate(CHAT_REFINE_PROMPT_TMPL_MSGS)
|
| 82 |
+
|
| 83 |
+
# refine prompt selector
|
| 84 |
+
REFINE_TEMPLATE = SelectorPromptTemplate(
|
| 85 |
+
default_template=DEFAULT_REFINE_PROMPT,
|
| 86 |
+
conditionals=[(is_chat_model, CHAT_REFINE_PROMPT)],
|
| 87 |
+
)
|
| 88 |
+
DEFAULT_TERM_STR = (
|
| 89 |
+
"Make a list of terms and definitions that are defined in the context, "
|
| 90 |
+
"with one pair on each line. "
|
| 91 |
+
"If a term is missing it's definition, use your best judgment. "
|
| 92 |
+
"Write each line as as follows:\nTerm: <term> Definition: <definition>"
|
| 93 |
)
|
|
|
|
| 94 |
|
| 95 |
|
| 96 |
def get_llm(
|
|
|
|
| 248 |
st.markdown(
|
| 249 |
"Either upload an image/screenshot of a document, or enter the text manually."
|
| 250 |
)
|
| 251 |
+
uploaded_file = st.file_uploader(
|
| 252 |
+
"Upload an image/screenshot of a document:",
|
| 253 |
+
type=["png", "jpg", "jpeg"],
|
| 254 |
+
)
|
| 255 |
document_text = st.text_area("Or enter raw text")
|
| 256 |
# TODO remove uploaded_file in docs and update the text
|
| 257 |
+
if st.button("Extract Terms and Definitions") and (
|
| 258 |
+
document_text or uploaded_file
|
| 259 |
+
):
|
| 260 |
st.session_state["terms"] = {}
|
| 261 |
terms_docs = {}
|
| 262 |
+
with st.spinner("Extracting (images may be slow)..."):
|
| 263 |
+
if document_text:
|
| 264 |
+
terms_docs.update(
|
| 265 |
+
extract_terms(
|
| 266 |
+
[Document(text=document_text)],
|
| 267 |
+
term_extract_str,
|
| 268 |
+
llm_name,
|
| 269 |
+
model_temperature,
|
| 270 |
+
api_key,
|
| 271 |
+
)
|
| 272 |
+
)
|
| 273 |
+
if uploaded_file:
|
| 274 |
+
breakpoint()
|
| 275 |
+
Image.open(uploaded_file).convert("RGB").save("temp.png")
|
| 276 |
+
img_reader = SimpleDirectoryReader(
|
| 277 |
+
input_files=["temp.png"], file_extractor=file_extractor
|
| 278 |
+
)
|
| 279 |
+
img_docs = img_reader.load_data()
|
| 280 |
+
terms_docs.update(
|
| 281 |
+
extract_terms(
|
| 282 |
+
img_docs,
|
| 283 |
+
term_extract_str,
|
| 284 |
+
llm_name,
|
| 285 |
+
model_temperature,
|
| 286 |
+
api_key,
|
| 287 |
+
)
|
| 288 |
)
|
|
|
|
| 289 |
st.session_state["terms"].update(terms_docs)
|
| 290 |
|
| 291 |
if "terms" in st.session_state and st.session_state["terms"]:
|
initial_index/default__vector_store.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
initial_index/docstore.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"docstore/metadata": {"504ab200-fdc0-4734-ac17-3c46cc3b9f18": {"doc_hash": "cb2dbfa27e4c3c8cb6c0401831170c258f205f1ec0d5709d6a47388a4154a460"}, "efc2b7b8-475e-436a-b154-3b658fe74a98": {"doc_hash": "cec5e1d00954359acca5e51df05a3d1c7111d636abe38e79673c757d157b302c"}, "0dd6964e-fdc2-4649-8d25-a6c8cfc3e1f4": {"doc_hash": "4fee8abb3d58d3892d6ca2529c2c9424e4e420a467474ef781af4f7c6fc4f8d7"}, "bad1fb19-2b2b-4fcc-8eec-d72854e1eec2": {"doc_hash": "943adcbdfa7ff31421848efb74ef84ff541b1751a6f37b9f29bc7daaf23c5363"}, "5d139d86-2c6d-4dfd-b1de-08bbfc524442": {"doc_hash": "a6945fc922b538521a26176b55ac6674a3b3b7bd33ed935a9491d3489289f0c2"}, "71ca84e7-c500-4c10-af70-07faf8acb73a": {"doc_hash": "0b04efc9087508afcb421f7468935e5738508caf54393fea3b2f273fed9a5e62"}, "ac699ba8-c4bd-4eaf-8775-7e8accde4c9e": {"doc_hash": "f74a8ec87a4e5a7b7008e656ec1036fbbfbdd33dfaf8689eee9389e80fd05001"}, "cf4c6e27-9d34-4f30-9181-b0d1cd108529": {"doc_hash": "dc0a440bf9675432faaed15ac60b6e0aabd1600c6fef843638bd8f56ec32a80c"}, "7d13428d-30fd-4dac-a3fa-5f58659a5546": {"doc_hash": "33bdfc1695913e8f9fa0b393cd080b5c586e83db438bfeece2aab442306364a7"}, "695ffddc-68f5-4d33-9496-f4eb87deab83": {"doc_hash": "a93f3d59ebad3ebe9295ec2c4f4fee21e4d8590d7da0eeced161fa47a67605d2"}, "863309c0-b1f2-4249-bd0b-185389810d7c": {"doc_hash": "861cbc0a9c2de42a8613160719ba6478fe8a9fcd237e034800ae78cce775c207"}, "36bd10df-bde3-4bc7-93c7-f795fef5e147": {"doc_hash": "df8bfa4611d17dc315cd380f534d18260d04c47b4143bafa165f7b935f101431"}, "8058ae15-a700-48fb-886f-8b3efab2fb83": {"doc_hash": "2ff284c918e63e5098297c20772b7336247ffe817d8423cc126116b78e4126c5"}, "b26481ef-fa9a-4079-a0e6-fc2d81942c1f": {"doc_hash": "a44fa6eb205a98d332351735b7f758188ecb9497f7cfbfbdfea583d92ac60228"}, "43e35f86-e650-4cb9-8b98-45de725141be": {"doc_hash": "2c726cd6337030b85768c150e32ec5f1dafbfd6154855e30be8aa80b77f935d9"}, "1d6bde1c-229f-492d-8840-6c9aabff1dd2": {"doc_hash": "10b86c367accac129dc51a83c08b021add6dbbbac9446fd9c8163c255e22ebfa"}, "337c8578-b31a-4060-86b2-ac14d0b69e18": {"doc_hash": "48ead570c629f846d3358d161900b0547577f0dd808166c5c4b3ca8d06f4628a"}, "337463e3-228e-41ec-adfa-6f929ad040dd": {"doc_hash": "a76d40346c74f07aa3c5523c4178ac5d791b2f7361b6fbd1c1511b30e76ea11d"}, "9ba0ae6d-1e68-49b7-95f7-d68d8e3c751c": {"doc_hash": "76d1350d6deeeab904a3fe950817b76694ca77ca18f193af1a33fa9651a33236"}, "1c1d532c-f963-490e-9ebb-b43c2acd51b6": {"doc_hash": "9b35e52abf787757a751788c3a50b320de4c5b592c8202478128b66128533de8"}, "3bea0d78-3d33-4c59-a011-9a5e8efd672b": {"doc_hash": "025ac4dbb5db9f34da8742dbc9435950d2210b4a366af09db65490bd33c06f52"}, "08cdc58d-cafc-4a69-9877-ce372323e68b": {"doc_hash": "cdd105b771861f1da8aa04815cacc33bb3d0c729e2b47f1f2969bb27c84c6b0a"}, "3903ac14-a8af-4b15-8502-ad0c0309f6d4": {"doc_hash": "325cb9cdc523c48c276f26bc65a5c6a03ba0e7c35f19425b09a72a14a3d4b8a9"}, "afbebd71-369d-4d8e-93db-37327f31d32e": {"doc_hash": "3c5642f8d0066370c083819c4c52ac26587298d6461dd1f4031f73f7996d371d"}, "aa84a833-c6a7-4fe4-bbdf-6342155ba31f": {"doc_hash": "1a8cba4213cb86bf942caf47c25e75603515cd8bab721d5530ac24cdbc3ec020"}, "a28fba4a-332c-40c1-b893-cde5867d2484": {"doc_hash": "1670c761fefee842fd5989c89cd1bb5661242c8b54cc8db85fa5069008a889e7"}, "7bb25c81-7396-49ff-bc79-d83f1782dce0": {"doc_hash": "d5aac8b6372ff0b9770dc6aaae9b171fa66b8b605d54e94c683bf0dcd75d49f3"}, "6f669aae-6158-4022-a4c1-35e6972d3ed5": {"doc_hash": "b1a0ce3d9595e8094f332dd2853c77111031f224fbb6d7327fc651aea4ec65cc"}, "a647368d-3136-4557-b75c-1d0e0bf4776a": {"doc_hash": "1e6ad74ba478dc26994edfdb5089d3218f8360e45465408b0354a4c74023c836"}, "0669c029-2309-4a46-86fa-163d7b11cab3": {"doc_hash": "70a948891a678b2f08bb4960902c586cfd739fedc0276e5b16b5dc2b53fb3700"}, "84c8f4d2-77e8-4078-b036-9e95df75b798": {"doc_hash": "9a6f315ea17db179ad9b747b098b58505cf0fecf90ae9b41f84254c8e9f1e007"}, "9a237778-aded-4555-a877-bdadb35c5447": {"doc_hash": "0f594098f657f50b62e5f6043e73d3390c33d35fbb422017721c45d6499fae40"}, "ee98858a-58de-40f5-89da-9dabade411c7": {"doc_hash": "8a9148541431a12b5c273ad12b87eece46112fbdc3659cf4d72657c3aaa795e0"}, "b58da378-64da-4d78-9f8a-4072a79a00ed": {"doc_hash": "ee1323ebb5dcd997dbe35c2345d3927e15c2f706472f57f3de3f55e4439b1101"}, "c8a0142b-176c-4af3-9851-d8ed05f9a129": {"doc_hash": "cb2dbfa27e4c3c8cb6c0401831170c258f205f1ec0d5709d6a47388a4154a460", "ref_doc_id": "504ab200-fdc0-4734-ac17-3c46cc3b9f18"}, "93b10235-0a79-4343-956f-7f636c7062f4": {"doc_hash": "cec5e1d00954359acca5e51df05a3d1c7111d636abe38e79673c757d157b302c", "ref_doc_id": "efc2b7b8-475e-436a-b154-3b658fe74a98"}, "800ade88-63ef-4e61-9bac-0a2a3aeda4f9": {"doc_hash": "4fee8abb3d58d3892d6ca2529c2c9424e4e420a467474ef781af4f7c6fc4f8d7", "ref_doc_id": "0dd6964e-fdc2-4649-8d25-a6c8cfc3e1f4"}, "004be0d2-f3a6-4a6f-a244-b15b04ed9d2f": {"doc_hash": "943adcbdfa7ff31421848efb74ef84ff541b1751a6f37b9f29bc7daaf23c5363", "ref_doc_id": "bad1fb19-2b2b-4fcc-8eec-d72854e1eec2"}, "38caba6c-f587-49a1-a46f-52c8a4acbb88": {"doc_hash": "a6945fc922b538521a26176b55ac6674a3b3b7bd33ed935a9491d3489289f0c2", "ref_doc_id": "5d139d86-2c6d-4dfd-b1de-08bbfc524442"}, "c53673d2-12b3-439d-b6f7-21d717617b04": {"doc_hash": "0b04efc9087508afcb421f7468935e5738508caf54393fea3b2f273fed9a5e62", "ref_doc_id": "71ca84e7-c500-4c10-af70-07faf8acb73a"}, "0ff708aa-3562-487f-86a1-46da2b1d1eff": {"doc_hash": "f74a8ec87a4e5a7b7008e656ec1036fbbfbdd33dfaf8689eee9389e80fd05001", "ref_doc_id": "ac699ba8-c4bd-4eaf-8775-7e8accde4c9e"}, "31b9fef4-87c8-4387-9f05-f9755b9f4452": {"doc_hash": "dc0a440bf9675432faaed15ac60b6e0aabd1600c6fef843638bd8f56ec32a80c", "ref_doc_id": "cf4c6e27-9d34-4f30-9181-b0d1cd108529"}, "83837780-ad51-41ab-a2e7-c8802d0c566a": {"doc_hash": "33bdfc1695913e8f9fa0b393cd080b5c586e83db438bfeece2aab442306364a7", "ref_doc_id": "7d13428d-30fd-4dac-a3fa-5f58659a5546"}, "d3889c9c-4d8f-4421-8137-a6e367d024db": {"doc_hash": "a93f3d59ebad3ebe9295ec2c4f4fee21e4d8590d7da0eeced161fa47a67605d2", "ref_doc_id": "695ffddc-68f5-4d33-9496-f4eb87deab83"}, "906bbdf3-d9b6-43a2-a20e-4a18ac7c46b5": {"doc_hash": "861cbc0a9c2de42a8613160719ba6478fe8a9fcd237e034800ae78cce775c207", "ref_doc_id": "863309c0-b1f2-4249-bd0b-185389810d7c"}, "fd4b0a2d-780a-4ee8-9da5-4c39ea56fe4a": {"doc_hash": "df8bfa4611d17dc315cd380f534d18260d04c47b4143bafa165f7b935f101431", "ref_doc_id": "36bd10df-bde3-4bc7-93c7-f795fef5e147"}, "1925e7eb-f1e0-4d6b-bc30-5e877d6d93d5": {"doc_hash": "2ff284c918e63e5098297c20772b7336247ffe817d8423cc126116b78e4126c5", "ref_doc_id": "8058ae15-a700-48fb-886f-8b3efab2fb83"}, "33f78a20-0c03-463b-b062-96d89190624d": {"doc_hash": "a44fa6eb205a98d332351735b7f758188ecb9497f7cfbfbdfea583d92ac60228", "ref_doc_id": "b26481ef-fa9a-4079-a0e6-fc2d81942c1f"}, "0d2fd451-1d0b-4d11-9270-0bb0c9a64ac0": {"doc_hash": "2c726cd6337030b85768c150e32ec5f1dafbfd6154855e30be8aa80b77f935d9", "ref_doc_id": "43e35f86-e650-4cb9-8b98-45de725141be"}, "4ecd1b37-7973-4ced-b8cb-2ab4369b88c2": {"doc_hash": "10b86c367accac129dc51a83c08b021add6dbbbac9446fd9c8163c255e22ebfa", "ref_doc_id": "1d6bde1c-229f-492d-8840-6c9aabff1dd2"}, "d1b75dec-505c-44ac-87c7-8768714083cd": {"doc_hash": "48ead570c629f846d3358d161900b0547577f0dd808166c5c4b3ca8d06f4628a", "ref_doc_id": "337c8578-b31a-4060-86b2-ac14d0b69e18"}, "30d7d063-6030-4c10-af9d-e25a852f2937": {"doc_hash": "a76d40346c74f07aa3c5523c4178ac5d791b2f7361b6fbd1c1511b30e76ea11d", "ref_doc_id": "337463e3-228e-41ec-adfa-6f929ad040dd"}, "d82e408f-73eb-4dab-940e-887ca458391e": {"doc_hash": "76d1350d6deeeab904a3fe950817b76694ca77ca18f193af1a33fa9651a33236", "ref_doc_id": "9ba0ae6d-1e68-49b7-95f7-d68d8e3c751c"}, "bf8551cc-4e57-4ff6-8d34-1796348b1702": {"doc_hash": "9b35e52abf787757a751788c3a50b320de4c5b592c8202478128b66128533de8", "ref_doc_id": "1c1d532c-f963-490e-9ebb-b43c2acd51b6"}, "d21b8368-5d57-4bfb-95b0-c2cc1b2b2f87": {"doc_hash": "025ac4dbb5db9f34da8742dbc9435950d2210b4a366af09db65490bd33c06f52", "ref_doc_id": "3bea0d78-3d33-4c59-a011-9a5e8efd672b"}, "b00277f6-eb7c-4fba-b7f9-c612f8da1624": {"doc_hash": "cdd105b771861f1da8aa04815cacc33bb3d0c729e2b47f1f2969bb27c84c6b0a", "ref_doc_id": "08cdc58d-cafc-4a69-9877-ce372323e68b"}, "0ca059dd-b698-470f-ad90-bfee6570f0dd": {"doc_hash": "325cb9cdc523c48c276f26bc65a5c6a03ba0e7c35f19425b09a72a14a3d4b8a9", "ref_doc_id": "3903ac14-a8af-4b15-8502-ad0c0309f6d4"}, "fe8ccd69-ed93-44e0-9782-6ea627799d45": {"doc_hash": "3c5642f8d0066370c083819c4c52ac26587298d6461dd1f4031f73f7996d371d", "ref_doc_id": "afbebd71-369d-4d8e-93db-37327f31d32e"}, "9f9fbc6f-4456-45ef-b4fa-9418ee47257a": {"doc_hash": "1a8cba4213cb86bf942caf47c25e75603515cd8bab721d5530ac24cdbc3ec020", "ref_doc_id": "aa84a833-c6a7-4fe4-bbdf-6342155ba31f"}, "d931e1b0-4927-4427-9191-2880ca37ea43": {"doc_hash": "1670c761fefee842fd5989c89cd1bb5661242c8b54cc8db85fa5069008a889e7", "ref_doc_id": "a28fba4a-332c-40c1-b893-cde5867d2484"}, "6276e076-361b-49ad-b408-6f18a0985117": {"doc_hash": "d5aac8b6372ff0b9770dc6aaae9b171fa66b8b605d54e94c683bf0dcd75d49f3", "ref_doc_id": "7bb25c81-7396-49ff-bc79-d83f1782dce0"}, "38d7ec66-1859-4328-b63c-8c96a5930b22": {"doc_hash": "b1a0ce3d9595e8094f332dd2853c77111031f224fbb6d7327fc651aea4ec65cc", "ref_doc_id": "6f669aae-6158-4022-a4c1-35e6972d3ed5"}, "4390e0fb-109f-498e-bf1e-0cc8fc6850c0": {"doc_hash": "1e6ad74ba478dc26994edfdb5089d3218f8360e45465408b0354a4c74023c836", "ref_doc_id": "a647368d-3136-4557-b75c-1d0e0bf4776a"}, "6eb011e8-2a46-472b-9ae4-1cfd1ec4f740": {"doc_hash": "70a948891a678b2f08bb4960902c586cfd739fedc0276e5b16b5dc2b53fb3700", "ref_doc_id": "0669c029-2309-4a46-86fa-163d7b11cab3"}, "0d2f0a78-23c9-40a2-a0f6-d1801564bd37": {"doc_hash": "9a6f315ea17db179ad9b747b098b58505cf0fecf90ae9b41f84254c8e9f1e007", "ref_doc_id": "84c8f4d2-77e8-4078-b036-9e95df75b798"}, "0414d37e-aa50-44c8-953d-ed6c2ab88f5f": {"doc_hash": "0f594098f657f50b62e5f6043e73d3390c33d35fbb422017721c45d6499fae40", "ref_doc_id": "9a237778-aded-4555-a877-bdadb35c5447"}, "befcc2a7-e87b-433d-a7d0-c3bd03c47862": {"doc_hash": "8a9148541431a12b5c273ad12b87eece46112fbdc3659cf4d72657c3aaa795e0", "ref_doc_id": "ee98858a-58de-40f5-89da-9dabade411c7"}, "79c77ddd-5e43-4ef3-ab84-ddad28794a9d": {"doc_hash": "ee1323ebb5dcd997dbe35c2345d3927e15c2f706472f57f3de3f55e4439b1101", "ref_doc_id": "b58da378-64da-4d78-9f8a-4072a79a00ed"}}, "docstore/data": {"c8a0142b-176c-4af3-9851-d8ed05f9a129": {"__data__": {"id_": "c8a0142b-176c-4af3-9851-d8ed05f9a129", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "504ab200-fdc0-4734-ac17-3c46cc3b9f18", "node_type": "4", "metadata": {}, "hash": "cb2dbfa27e4c3c8cb6c0401831170c258f205f1ec0d5709d6a47388a4154a460", "class_name": "RelatedNodeInfo"}}, "text": "New York City : The most populous city in the United States, located at the southern tip of New York State, and the largest metropolitan area in the U.S. by both population and urban area.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 188, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "93b10235-0a79-4343-956f-7f636c7062f4": {"__data__": {"id_": "93b10235-0a79-4343-956f-7f636c7062f4", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "efc2b7b8-475e-436a-b154-3b658fe74a98", "node_type": "4", "metadata": {}, "hash": "cec5e1d00954359acca5e51df05a3d1c7111d636abe38e79673c757d157b302c", "class_name": "RelatedNodeInfo"}}, "text": "boroughs : Five administrative divisions of New York City, each coextensive with a respective county of the state of New York: Brooklyn, Queens, Manhattan, The Bronx, and Staten Island.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 185, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "800ade88-63ef-4e61-9bac-0a2a3aeda4f9": {"__data__": {"id_": "800ade88-63ef-4e61-9bac-0a2a3aeda4f9", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "0dd6964e-fdc2-4649-8d25-a6c8cfc3e1f4", "node_type": "4", "metadata": {}, "hash": "4fee8abb3d58d3892d6ca2529c2c9424e4e420a467474ef781af4f7c6fc4f8d7", "class_name": "RelatedNodeInfo"}}, "text": "metropolitan statistical area : A geographical region with a relatively high population density at its core and close economic ties throughout the area.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 152, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "004be0d2-f3a6-4a6f-a244-b15b04ed9d2f": {"__data__": {"id_": "004be0d2-f3a6-4a6f-a244-b15b04ed9d2f", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "bad1fb19-2b2b-4fcc-8eec-d72854e1eec2", "node_type": "4", "metadata": {}, "hash": "943adcbdfa7ff31421848efb74ef84ff541b1751a6f37b9f29bc7daaf23c5363", "class_name": "RelatedNodeInfo"}}, "text": "combined statistical area : A combination of adjacent metropolitan and micropolitan statistical areas in the United States and Puerto Rico that can demonstrate economic or social linkage.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 187, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "38caba6c-f587-49a1-a46f-52c8a4acbb88": {"__data__": {"id_": "38caba6c-f587-49a1-a46f-52c8a4acbb88", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "5d139d86-2c6d-4dfd-b1de-08bbfc524442", "node_type": "4", "metadata": {}, "hash": "a6945fc922b538521a26176b55ac6674a3b3b7bd33ed935a9491d3489289f0c2", "class_name": "RelatedNodeInfo"}}, "text": "megacities : A city with a population of over 10 million people.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 64, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "c53673d2-12b3-439d-b6f7-21d717617b04": {"__data__": {"id_": "c53673d2-12b3-439d-b6f7-21d717617b04", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "71ca84e7-c500-4c10-af70-07faf8acb73a", "node_type": "4", "metadata": {}, "hash": "0b04efc9087508afcb421f7468935e5738508caf54393fea3b2f273fed9a5e62", "class_name": "RelatedNodeInfo"}}, "text": "United Nations : An intergovernmental organization that aims to maintain international peace and security, develop friendly relations among nations, achieve international cooperation, and be a center for harmonizing the actions of nations.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 239, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "0ff708aa-3562-487f-86a1-46da2b1d1eff": {"__data__": {"id_": "0ff708aa-3562-487f-86a1-46da2b1d1eff", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "ac699ba8-c4bd-4eaf-8775-7e8accde4c9e", "node_type": "4", "metadata": {}, "hash": "f74a8ec87a4e5a7b7008e656ec1036fbbfbdd33dfaf8689eee9389e80fd05001", "class_name": "RelatedNodeInfo"}}, "text": "Pulitzer Prizes : A series of annual awards for achievements in journalism, literature, and musical composition in the United States.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 133, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "31b9fef4-87c8-4387-9f05-f9755b9f4452": {"__data__": {"id_": "31b9fef4-87c8-4387-9f05-f9755b9f4452", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "cf4c6e27-9d34-4f30-9181-b0d1cd108529", "node_type": "4", "metadata": {}, "hash": "dc0a440bf9675432faaed15ac60b6e0aabd1600c6fef843638bd8f56ec32a80c", "class_name": "RelatedNodeInfo"}}, "text": "Times Square : A major commercial and tourist destination in Manhattan, New York City.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 86, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "83837780-ad51-41ab-a2e7-c8802d0c566a": {"__data__": {"id_": "83837780-ad51-41ab-a2e7-c8802d0c566a", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "7d13428d-30fd-4dac-a3fa-5f58659a5546", "node_type": "4", "metadata": {}, "hash": "33bdfc1695913e8f9fa0b393cd080b5c586e83db438bfeece2aab442306364a7", "class_name": "RelatedNodeInfo"}}, "text": "New Netherland : A Dutch colony in North America that existed from 1614 until 1664.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 83, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "d3889c9c-4d8f-4421-8137-a6e367d024db": {"__data__": {"id_": "d3889c9c-4d8f-4421-8137-a6e367d024db", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "695ffddc-68f5-4d33-9496-f4eb87deab83", "node_type": "4", "metadata": {}, "hash": "a93f3d59ebad3ebe9295ec2c4f4fee21e4d8590d7da0eeced161fa47a67605d2", "class_name": "RelatedNodeInfo"}}, "text": "Dutch West India Company : A Dutch trading company that operated as a monopoly in New Netherland from 1621 until 1639-1640.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 123, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "906bbdf3-d9b6-43a2-a20e-4a18ac7c46b5": {"__data__": {"id_": "906bbdf3-d9b6-43a2-a20e-4a18ac7c46b5", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "863309c0-b1f2-4249-bd0b-185389810d7c", "node_type": "4", "metadata": {}, "hash": "861cbc0a9c2de42a8613160719ba6478fe8a9fcd237e034800ae78cce775c207", "class_name": "RelatedNodeInfo"}}, "text": "patroon system : A system instituted by the Dutch to attract settlers to New Netherland, whereby wealthy Dutchmen who brought 50 colonists would be awarded land and local political autonomy.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 190, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "fd4b0a2d-780a-4ee8-9da5-4c39ea56fe4a": {"__data__": {"id_": "fd4b0a2d-780a-4ee8-9da5-4c39ea56fe4a", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "36bd10df-bde3-4bc7-93c7-f795fef5e147", "node_type": "4", "metadata": {}, "hash": "df8bfa4611d17dc315cd380f534d18260d04c47b4143bafa165f7b935f101431", "class_name": "RelatedNodeInfo"}}, "text": "Peter Stuyvesant : The last Director-General of New Netherland, who served from 1647 until 1664.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 96, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "1925e7eb-f1e0-4d6b-bc30-5e877d6d93d5": {"__data__": {"id_": "1925e7eb-f1e0-4d6b-bc30-5e877d6d93d5", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "8058ae15-a700-48fb-886f-8b3efab2fb83", "node_type": "4", "metadata": {}, "hash": "2ff284c918e63e5098297c20772b7336247ffe817d8423cc126116b78e4126c5", "class_name": "RelatedNodeInfo"}}, "text": "Treaty of Breda : A treaty signed in 1667 between the Dutch and English that resulted in the Dutch keeping Suriname and the English keeping New Amsterdam (which was renamed New York).", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 183, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "33f78a20-0c03-463b-b062-96d89190624d": {"__data__": {"id_": "33f78a20-0c03-463b-b062-96d89190624d", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "b26481ef-fa9a-4079-a0e6-fc2d81942c1f", "node_type": "4", "metadata": {}, "hash": "a44fa6eb205a98d332351735b7f758188ecb9497f7cfbfbdfea583d92ac60228", "class_name": "RelatedNodeInfo"}}, "text": "African Burying Ground : A cemetery discovered in Foley Square in the 1990s that included 10,000 to 20,000 graves of colonial-era Africans, some enslaved and some free.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 168, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "0d2fd451-1d0b-4d11-9270-0bb0c9a64ac0": {"__data__": {"id_": "0d2fd451-1d0b-4d11-9270-0bb0c9a64ac0", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "43e35f86-e650-4cb9-8b98-45de725141be", "node_type": "4", "metadata": {}, "hash": "2c726cd6337030b85768c150e32ec5f1dafbfd6154855e30be8aa80b77f935d9", "class_name": "RelatedNodeInfo"}}, "text": "Stamp Act Congress : A meeting held in New York in 1765 in response to the Stamp Act, which imposed taxes on printed materials in the American colonies.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 152, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "4ecd1b37-7973-4ced-b8cb-2ab4369b88c2": {"__data__": {"id_": "4ecd1b37-7973-4ced-b8cb-2ab4369b88c2", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "1d6bde1c-229f-492d-8840-6c9aabff1dd2", "node_type": "4", "metadata": {}, "hash": "10b86c367accac129dc51a83c08b021add6dbbbac9446fd9c8163c255e22ebfa", "class_name": "RelatedNodeInfo"}}, "text": "Battle of Long Island : The largest battle of the American Revolutionary War, fought on August 27, 1776, in Brooklyn, New York City.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 132, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "d1b75dec-505c-44ac-87c7-8768714083cd": {"__data__": {"id_": "d1b75dec-505c-44ac-87c7-8768714083cd", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "337c8578-b31a-4060-86b2-ac14d0b69e18", "node_type": "4", "metadata": {}, "hash": "48ead570c629f846d3358d161900b0547577f0dd808166c5c4b3ca8d06f4628a", "class_name": "RelatedNodeInfo"}}, "text": "New York Police Department : The police force of New York City.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 63, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "30d7d063-6030-4c10-af9d-e25a852f2937": {"__data__": {"id_": "30d7d063-6030-4c10-af9d-e25a852f2937", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "337463e3-228e-41ec-adfa-6f929ad040dd", "node_type": "4", "metadata": {}, "hash": "a76d40346c74f07aa3c5523c4178ac5d791b2f7361b6fbd1c1511b30e76ea11d", "class_name": "RelatedNodeInfo"}}, "text": "Irish immigrants : People who immigrated to the United States from Ireland.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 75, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "d82e408f-73eb-4dab-940e-887ca458391e": {"__data__": {"id_": "d82e408f-73eb-4dab-940e-887ca458391e", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "9ba0ae6d-1e68-49b7-95f7-d68d8e3c751c", "node_type": "4", "metadata": {}, "hash": "76d1350d6deeeab904a3fe950817b76694ca77ca18f193af1a33fa9651a33236", "class_name": "RelatedNodeInfo"}}, "text": "lynched : To kill someone, especially by hanging, without a legal trial.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 72, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "bf8551cc-4e57-4ff6-8d34-1796348b1702": {"__data__": {"id_": "bf8551cc-4e57-4ff6-8d34-1796348b1702", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "1c1d532c-f963-490e-9ebb-b43c2acd51b6", "node_type": "4", "metadata": {}, "hash": "9b35e52abf787757a751788c3a50b320de4c5b592c8202478128b66128533de8", "class_name": "RelatedNodeInfo"}}, "text": "civil unrest : A situation in which people in a country are angry and likely to protest or fight.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 97, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "d21b8368-5d57-4bfb-95b0-c2cc1b2b2f87": {"__data__": {"id_": "d21b8368-5d57-4bfb-95b0-c2cc1b2b2f87", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "3bea0d78-3d33-4c59-a011-9a5e8efd672b", "node_type": "4", "metadata": {}, "hash": "025ac4dbb5db9f34da8742dbc9435950d2210b4a366af09db65490bd33c06f52", "class_name": "RelatedNodeInfo"}}, "text": "megacity : A very large city, typically one with a population of over ten million people.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 89, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "b00277f6-eb7c-4fba-b7f9-c612f8da1624": {"__data__": {"id_": "b00277f6-eb7c-4fba-b7f9-c612f8da1624", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "08cdc58d-cafc-4a69-9877-ce372323e68b", "node_type": "4", "metadata": {}, "hash": "cdd105b771861f1da8aa04815cacc33bb3d0c729e2b47f1f2969bb27c84c6b0a", "class_name": "RelatedNodeInfo"}}, "text": "World Trade Center : A complex of buildings in Lower Manhattan, New York City, that were destroyed in the September 11 attacks.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 127, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "0ca059dd-b698-470f-ad90-bfee6570f0dd": {"__data__": {"id_": "0ca059dd-b698-470f-ad90-bfee6570f0dd", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "3903ac14-a8af-4b15-8502-ad0c0309f6d4", "node_type": "4", "metadata": {}, "hash": "325cb9cdc523c48c276f26bc65a5c6a03ba0e7c35f19425b09a72a14a3d4b8a9", "class_name": "RelatedNodeInfo"}}, "text": "COVID-19 : A highly infectious respiratory illness caused by the SARS-CoV-2 virus.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 82, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "fe8ccd69-ed93-44e0-9782-6ea627799d45": {"__data__": {"id_": "fe8ccd69-ed93-44e0-9782-6ea627799d45", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "afbebd71-369d-4d8e-93db-37327f31d32e", "node_type": "4", "metadata": {}, "hash": "3c5642f8d0066370c083819c4c52ac26587298d6461dd1f4031f73f7996d371d", "class_name": "RelatedNodeInfo"}}, "text": "monkeypox outbreak : An outbreak of a viral disease similar to smallpox, which occurred in the LGBT community in New York City in 2022.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 135, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "9f9fbc6f-4456-45ef-b4fa-9418ee47257a": {"__data__": {"id_": "9f9fbc6f-4456-45ef-b4fa-9418ee47257a", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "aa84a833-c6a7-4fe4-bbdf-6342155ba31f", "node_type": "4", "metadata": {}, "hash": "1a8cba4213cb86bf942caf47c25e75603515cd8bab721d5530ac24cdbc3ec020", "class_name": "RelatedNodeInfo"}}, "text": "Hudson River : A river in the northeastern United States, flowing from the Adirondack Mountains in New York into the Atlantic Ocean.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 132, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "d931e1b0-4927-4427-9191-2880ca37ea43": {"__data__": {"id_": "d931e1b0-4927-4427-9191-2880ca37ea43", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "a28fba4a-332c-40c1-b893-cde5867d2484", "node_type": "4", "metadata": {}, "hash": "1670c761fefee842fd5989c89cd1bb5661242c8b54cc8db85fa5069008a889e7", "class_name": "RelatedNodeInfo"}}, "text": "estuary : A partly enclosed coastal body of brackish water with one or more rivers or streams flowing into it, and with a free connection to the open sea.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 154, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "6276e076-361b-49ad-b408-6f18a0985117": {"__data__": {"id_": "6276e076-361b-49ad-b408-6f18a0985117", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "7bb25c81-7396-49ff-bc79-d83f1782dce0", "node_type": "4", "metadata": {}, "hash": "d5aac8b6372ff0b9770dc6aaae9b171fa66b8b605d54e94c683bf0dcd75d49f3", "class_name": "RelatedNodeInfo"}}, "text": "East River : A tidal strait in New York City.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 45, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "38d7ec66-1859-4328-b63c-8c96a5930b22": {"__data__": {"id_": "38d7ec66-1859-4328-b63c-8c96a5930b22", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "6f669aae-6158-4022-a4c1-35e6972d3ed5", "node_type": "4", "metadata": {}, "hash": "b1a0ce3d9595e8094f332dd2853c77111031f224fbb6d7327fc651aea4ec65cc", "class_name": "RelatedNodeInfo"}}, "text": "Five Boroughs : Refers to the five counties that make up New York City: Bronx, Brooklyn, Manhattan, Queens, and Staten Island.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 126, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "4390e0fb-109f-498e-bf1e-0cc8fc6850c0": {"__data__": {"id_": "4390e0fb-109f-498e-bf1e-0cc8fc6850c0", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "a647368d-3136-4557-b75c-1d0e0bf4776a", "node_type": "4", "metadata": {}, "hash": "1e6ad74ba478dc26994edfdb5089d3218f8360e45465408b0354a4c74023c836", "class_name": "RelatedNodeInfo"}}, "text": "Staten Island : The most suburban of the five boroughs, located southwest of Manhattan and connected to it by the free Staten Island Ferry.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 139, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "6eb011e8-2a46-472b-9ae4-1cfd1ec4f740": {"__data__": {"id_": "6eb011e8-2a46-472b-9ae4-1cfd1ec4f740", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "0669c029-2309-4a46-86fa-163d7b11cab3", "node_type": "4", "metadata": {}, "hash": "70a948891a678b2f08bb4960902c586cfd739fedc0276e5b16b5dc2b53fb3700", "class_name": "RelatedNodeInfo"}}, "text": "Todt Hill : The highest point on the eastern seaboard south of Maine, located on Staten Island.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 95, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "0d2f0a78-23c9-40a2-a0f6-d1801564bd37": {"__data__": {"id_": "0d2f0a78-23c9-40a2-a0f6-d1801564bd37", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "84c8f4d2-77e8-4078-b036-9e95df75b798", "node_type": "4", "metadata": {}, "hash": "9a6f315ea17db179ad9b747b098b58505cf0fecf90ae9b41f84254c8e9f1e007", "class_name": "RelatedNodeInfo"}}, "text": "Manhattan : The geographically smallest and most densely populated borough of New York City, known for its skyscrapers, Central Park, and cultural, administrative, and financial centers.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 186, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "0414d37e-aa50-44c8-953d-ed6c2ab88f5f": {"__data__": {"id_": "0414d37e-aa50-44c8-953d-ed6c2ab88f5f", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "9a237778-aded-4555-a877-bdadb35c5447", "node_type": "4", "metadata": {}, "hash": "0f594098f657f50b62e5f6043e73d3390c33d35fbb422017721c45d6499fae40", "class_name": "RelatedNodeInfo"}}, "text": "Brooklyn : The most populous borough of New York City, located on the western tip of Long Island and known for its cultural diversity, independent art scene, and distinctive neighborhoods.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 188, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "befcc2a7-e87b-433d-a7d0-c3bd03c47862": {"__data__": {"id_": "befcc2a7-e87b-433d-a7d0-c3bd03c47862", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "ee98858a-58de-40f5-89da-9dabade411c7", "node_type": "4", "metadata": {}, "hash": "8a9148541431a12b5c273ad12b87eece46112fbdc3659cf4d72657c3aaa795e0", "class_name": "RelatedNodeInfo"}}, "text": "Queens : The largest borough of New York City, located on Long Island north and east of Brooklyn, and known for its ethnic diversity, commercial and residential prominence, and hosting of the annual U.S. Open tennis tournament.", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 227, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}, "79c77ddd-5e43-4ef3-ab84-ddad28794a9d": {"__data__": {"id_": "79c77ddd-5e43-4ef3-ab84-ddad28794a9d", "embedding": null, "metadata": {}, "excluded_embed_metadata_keys": [], "excluded_llm_metadata_keys": [], "relationships": {"1": {"node_id": "b58da378-64da-4d78-9f8a-4072a79a00ed", "node_type": "4", "metadata": {}, "hash": "ee1323ebb5dcd997dbe35c2345d3927e15c2f706472f57f3de3f55e4439b1101", "class_name": "RelatedNodeInfo"}}, "text": "The Bronx : The northernmost borough of New York", "mimetype": "text/plain", "start_char_idx": 0, "end_char_idx": 48, "text_template": "{metadata_str}\n\n{content}", "metadata_template": "{key}: {value}", "metadata_seperator": "\n", "class_name": "TextNode"}, "__type__": "1"}}, "docstore/ref_doc_info": {"504ab200-fdc0-4734-ac17-3c46cc3b9f18": {"node_ids": ["c8a0142b-176c-4af3-9851-d8ed05f9a129"], "metadata": {}}, "efc2b7b8-475e-436a-b154-3b658fe74a98": {"node_ids": ["93b10235-0a79-4343-956f-7f636c7062f4"], "metadata": {}}, "0dd6964e-fdc2-4649-8d25-a6c8cfc3e1f4": {"node_ids": ["800ade88-63ef-4e61-9bac-0a2a3aeda4f9"], "metadata": {}}, "bad1fb19-2b2b-4fcc-8eec-d72854e1eec2": {"node_ids": ["004be0d2-f3a6-4a6f-a244-b15b04ed9d2f"], "metadata": {}}, "5d139d86-2c6d-4dfd-b1de-08bbfc524442": {"node_ids": ["38caba6c-f587-49a1-a46f-52c8a4acbb88"], "metadata": {}}, "71ca84e7-c500-4c10-af70-07faf8acb73a": {"node_ids": ["c53673d2-12b3-439d-b6f7-21d717617b04"], "metadata": {}}, "ac699ba8-c4bd-4eaf-8775-7e8accde4c9e": {"node_ids": ["0ff708aa-3562-487f-86a1-46da2b1d1eff"], "metadata": {}}, "cf4c6e27-9d34-4f30-9181-b0d1cd108529": {"node_ids": ["31b9fef4-87c8-4387-9f05-f9755b9f4452"], "metadata": {}}, "7d13428d-30fd-4dac-a3fa-5f58659a5546": {"node_ids": ["83837780-ad51-41ab-a2e7-c8802d0c566a"], "metadata": {}}, "695ffddc-68f5-4d33-9496-f4eb87deab83": {"node_ids": ["d3889c9c-4d8f-4421-8137-a6e367d024db"], "metadata": {}}, "863309c0-b1f2-4249-bd0b-185389810d7c": {"node_ids": ["906bbdf3-d9b6-43a2-a20e-4a18ac7c46b5"], "metadata": {}}, "36bd10df-bde3-4bc7-93c7-f795fef5e147": {"node_ids": ["fd4b0a2d-780a-4ee8-9da5-4c39ea56fe4a"], "metadata": {}}, "8058ae15-a700-48fb-886f-8b3efab2fb83": {"node_ids": ["1925e7eb-f1e0-4d6b-bc30-5e877d6d93d5"], "metadata": {}}, "b26481ef-fa9a-4079-a0e6-fc2d81942c1f": {"node_ids": ["33f78a20-0c03-463b-b062-96d89190624d"], "metadata": {}}, "43e35f86-e650-4cb9-8b98-45de725141be": {"node_ids": ["0d2fd451-1d0b-4d11-9270-0bb0c9a64ac0"], "metadata": {}}, "1d6bde1c-229f-492d-8840-6c9aabff1dd2": {"node_ids": ["4ecd1b37-7973-4ced-b8cb-2ab4369b88c2"], "metadata": {}}, "337c8578-b31a-4060-86b2-ac14d0b69e18": {"node_ids": ["d1b75dec-505c-44ac-87c7-8768714083cd"], "metadata": {}}, "337463e3-228e-41ec-adfa-6f929ad040dd": {"node_ids": ["30d7d063-6030-4c10-af9d-e25a852f2937"], "metadata": {}}, "9ba0ae6d-1e68-49b7-95f7-d68d8e3c751c": {"node_ids": ["d82e408f-73eb-4dab-940e-887ca458391e"], "metadata": {}}, "1c1d532c-f963-490e-9ebb-b43c2acd51b6": {"node_ids": ["bf8551cc-4e57-4ff6-8d34-1796348b1702"], "metadata": {}}, "3bea0d78-3d33-4c59-a011-9a5e8efd672b": {"node_ids": ["d21b8368-5d57-4bfb-95b0-c2cc1b2b2f87"], "metadata": {}}, "08cdc58d-cafc-4a69-9877-ce372323e68b": {"node_ids": ["b00277f6-eb7c-4fba-b7f9-c612f8da1624"], "metadata": {}}, "3903ac14-a8af-4b15-8502-ad0c0309f6d4": {"node_ids": ["0ca059dd-b698-470f-ad90-bfee6570f0dd"], "metadata": {}}, "afbebd71-369d-4d8e-93db-37327f31d32e": {"node_ids": ["fe8ccd69-ed93-44e0-9782-6ea627799d45"], "metadata": {}}, "aa84a833-c6a7-4fe4-bbdf-6342155ba31f": {"node_ids": ["9f9fbc6f-4456-45ef-b4fa-9418ee47257a"], "metadata": {}}, "a28fba4a-332c-40c1-b893-cde5867d2484": {"node_ids": ["d931e1b0-4927-4427-9191-2880ca37ea43"], "metadata": {}}, "7bb25c81-7396-49ff-bc79-d83f1782dce0": {"node_ids": ["6276e076-361b-49ad-b408-6f18a0985117"], "metadata": {}}, "6f669aae-6158-4022-a4c1-35e6972d3ed5": {"node_ids": ["38d7ec66-1859-4328-b63c-8c96a5930b22"], "metadata": {}}, "a647368d-3136-4557-b75c-1d0e0bf4776a": {"node_ids": ["4390e0fb-109f-498e-bf1e-0cc8fc6850c0"], "metadata": {}}, "0669c029-2309-4a46-86fa-163d7b11cab3": {"node_ids": ["6eb011e8-2a46-472b-9ae4-1cfd1ec4f740"], "metadata": {}}, "84c8f4d2-77e8-4078-b036-9e95df75b798": {"node_ids": ["0d2f0a78-23c9-40a2-a0f6-d1801564bd37"], "metadata": {}}, "9a237778-aded-4555-a877-bdadb35c5447": {"node_ids": ["0414d37e-aa50-44c8-953d-ed6c2ab88f5f"], "metadata": {}}, "ee98858a-58de-40f5-89da-9dabade411c7": {"node_ids": ["befcc2a7-e87b-433d-a7d0-c3bd03c47862"], "metadata": {}}, "b58da378-64da-4d78-9f8a-4072a79a00ed": {"node_ids": ["79c77ddd-5e43-4ef3-ab84-ddad28794a9d"], "metadata": {}}}}
|
initial_index/graph_store.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"graph_dict": {}}
|
initial_index/image__vector_store.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"embedding_dict": {}, "text_id_to_ref_doc_id": {}, "metadata_dict": {}}
|
initial_index/index_store.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"index_store/data": {"72622bfe-1826-458c-9064-5703e0c28fe7": {"__type__": "vector_store", "__data__": "{\"index_id\": \"72622bfe-1826-458c-9064-5703e0c28fe7\", \"summary\": null, \"nodes_dict\": {\"c8a0142b-176c-4af3-9851-d8ed05f9a129\": \"c8a0142b-176c-4af3-9851-d8ed05f9a129\", \"93b10235-0a79-4343-956f-7f636c7062f4\": \"93b10235-0a79-4343-956f-7f636c7062f4\", \"800ade88-63ef-4e61-9bac-0a2a3aeda4f9\": \"800ade88-63ef-4e61-9bac-0a2a3aeda4f9\", \"004be0d2-f3a6-4a6f-a244-b15b04ed9d2f\": \"004be0d2-f3a6-4a6f-a244-b15b04ed9d2f\", \"38caba6c-f587-49a1-a46f-52c8a4acbb88\": \"38caba6c-f587-49a1-a46f-52c8a4acbb88\", \"c53673d2-12b3-439d-b6f7-21d717617b04\": \"c53673d2-12b3-439d-b6f7-21d717617b04\", \"0ff708aa-3562-487f-86a1-46da2b1d1eff\": \"0ff708aa-3562-487f-86a1-46da2b1d1eff\", \"31b9fef4-87c8-4387-9f05-f9755b9f4452\": \"31b9fef4-87c8-4387-9f05-f9755b9f4452\", \"83837780-ad51-41ab-a2e7-c8802d0c566a\": \"83837780-ad51-41ab-a2e7-c8802d0c566a\", \"d3889c9c-4d8f-4421-8137-a6e367d024db\": \"d3889c9c-4d8f-4421-8137-a6e367d024db\", \"906bbdf3-d9b6-43a2-a20e-4a18ac7c46b5\": \"906bbdf3-d9b6-43a2-a20e-4a18ac7c46b5\", \"fd4b0a2d-780a-4ee8-9da5-4c39ea56fe4a\": \"fd4b0a2d-780a-4ee8-9da5-4c39ea56fe4a\", \"1925e7eb-f1e0-4d6b-bc30-5e877d6d93d5\": \"1925e7eb-f1e0-4d6b-bc30-5e877d6d93d5\", \"33f78a20-0c03-463b-b062-96d89190624d\": \"33f78a20-0c03-463b-b062-96d89190624d\", \"0d2fd451-1d0b-4d11-9270-0bb0c9a64ac0\": \"0d2fd451-1d0b-4d11-9270-0bb0c9a64ac0\", \"4ecd1b37-7973-4ced-b8cb-2ab4369b88c2\": \"4ecd1b37-7973-4ced-b8cb-2ab4369b88c2\", \"d1b75dec-505c-44ac-87c7-8768714083cd\": \"d1b75dec-505c-44ac-87c7-8768714083cd\", \"30d7d063-6030-4c10-af9d-e25a852f2937\": \"30d7d063-6030-4c10-af9d-e25a852f2937\", \"d82e408f-73eb-4dab-940e-887ca458391e\": \"d82e408f-73eb-4dab-940e-887ca458391e\", \"bf8551cc-4e57-4ff6-8d34-1796348b1702\": \"bf8551cc-4e57-4ff6-8d34-1796348b1702\", \"d21b8368-5d57-4bfb-95b0-c2cc1b2b2f87\": \"d21b8368-5d57-4bfb-95b0-c2cc1b2b2f87\", \"b00277f6-eb7c-4fba-b7f9-c612f8da1624\": \"b00277f6-eb7c-4fba-b7f9-c612f8da1624\", \"0ca059dd-b698-470f-ad90-bfee6570f0dd\": \"0ca059dd-b698-470f-ad90-bfee6570f0dd\", \"fe8ccd69-ed93-44e0-9782-6ea627799d45\": \"fe8ccd69-ed93-44e0-9782-6ea627799d45\", \"9f9fbc6f-4456-45ef-b4fa-9418ee47257a\": \"9f9fbc6f-4456-45ef-b4fa-9418ee47257a\", \"d931e1b0-4927-4427-9191-2880ca37ea43\": \"d931e1b0-4927-4427-9191-2880ca37ea43\", \"6276e076-361b-49ad-b408-6f18a0985117\": \"6276e076-361b-49ad-b408-6f18a0985117\", \"38d7ec66-1859-4328-b63c-8c96a5930b22\": \"38d7ec66-1859-4328-b63c-8c96a5930b22\", \"4390e0fb-109f-498e-bf1e-0cc8fc6850c0\": \"4390e0fb-109f-498e-bf1e-0cc8fc6850c0\", \"6eb011e8-2a46-472b-9ae4-1cfd1ec4f740\": \"6eb011e8-2a46-472b-9ae4-1cfd1ec4f740\", \"0d2f0a78-23c9-40a2-a0f6-d1801564bd37\": \"0d2f0a78-23c9-40a2-a0f6-d1801564bd37\", \"0414d37e-aa50-44c8-953d-ed6c2ab88f5f\": \"0414d37e-aa50-44c8-953d-ed6c2ab88f5f\", \"befcc2a7-e87b-433d-a7d0-c3bd03c47862\": \"befcc2a7-e87b-433d-a7d0-c3bd03c47862\", \"79c77ddd-5e43-4ef3-ab84-ddad28794a9d\": \"79c77ddd-5e43-4ef3-ab84-ddad28794a9d\"}, \"doc_id_dict\": {}, \"embeddings_dict\": {}}"}}}
|