diff --git a/examples_notebooks/drift_search/index.html b/examples_notebooks/drift_search/index.html index 68b45d30..7034711e 100644 --- a/examples_notebooks/drift_search/index.html +++ b/examples_notebooks/drift_search/index.html @@ -2176,8 +2176,8 @@ Text unit records: 5 -
---------------------------------------------------------------------------- -ValidationError Traceback (most recent call last) -Cell In[3], line 5 - 2 llm_model = os.environ["GRAPHRAG_LLM_MODEL"] - 3 embedding_model = os.environ["GRAPHRAG_EMBEDDING_MODEL"] -----> 5 chat_config = LanguageModelConfig( - 6 api_key=api_key, - 7 type=ModelType.OpenAIChat, - 8 model=llm_model, - 9 max_retries=20, - 10 ) - 11 chat_model = ModelManager().get_or_create_chat_model( - 12 name="local_search", - 13 model_type=ModelType.OpenAIChat, - 14 config=chat_config, - 15 ) - 17 token_encoder = tiktoken.encoding_for_model(llm_model) - -File ~/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/pydantic/main.py:214, in BaseModel.__init__(self, **data) - 212 # `__tracebackhide__` tells pytest and some other tools to omit this function from tracebacks - 213 __tracebackhide__ = True ---> 214 validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) - 215 if self is not validated_self: - 216 warnings.warn( - 217 'A custom validator is returning a value other than `self`.\n' - 218 "Returning anything other than `self` from a top level model validator isn't supported when validating via `__init__`.\n" - 219 'See the `model_validator` docs (https://docs.pydantic.dev/latest/concepts/validators/#model-validators) for more details.', - 220 stacklevel=2, - 221 ) - -ValidationError: 1 validation error for LanguageModelConfig - Value error, API Key is required for ModelType.OpenAIChat when using api_key authentication. Please rerun `graphrag init` and set the API_KEY. [type=value_error, input_value={'api_key': '', 'type': "...-4o', 'max_retries': 20}, input_type=dict] - For further information visit https://errors.pydantic.dev/2.10/v/value_error-
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[5], line 11 - 1 drift_params = DRIFTSearchConfig( - 2 temperature=0, - 3 max_tokens=12_000, - (...) - 7 n=1, - 8 ) - 10 context_builder = DRIFTSearchContextBuilder( ----> 11 model=chat_model, - 12 text_embedder=text_embedder, - 13 entities=entities, - 14 relationships=relationships, - 15 reports=reports, - 16 entity_text_embeddings=description_embedding_store, - 17 text_units=text_units, - 18 token_encoder=token_encoder, - 19 config=drift_params, - 20 ) - 22 search = DRIFTSearch( - 23 model=chat_model, context_builder=context_builder, token_encoder=token_encoder - 24 ) - -NameError: name 'chat_model' is not defined-
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[6], line 1 -----> 1 resp = await search.search("Who is agent Mercer?") - -NameError: name 'search' is not defined+
0%| | 0/1 [00:00<?, ?it/s]+
100%|██████████| 1/1 [00:12<00:00, 12.57s/it]+
+
+
0%| | 0/3 [00:00<?, ?it/s]+
33%|███▎ | 1/3 [00:14<00:29, 14.67s/it]+
67%|██████▋ | 2/3 [00:18<00:08, 8.46s/it]+
+
+
0%| | 0/3 [00:00<?, ?it/s]+
33%|███▎ | 1/3 [00:10<00:21, 10.91s/it]+
67%|██████▋ | 2/3 [00:11<00:04, 4.96s/it]+
100%|██████████| 3/3 [00:14<00:00, 3.79s/it]+
+
+
0%| | 0/3 [00:00<?, ?it/s]+
33%|███▎ | 1/3 [00:08<00:16, 8.49s/it]+
67%|██████▋ | 2/3 [00:09<00:03, 4.00s/it]+
100%|██████████| 3/3 [00:09<00:00, 2.23s/it]+
+
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[7], line 1 -----> 1 resp.response - -NameError: name 'resp' is not defined+
"Agent Alex Mercer is a pivotal figure within the Paranormal Military Squad, playing a crucial role in Operation: Dulce, which involves exploring and investigating the Dulce base rumored to house advanced alien technology. Mercer is recognized for his leadership qualities and serves as a mentor to fellow agent Sam Rivera, emphasizing intuition and trust in navigating the mission's uncertainties [Data: Reports (0, 1)].\n\nMercer's leadership style is collaborative and supportive, fostering open communication and valuing team members' insights and instincts. This approach helps build camaraderie and mutual respect within the team [Data: Reports (1)]. He works closely with other key team members, such as Dr. Jordan Hayes, who provides expertise in alien technology, and Taylor Cruz, whose authoritative leadership style contrasts with Mercer's more intuitive approach [Data: Reports (0, 1)].\n\nOverall, Mercer's ability to foster trust and intuition among his team members, coupled with his collaborative efforts, highlights his significance in the mission to explore and understand the Dulce base and its alien technology [Data: Reports (0)]."
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[8], line 1 -----> 1 print(resp.context_data) ++{"How does Alex Mercer's leadership style differ from Taylor Cruz's?": {'reports': id title \ +0 1 Paranormal Military Squad and Operation: Dulce -NameError: name 'resp' is not defined+ content +0 # Paranormal Military Squad and Operation: Dul... , 'entities': Empty DataFrame +Columns: [in_context] +Index: [], 'sources': id text +0 0 # Operation: Dulce\n\n## Chapter 1\n\nThe thru... +1 2 differently than praise from others. This was... +2 3 contrast to the rigid silence enveloping the ... +3 1 , the hollow echo of the bay a stark reminder ... +4 4 a mask of duty.\n\nIn the midst of the descen...}, 'What is the significance of the Dulce base in Operation: Dulce?': {'reports': id title \ +0 1 Paranormal Military Squad and Operation: Dulce + + content +0 # Paranormal Military Squad and Operation: Dul... , 'entities': Empty DataFrame +Columns: [in_context] +Index: [], 'sources': id text +0 2 differently than praise from others. This was... +1 3 contrast to the rigid silence enveloping the ... +2 0 # Operation: Dulce\n\n## Chapter 1\n\nThe thru... +3 4 a mask of duty.\n\nIn the midst of the descen... +4 1 , the hollow echo of the bay a stark reminder ...}, "How does Sam Rivera benefit from Alex Mercer's mentorship?": {'reports': id title \ +0 1 Paranormal Military Squad and Operation: Dulce + + content +0 # Paranormal Military Squad and Operation: Dul... , 'entities': Empty DataFrame +Columns: [in_context] +Index: [], 'sources': id text +0 3 contrast to the rigid silence enveloping the ... +1 0 # Operation: Dulce\n\n## Chapter 1\n\nThe thru... +2 1 , the hollow echo of the bay a stark reminder ... +3 2 differently than praise from others. This was... +4 4 a mask of duty.\n\nIn the midst of the descen...}, 'What are the key challenges faced by the Paranormal Military Squad in Operation: Dulce?': {'reports': id title \ +0 1 Paranormal Military Squad and Operation: Dulce + + content +0 # Paranormal Military Squad and Operation: Dul... , 'entities': Empty DataFrame +Columns: [in_context] +Index: [], 'sources': id text +0 2 differently than praise from others. This was... +1 3 contrast to the rigid silence enveloping the ... +2 0 # Operation: Dulce\n\n## Chapter 1\n\nThe thru... +3 4 a mask of duty.\n\nIn the midst of the descen... +4 1 , the hollow echo of the bay a stark reminder ...}, 'What challenges does Sam Rivera face during Operation: Dulce?': {'reports': id title \ +0 1 Paranormal Military Squad and Operation: Dulce + + content +0 # Paranormal Military Squad and Operation: Dul... , 'entities': Empty DataFrame +Columns: [in_context] +Index: [], 'sources': id text +0 0 # Operation: Dulce\n\n## Chapter 1\n\nThe thru... +1 2 differently than praise from others. This was... +2 1 , the hollow echo of the bay a stark reminder ... +3 3 contrast to the rigid silence enveloping the ... +4 4 a mask of duty.\n\nIn the midst of the descen...}, 'What specific role does Alex Mercer play in overcoming these challenges?': {'reports': id title \ +0 1 Paranormal Military Squad and Operation: Dulce + + content +0 # Paranormal Military Squad and Operation: Dul... , 'entities': Empty DataFrame +Columns: [in_context] +Index: [], 'sources': id text +0 3 contrast to the rigid silence enveloping the ... +1 0 # Operation: Dulce\n\n## Chapter 1\n\nThe thru... +2 1 , the hollow echo of the bay a stark reminder ... +3 2 differently than praise from others. This was... +4 4 a mask of duty.\n\nIn the midst of the descen...}, "What specific instances demonstrate Alex Mercer's mentorship approach?": {'reports': id title \ +0 1 Paranormal Military Squad and Operation: Dulce + + content +0 # Paranormal Military Squad and Operation: Dul... , 'entities': Empty DataFrame +Columns: [in_context] +Index: [], 'sources': id text +0 3 contrast to the rigid silence enveloping the ... +1 0 # Operation: Dulce\n\n## Chapter 1\n\nThe thru... +2 1 , the hollow echo of the bay a stark reminder ... +3 2 differently than praise from others. This was... +4 4 a mask of duty.\n\nIn the midst of the descen...}, "In what ways do Alex Mercer's and Taylor Cruz's leadership styles complement each other?": {'reports': id title \ +0 1 Paranormal Military Squad and Operation: Dulce + + content +0 # Paranormal Military Squad and Operation: Dul... , 'entities': Empty DataFrame +Columns: [in_context] +Index: [], 'sources': id text +0 0 # Operation: Dulce\n\n## Chapter 1\n\nThe thru... +1 2 differently than praise from others. This was... +2 3 contrast to the rigid silence enveloping the ... +3 1 , the hollow echo of the bay a stark reminder ... +4 4 a mask of duty.\n\nIn the midst of the descen...}, 'What specific protocols does Taylor Cruz emphasize during Operation: Dulce?': {'reports': id title \ +0 1 Paranormal Military Squad and Operation: Dulce + + content +0 # Paranormal Military Squad and Operation: Dul... , 'entities': Empty DataFrame +Columns: [in_context] +Index: [], 'sources': id text +0 2 differently than praise from others. This was... +1 3 contrast to the rigid silence enveloping the ... +2 0 # Operation: Dulce\n\n## Chapter 1\n\nThe thru... +3 4 a mask of duty.\n\nIn the midst of the descen... +4 1 , the hollow echo of the bay a stark reminder ...}} +
---------------------------------------------------------------------------- -ValidationError Traceback (most recent call last) -Cell In[3], line 4 - 1 api_key = os.environ["GRAPHRAG_API_KEY"] - 2 llm_model = os.environ["GRAPHRAG_LLM_MODEL"] -----> 4 config = LanguageModelConfig( - 5 api_key=api_key, - 6 type=ModelType.OpenAIChat, - 7 model=llm_model, - 8 max_retries=20, - 9 ) - 10 model = ModelManager().get_or_create_chat_model( - 11 name="global_search", - 12 model_type=ModelType.OpenAIChat, - 13 config=config, - 14 ) - 16 token_encoder = tiktoken.encoding_for_model(llm_model) - -File ~/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/pydantic/main.py:214, in BaseModel.__init__(self, **data) - 212 # `__tracebackhide__` tells pytest and some other tools to omit this function from tracebacks - 213 __tracebackhide__ = True ---> 214 validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) - 215 if self is not validated_self: - 216 warnings.warn( - 217 'A custom validator is returning a value other than `self`.\n' - 218 "Returning anything other than `self` from a top level model validator isn't supported when validating via `__init__`.\n" - 219 'See the `model_validator` docs (https://docs.pydantic.dev/latest/concepts/validators/#model-validators) for more details.', - 220 stacklevel=2, - 221 ) - -ValidationError: 1 validation error for LanguageModelConfig - Value error, API Key is required for ModelType.OpenAIChat when using api_key authentication. Please rerun `graphrag init` and set the API_KEY. [type=value_error, input_value={'api_key': '', 'type': "...-4o', 'max_retries': 20}, input_type=dict] - For further information visit https://errors.pydantic.dev/2.10/v/value_error-
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[6], line 5 - 1 context_builder = GlobalCommunityContext( - 2 community_reports=reports, - 3 communities=communities, - 4 entities=entities, # default to None if you don't want to use community weights for ranking -----> 5 token_encoder=token_encoder, - 6 ) - -NameError: name 'token_encoder' is not defined-
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[8], line 2 - 1 search_engine = GlobalSearch( -----> 2 model=model, - 3 context_builder=context_builder, - 4 token_encoder=token_encoder, - 5 max_data_tokens=12_000, # change this based on the token limit you have on your model (if you are using a model with 8k limit, a good setting could be 5000) - 6 map_llm_params=map_llm_params, - 7 reduce_llm_params=reduce_llm_params, - 8 allow_general_knowledge=False, # set this to True will add instruction to encourage the LLM to incorporate general knowledge in the response, which may increase hallucinations, but could be useful in some use cases. - 9 json_mode=True, # set this to False if your LLM model does not support JSON mode. - 10 context_builder_params=context_builder_params, - 11 concurrent_coroutines=32, - 12 response_type="multiple paragraphs", # free form text describing the response type and format, can be anything, e.g. prioritized list, single paragraph, multiple paragraphs, multiple-page report - 13 ) - -NameError: name 'model' is not defined-
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[9], line 1 -----> 1 result = await search_engine.search("What is operation dulce?") - 3 print(result.response) ++### Overview of Operation: Dulce -NameError: name 'search_engine' is not defined+Operation: Dulce is a significant mission undertaken by the Paranormal Military Squad, an elite group tasked with investigating alien technology and its implications for humanity. The operation focuses on the exploration and uncovering of secrets within the Dulce base, which is central to the mission's objectives [Data: Reports (0)]. + +### Key Elements and Objectives + +The Dulce base is associated with advanced alien technology, making it a crucial element in the mission. The exploration of this base is vital for the success of Operation: Dulce, as it involves navigating its depths to uncover potentially groundbreaking information [Data: Reports (1)]. + +### Team and Motivation + +The mission is executed by key agents including Alex Mercer, Taylor Cruz, Jordan Hayes, and Sam Rivera, each playing significant roles in the operation. A strong sense of duty motivates these individuals, driving them to undertake the complexities and challenges presented by the Dulce base [Data: Reports (1, 0)]. +
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[10], line 2 - 1 # inspect the data used to build the context for the LLM responses -----> 2 result.context_data["reports"] ++Out[10]:+++ ++ +
++ + + ++ id +title +occurrence weight +content +rank ++ +0 +1 +Paranormal Military Squad and Operation: Dulce +1.0 +# Paranormal Military Squad and Operation: Dul... +8.5 ++ + +1 +0 +Operation: Dulce and Dulce Base Exploration +1.0 +# Operation: Dulce and Dulce Base Exploration\... +8.5 +
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[11], line 3 - 1 # inspect number of LLM calls and tokens - 2 print( -----> 3 f"LLM calls: {result.llm_calls}. Prompt tokens: {result.prompt_tokens}. Output tokens: {result.output_tokens}." - 4 ) - -NameError: name 'result' is not defined+
LLM calls: 2. Prompt tokens: 3378. Output tokens: 475. +
---------------------------------------------------------------------------- -ValidationError Traceback (most recent call last) -Cell In[3], line 4 - 1 api_key = os.environ["GRAPHRAG_API_KEY"] - 2 llm_model = os.environ["GRAPHRAG_LLM_MODEL"] -----> 4 config = LanguageModelConfig( - 5 api_key=api_key, - 6 type=ModelType.OpenAIChat, - 7 model=llm_model, - 8 max_retries=20, - 9 ) - 10 model = ModelManager().get_or_create_chat_model( - 11 name="global_search", - 12 model_type=ModelType.OpenAIChat, - 13 config=config, - 14 ) - 16 token_encoder = tiktoken.encoding_for_model(llm_model) - -File ~/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/pydantic/main.py:214, in BaseModel.__init__(self, **data) - 212 # `__tracebackhide__` tells pytest and some other tools to omit this function from tracebacks - 213 __tracebackhide__ = True ---> 214 validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) - 215 if self is not validated_self: - 216 warnings.warn( - 217 'A custom validator is returning a value other than `self`.\n' - 218 "Returning anything other than `self` from a top level model validator isn't supported when validating via `__init__`.\n" - 219 'See the `model_validator` docs (https://docs.pydantic.dev/latest/concepts/validators/#model-validators) for more details.', - 220 stacklevel=2, - 221 ) - -ValidationError: 1 validation error for LanguageModelConfig - Value error, API Key is required for ModelType.OpenAIChat when using api_key authentication. Please rerun `graphrag init` and set the API_KEY. [type=value_error, input_value={'api_key': '', 'type': "...-4o', 'max_retries': 20}, input_type=dict] - For further information visit https://errors.pydantic.dev/2.10/v/value_error-
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[6], line 5 - 1 context_builder = GlobalCommunityContext( - 2 community_reports=reports, - 3 communities=communities, - 4 entities=entities, # default to None if you don't want to use community weights for ranking -----> 5 token_encoder=token_encoder, - 6 dynamic_community_selection=True, - 7 dynamic_community_selection_kwargs={ - 8 "model": model, - 9 "token_encoder": token_encoder, - 10 }, - 11 ) - -NameError: name 'token_encoder' is not defined-
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[8], line 2 - 1 search_engine = GlobalSearch( -----> 2 model=model, - 3 context_builder=context_builder, - 4 token_encoder=token_encoder, - 5 max_data_tokens=12_000, # change this based on the token limit you have on your model (if you are using a model with 8k limit, a good setting could be 5000) - 6 map_llm_params=map_llm_params, - 7 reduce_llm_params=reduce_llm_params, - 8 allow_general_knowledge=False, # set this to True will add instruction to encourage the LLM to incorporate general knowledge in the response, which may increase hallucinations, but could be useful in some use cases. - 9 json_mode=True, # set this to False if your LLM model does not support JSON mode. - 10 context_builder_params=context_builder_params, - 11 concurrent_coroutines=32, - 12 response_type="multiple paragraphs", # free form text describing the response type and format, can be anything, e.g. prioritized list, single paragraph, multiple paragraphs, multiple-page report - 13 ) - -NameError: name 'model' is not defined-
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[9], line 1 -----> 1 result = await search_engine.search("What is operation dulce?") - 3 print(result.response) ++### Overview of Operation: Dulce -NameError: name 'search_engine' is not defined+Operation: Dulce is a significant mission undertaken by the Paranormal Military Squad, an elite group tasked with investigating alien technology and its implications for humanity. The operation focuses on the exploration and uncovering of secrets within the Dulce base, which is central to the mission's objectives [Data: Reports (0)]. + +### Key Elements and Objectives + +The Dulce base is associated with advanced alien technology, making it a crucial element in the mission. The exploration of this base is vital for the success of Operation: Dulce, as it involves navigating its depths to uncover hidden technologies and secrets that may have profound implications for humanity [Data: Reports (1)]. + +### Team and Motivation + +The mission is executed by key agents of the Paranormal Military Squad, including Alex Mercer, Taylor Cruz, Jordan Hayes, and Sam Rivera. Each of these agents plays a significant role in the operation, driven by a strong sense of duty to navigate the complexities of the Dulce base and achieve the mission's objectives [Data: Reports (1, 0)]. +
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[10], line 2 - 1 # inspect the data used to build the context for the LLM responses -----> 2 result.context_data["reports"] ++Out[10]:+++ ++ +
++ + + ++ id +title +occurrence weight +content +rank ++ +0 +1 +Paranormal Military Squad and Operation: Dulce +1.0 +# Paranormal Military Squad and Operation: Dul... +8.5 ++ + +1 +0 +Operation: Dulce and Dulce Base Exploration +1.0 +# Operation: Dulce and Dulce Base Exploration\... +8.5 +
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[11], line 2 - 1 # inspect number of LLM calls and tokens in dynamic community selection -----> 2 llm_calls = result.llm_calls_categories["build_context"] - 3 prompt_tokens = result.prompt_tokens_categories["build_context"] - 4 output_tokens = result.output_tokens_categories["build_context"] - -NameError: name 'result' is not defined+
Build context (gpt-4o) +LLM calls: 2. Prompt tokens: 1761. Output tokens: 208. +Map-reduce (gpt-4o) +LLM calls: 2. Prompt tokens: 3378. Output tokens: 493. +
---------------------------------------------------------------------------- -ValidationError Traceback (most recent call last) -Cell In[9], line 9 - 6 llm_model = os.environ["GRAPHRAG_LLM_MODEL"] - 7 embedding_model = os.environ["GRAPHRAG_EMBEDDING_MODEL"] -----> 9 chat_config = LanguageModelConfig( - 10 api_key=api_key, - 11 type=ModelType.OpenAIChat, - 12 model=llm_model, - 13 max_retries=20, - 14 ) - 15 chat_model = ModelManager().get_or_create_chat_model( - 16 name="local_search", - 17 model_type=ModelType.OpenAIChat, - 18 config=chat_config, - 19 ) - 21 token_encoder = tiktoken.encoding_for_model(llm_model) - -File ~/.cache/pypoetry/virtualenvs/graphrag-F2jvqev7-py3.11/lib/python3.11/site-packages/pydantic/main.py:214, in BaseModel.__init__(self, **data) - 212 # `__tracebackhide__` tells pytest and some other tools to omit this function from tracebacks - 213 __tracebackhide__ = True ---> 214 validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) - 215 if self is not validated_self: - 216 warnings.warn( - 217 'A custom validator is returning a value other than `self`.\n' - 218 "Returning anything other than `self` from a top level model validator isn't supported when validating via `__init__`.\n" - 219 'See the `model_validator` docs (https://docs.pydantic.dev/latest/concepts/validators/#model-validators) for more details.', - 220 stacklevel=2, - 221 ) - -ValidationError: 1 validation error for LanguageModelConfig - Value error, API Key is required for ModelType.OpenAIChat when using api_key authentication. Please rerun `graphrag init` and set the API_KEY. [type=value_error, input_value={'api_key': '', 'type': "...-4o', 'max_retries': 20}, input_type=dict] - For further information visit https://errors.pydantic.dev/2.10/v/value_error-
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[10], line 10 - 1 context_builder = LocalSearchMixedContext( - 2 community_reports=reports, - 3 text_units=text_units, - 4 entities=entities, - 5 relationships=relationships, - 6 # if you did not run covariates during indexing, set this to None - 7 covariates=covariates, - 8 entity_text_embeddings=description_embedding_store, - 9 embedding_vectorstore_key=EntityVectorStoreKey.ID, # if the vectorstore uses entity title as ids, set this to EntityVectorStoreKey.TITLE ----> 10 text_embedder=text_embedder, - 11 token_encoder=token_encoder, - 12 ) - -NameError: name 'text_embedder' is not defined-
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[12], line 2 - 1 search_engine = LocalSearch( -----> 2 model=chat_model, - 3 context_builder=context_builder, - 4 token_encoder=token_encoder, - 5 model_params=model_params, - 6 context_builder_params=local_context_params, - 7 response_type="multiple paragraphs", # free form text describing the response type and format, can be anything, e.g. prioritized list, single paragraph, multiple paragraphs, multiple-page report - 8 ) - -NameError: name 'chat_model' is not defined-
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[13], line 1 -----> 1 result = await search_engine.search("Tell me about Agent Mercer") - 2 print(result.response) ++### Overview of Agent Alex Mercer -NameError: name 'search_engine' is not defined+Agent Alex Mercer is a prominent member of the Paranormal Military Squad, an elite group tasked with executing Operation: Dulce. He plays a crucial role in the mission, providing guidance and emphasizing the importance of intuition and trust among his team members. Mercer's leadership and mentorship are particularly significant, as he serves as a mentor to Sam Rivera, offering valuable support and leadership [Data: Reports (1); Entities (0); Relationships (2, 15)]. + +### Role in Operation: Dulce + +In Operation: Dulce, Alex Mercer is one of the agents exploring the Dulce base, a mysterious and secretive location associated with advanced alien technology. His involvement in the mission is critical, as he is responsible for leading the team into the Dulce base and navigating its complexities. Mercer's leadership is characterized by a balance between compliance with protocols and a natural inclination to question and explore all details, which sometimes leads to internal conflict [Data: Reports (1); Entities (0, 8); Relationships (23, 4); Claims (3, 5)]. + +### Relationships and Interactions + +Agent Mercer maintains professional relationships with other key members of the Paranormal Military Squad, including Taylor Cruz, Jordan Hayes, and Sam Rivera. His relationship with Taylor Cruz is primarily professional, with Mercer acknowledging Cruz's authority while also experiencing a competitive undercurrent due to Cruz's authoritative nature. With Jordan Hayes, Mercer shares a mutual respect and understanding, particularly admiring each other's expertise and analytical abilities. His mentorship of Sam Rivera highlights his role as a guiding figure within the team [Data: Reports (1); Entities (0, 1, 2, 3); Relationships (0, 1, 2, 15)]. + +### Leadership and Mentorship + +Alex Mercer's leadership style is marked by his emphasis on intuition and trust, which he believes are essential for the success of their mission. His mentorship of Sam Rivera is a testament to his commitment to nurturing the skills and potential of his team members. This mentorship is not only about imparting knowledge but also about fostering a sense of confidence and readiness in facing the unknown challenges of Operation: Dulce [Data: Reports (1); Entities (0, 3); Relationships (2, 15)]. + +In summary, Agent Alex Mercer is a key figure in the Paranormal Military Squad, whose leadership and mentorship are vital to the success of Operation: Dulce. His ability to balance protocol with intuition, along with his strong professional relationships, underscores his importance in the mission and his role as a mentor to his colleagues. +
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[14], line 2 - 1 question = "Tell me about Dr. Jordan Hayes" -----> 2 result = await search_engine.search(question) - 3 print(result.response) ++### Overview of Dr. Jordan Hayes -NameError: name 'search_engine' is not defined+Dr. Jordan Hayes is a prominent scientist and a key member of the Paranormal Military Squad, known for their expertise in physics and composed demeanor. They play a significant role in Operation: Dulce, particularly in working with alien technology, which is a central element of the mission [Data: Entities (2); Reports (1)]. + +### Role in Operation: Dulce + +Dr. Hayes is deeply involved in the exploration of the Dulce base, where they contribute their analytical skills to the mission. Their work primarily focuses on understanding and analyzing alien technology, which is crucial for the success of Operation: Dulce. This role highlights their importance in the mission, as they provide valuable insights and expertise in dealing with the complexities of alien technology [Data: Reports (1); Entities (2, 13); Relationships (26, 48, 51)]. + +### Professional Relationships + +Dr. Hayes maintains professional relationships with other key members of the Paranormal Military Squad, including Taylor Cruz, Sam Rivera, and Alex Mercer. Their interactions with these team members emphasize the importance of adaptability and analytical thinking in the mission. Dr. Hayes is known for their skepticism towards strict adherence to protocols, advocating for a more flexible approach to the unknown variables encountered during the mission [Data: Reports (1); Relationships (1, 5, 9, 25)]. + +### Analytical and Skeptical Nature + +Dr. Hayes is portrayed as a skeptical and analytical member of the team, often contemplating the layers of data and the complexities of their missions. This skepticism is particularly evident in their interactions with Taylor Cruz, where they emphasize the need for adaptability over rigid protocols. Their analytical insights are crucial in identifying hidden elements within the Dulce base, such as a suspicious panel that seemed out of place [Data: Claims (2, 6, 10); Sources (0, 2)]. + +### Contribution to the Team + +Dr. Hayes' contribution to the Paranormal Military Squad is significant, as they bring a reflective and analytical perspective to the mission. Their ability to navigate the complexities of alien technology and their composed demeanor make them a valuable asset to the team. Their role in Operation: Dulce underscores the importance of scientific expertise and adaptability in dealing with the unknown challenges posed by the mission [Data: Reports (1); Entities (2); Relationships (10, 18, 21)]. + +In summary, Dr. Jordan Hayes is a critical member of the Paranormal Military Squad, whose expertise in physics and alien technology plays a vital role in the success of Operation: Dulce. Their analytical nature and professional relationships with other team members highlight the importance of adaptability and scientific insight in navigating the complexities of the mission. +
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[15], line 1 -----> 1 result.context_data["entities"].head() ++Out[15]:+++ ++ +
++ + + ++ id +entity +description +number of relationships +in_context ++ +0 +2 +JORDAN HAYES +Dr. Jordan Hayes is a scientist and a member o... +9 +True ++ +1 +13 +LAB +A lab where Dr. Jordan Hayes works on alien te... +1 +True ++ +2 +10 +AGENT HAYES +Agent Hayes is a member of the team exploring ... +5 +True ++ +3 +12 +AGENT CRUZ ++ 5 +True ++ + +4 +15 +BRIEFING ROOM ++ 2 +True +
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[16], line 1 -----> 1 result.context_data["relationships"].head() ++Out[16]:+++ ++ +
+ + + ++ id +source +target +description +weight +links +in_context ++ +0 +24 +ALEX MERCER +OPERATION: DULCE +Alex Mercer is involved in and is part of Oper... +24.0 +10 +True ++ +1 +27 +JORDAN HAYES +OPERATION: DULCE +Jordan Hayes is part of Operation: Dulce +8.0 +10 +True ++ +2 +48 +OPERATION: DULCE +JORDAN HAYES +Jordan Hayes is working on alien technology as... +16.0 +10 +True ++ +3 +1 +ALEX MERCER +JORDAN HAYES +Alex Mercer and Jordan Hayes are both agents w... +42.0 +7 +True ++ + +4 +29 +TAYLOR CRUZ +OPERATION: DULCE +Taylor Cruz is part of Operation: Dulce +8.0 +10 +True +
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[17], line 1 -----> 1 if "reports" in result.context_data: - 2 result.context_data["reports"].head() - -NameError: name 'result' is not defined-
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[18], line 1 -----> 1 result.context_data["sources"].head() ++Out[18]:+++ ++ +
++ + + ++ id +text ++ +0 +0 +# Operation: Dulce\n\n## Chapter 1\n\nThe thru... ++ +1 +2 +differently than praise from others. This was... ++ +2 +3 +contrast to the rigid silence enveloping the ... ++ +3 +1 +, the hollow echo of the bay a stark reminder ... ++ + +4 +4 +a mask of duty.\n\nIn the midst of the descen... +
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[19], line 1 -----> 1 if "claims" in result.context_data: - 2 print(result.context_data["claims"].head()) ++id entity object_id status start_date end_date \ +0 2 JORDAN HAYES NONE SUSPECTED NONE NONE +1 6 JORDAN HAYES NONE SUSPECTED NONE NONE +2 10 JORDAN HAYES NONE TRUE NONE NONE +3 1 TAYLOR CRUZ NONE SUSPECTED NONE NONE +4 7 TAYLOR CRUZ NONE SUSPECTED NONE NONE -NameError: name 'result' is not defined+ description in_context +0 Jordan Hayes is portrayed as skeptical of Tayl... True +1 Jordan Hayes is providing analytical insights ... True +2 Jordan Hayes identified a suspicious panel tha... True +3 Taylor Cruz's leadership style is described as... True +4 Taylor Cruz is asserting command over the miss... True +
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[20], line 2 - 1 question_generator = LocalQuestionGen( -----> 2 model=chat_model, - 3 context_builder=context_builder, - 4 token_encoder=token_encoder, - 5 model_params=model_params, - 6 context_builder_params=local_context_params, - 7 ) - -NameError: name 'chat_model' is not defined-
---------------------------------------------------------------------------- -NameError Traceback (most recent call last) -Cell In[21], line 5 - 1 question_history = [ - 2 "Tell me about Agent Mercer", - 3 "What happens in Dulce military base?", - 4 ] -----> 5 candidate_questions = await question_generator.agenerate( - 6 question_history=question_history, context_data=None, question_count=5 - 7 ) - 8 print(candidate_questions.response) - -NameError: name 'question_generator' is not defined+
['- What is the role of Agent Alex Mercer in Operation: Dulce?', "- How does Agent Taylor Cruz's leadership style impact the team's mission at Dulce base?", '- What expertise does Dr. Jordan Hayes bring to the exploration of the Dulce base?', '- How does Sam Rivera contribute to the mission at Dulce base with their cybersecurity skills?', '- What are the dynamics and relationships among the Paranormal Military Squad members during Operation: Dulce?'] +