Deploying to gh-pages from @ microsoft/graphrag@82cd3b7df2 🚀

This commit is contained in:
natoverse 2025-09-19 17:14:15 +00:00
parent ba2d2a9635
commit 0cd0470fb4
6 changed files with 411 additions and 853 deletions

View File

@ -2883,11 +2883,20 @@ print(f"📊 Initial stats: {vector_store.get_stats()}")</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>🚀 SimpleInMemoryVectorStore initialized for collection: test_collection
✅ Created vector store instance: SimpleInMemoryVectorStore
📊 Initial stats: {'collection_name': 'test_collection', 'document_count': 0, 'vector_count': 0, 'connected': False, 'vector_dimension': 0}
</pre>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">TypeError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[7]</span><span class="ansi-green-fg">, line 5</span>
<span class="ansi-green-fg"> 2</span> vector_store_config = {<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">collection_name</span><span class="ansi-yellow-fg">"</span>: <span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">test_collection</span><span class="ansi-yellow-fg">"</span>}
<span class="ansi-green-fg"> 4</span> <span style="color: rgb(95,135,135)"># Create vector store instance using factory</span>
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">5</span> vector_store = <span class="ansi-yellow-bg">VectorStoreFactory</span><span class="ansi-yellow-bg">.</span><span class="ansi-yellow-bg">create_vector_store</span><span class="ansi-yellow-bg">(</span>
<span class="ansi-green-fg"> 6</span> <span class="ansi-yellow-bg"> </span><span class="ansi-yellow-bg">CUSTOM_VECTOR_STORE_TYPE</span><span class="ansi-yellow-bg">,</span><span class="ansi-yellow-bg"> </span><span class="ansi-yellow-bg">vector_store_config</span>
<span class="ansi-green-fg"> 7</span> <span class="ansi-yellow-bg">)</span>
<span class="ansi-green-fg"> 9</span> <span style="color: rgb(0,135,0)">print</span>(<span class="ansi-yellow-fg">f</span><span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">✅ Created vector store instance: </span><span class="ansi-bold" style="color: rgb(175,95,135)">{</span><span style="color: rgb(0,135,0)">type</span>(vector_store).<span class="ansi-blue-fg">__name__</span><span class="ansi-bold" style="color: rgb(175,95,135)">}</span><span class="ansi-yellow-fg">"</span>)
<span class="ansi-green-fg"> 10</span> <span style="color: rgb(0,135,0)">print</span>(<span class="ansi-yellow-fg">f</span><span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">📊 Initial stats: </span><span class="ansi-bold" style="color: rgb(175,95,135)">{</span>vector_store.get_stats()<span class="ansi-bold" style="color: rgb(175,95,135)">}</span><span class="ansi-yellow-fg">"</span>)
<span class="ansi-red-fg">TypeError</span>: VectorStoreFactory.create_vector_store() missing 1 required positional argument: 'kwargs'</pre>
</div>
</div>
</div>
@ -2933,11 +2942,17 @@ print(f"📊 Updated stats: {vector_store.get_stats()}")</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>✅ Connected to in-memory vector store: test_collection
📚 Loaded 4 documents into vector store
📊 Updated stats: {'collection_name': 'test_collection', 'document_count': 4, 'vector_count': 4, 'connected': True, 'vector_dimension': 384}
</pre>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[8]</span><span class="ansi-green-fg">, line 2</span>
<span class="ansi-green-fg"> 1</span> <span style="color: rgb(95,135,135)"># Connect and load documents</span>
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">2</span> <span class="ansi-yellow-bg">vector_store</span>.connect()
<span class="ansi-green-fg"> 3</span> vector_store.load_documents(sample_documents)
<span class="ansi-green-fg"> 5</span> <span style="color: rgb(0,135,0)">print</span>(<span class="ansi-yellow-fg">f</span><span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">📊 Updated stats: </span><span class="ansi-bold" style="color: rgb(175,95,135)">{</span>vector_store.get_stats()<span class="ansi-bold" style="color: rgb(175,95,135)">}</span><span class="ansi-yellow-fg">"</span>)
<span class="ansi-red-fg">NameError</span>: name 'vector_store' is not defined</pre>
</div>
</div>
</div>
@ -3007,25 +3022,21 @@ for i, result in enumerate(search_results, 1):
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>🔍 Found 3 similar documents:
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[9]</span><span class="ansi-green-fg">, line 4</span>
<span class="ansi-green-fg"> 1</span> <span style="color: rgb(95,135,135)"># Test similarity search</span>
<span class="ansi-green-fg"> 2</span> query_vector = create_mock_embedding() <span style="color: rgb(95,135,135)"># Random query vector for testing</span>
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">4</span> search_results = <span class="ansi-yellow-bg">vector_store</span>.similarity_search_by_vector(
<span class="ansi-green-fg"> 5</span> query_vector,
<span class="ansi-green-fg"> 6</span> k=<span class="ansi-green-fg">3</span>, <span style="color: rgb(95,135,135)"># Get top 3 similar documents</span>
<span class="ansi-green-fg"> 7</span> )
<span class="ansi-green-fg"> 9</span> <span style="color: rgb(0,135,0)">print</span>(<span class="ansi-yellow-fg">f</span><span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">🔍 Found </span><span class="ansi-bold" style="color: rgb(175,95,135)">{</span><span style="color: rgb(0,135,0)">len</span>(search_results)<span class="ansi-bold" style="color: rgb(175,95,135)">}</span><span class="ansi-yellow-fg"> similar documents:</span><span class="ansi-bold" style="color: rgb(175,95,0)">\n</span><span class="ansi-yellow-fg">"</span>)
<span class="ansi-green-fg"> 11</span> <span class="ansi-bold" style="color: rgb(0,135,0)">for</span> i, result <span class="ansi-bold" style="color: rgb(175,0,255)">in</span> <span style="color: rgb(0,135,0)">enumerate</span>(search_results, <span class="ansi-green-fg">1</span>):
1. ID: doc_1
Text: GraphRAG is a powerful knowledge graph extraction and reason...
Similarity Score: 0.0917
Category: technology
2. ID: doc_2
Text: Vector stores enable efficient similarity search over high-d...
Similarity Score: 0.0492
Category: technology
3. ID: doc_3
Text: Machine learning models can process and understand natural l...
Similarity Score: 0.0162
Category: AI
</pre>
<span class="ansi-red-fg">NameError</span>: name 'vector_store' is not defined</pre>
</div>
</div>
</div>
@ -3087,14 +3098,18 @@ print(f"\n🔧 ID filter result: {id_filter}")</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>✅ Found document by ID:
ID: doc_2
Text: Vector stores enable efficient similarity search over high-dimensional data.
Attributes: {'category': 'technology', 'source': 'research'}
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[10]</span><span class="ansi-green-fg">, line 3</span>
<span class="ansi-green-fg"> 1</span> <span style="color: rgb(95,135,135)"># Test search by ID</span>
<span class="ansi-green-fg"> 2</span> <span class="ansi-bold" style="color: rgb(0,135,0)">try</span>:
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">3</span> found_doc = <span class="ansi-yellow-bg">vector_store</span>.search_by_id(<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">doc_2</span><span class="ansi-yellow-fg">"</span>)
<span class="ansi-green-fg"> 4</span> <span style="color: rgb(0,135,0)">print</span>(<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">✅ Found document by ID:</span><span class="ansi-yellow-fg">"</span>)
<span class="ansi-green-fg"> 5</span> <span style="color: rgb(0,135,0)">print</span>(<span class="ansi-yellow-fg">f</span><span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg"> ID: </span><span class="ansi-bold" style="color: rgb(175,95,135)">{</span>found_doc.id<span class="ansi-bold" style="color: rgb(175,95,135)">}</span><span class="ansi-yellow-fg">"</span>)
🔧 ID filter result: ['doc_1', 'doc_3']
</pre>
<span class="ansi-red-fg">NameError</span>: name 'vector_store' is not defined</pre>
</div>
</div>
</div>
@ -3344,19 +3359,31 @@ print(f"\n🎯 Retrieved {len(context)} entities for context building")</div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>🚀 Simulating GraphRAG pipeline with custom vector store...
🚀 SimpleInMemoryVectorStore initialized for collection: graphrag_entities
✅ Connected to in-memory vector store: graphrag_entities
✅ Step 1: Vector store created and connected
📚 Loaded 10 documents into vector store
✅ Step 2: Loaded 10 entity documents
✅ Step 3: Found 5 relevant entities for query
✅ Step 4: Context built using retrieved entities
📊 Final stats: {'collection_name': 'graphrag_entities', 'document_count': 10, 'vector_count': 10, 'connected': True, 'vector_dimension': 384}
🎯 Retrieved 5 entities for context building
</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">TypeError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[12]</span><span class="ansi-green-fg">, line 44</span>
<span class="ansi-green-fg"> 40</span> <span class="ansi-bold" style="color: rgb(0,135,0)">return</span> context_entities
<span class="ansi-green-fg"> 43</span> <span style="color: rgb(95,135,135)"># Run the simulation</span>
<span class="ansi-green-fg">---&gt; </span><span class="ansi-green-fg">44</span> context = <span class="ansi-yellow-bg">simulate_graphrag_pipeline</span><span class="ansi-yellow-bg">(</span><span class="ansi-yellow-bg">)</span>
<span class="ansi-green-fg"> 45</span> <span style="color: rgb(0,135,0)">print</span>(<span class="ansi-yellow-fg">f</span><span class="ansi-yellow-fg">"</span><span class="ansi-bold" style="color: rgb(175,95,0)">\n</span><span class="ansi-yellow-fg">🎯 Retrieved </span><span class="ansi-bold" style="color: rgb(175,95,135)">{</span><span style="color: rgb(0,135,0)">len</span>(context)<span class="ansi-bold" style="color: rgb(175,95,135)">}</span><span class="ansi-yellow-fg"> entities for context building</span><span class="ansi-yellow-fg">"</span>)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[12]</span><span class="ansi-green-fg">, line 9</span>, in <span class="ansi-cyan-fg">simulate_graphrag_pipeline</span><span class="ansi-blue-fg">()</span>
<span class="ansi-green-fg"> 6</span> <span style="color: rgb(95,135,135)"># 1. GraphRAG creates vector store using factory</span>
<span class="ansi-green-fg"> 7</span> config = {<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">collection_name</span><span class="ansi-yellow-fg">"</span>: <span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">graphrag_entities</span><span class="ansi-yellow-fg">"</span>, <span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">similarity_threshold</span><span class="ansi-yellow-fg">"</span>: <span class="ansi-green-fg">0.3</span>}
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">9</span> store = <span class="ansi-yellow-bg">VectorStoreFactory</span><span class="ansi-yellow-bg">.</span><span class="ansi-yellow-bg">create_vector_store</span><span class="ansi-yellow-bg">(</span><span class="ansi-yellow-bg">CUSTOM_VECTOR_STORE_TYPE</span><span class="ansi-yellow-bg">,</span><span class="ansi-yellow-bg"> </span><span class="ansi-yellow-bg">config</span><span class="ansi-yellow-bg">)</span>
<span class="ansi-green-fg"> 10</span> store.connect()
<span class="ansi-green-fg"> 12</span> <span style="color: rgb(0,135,0)">print</span>(<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">✅ Step 1: Vector store created and connected</span><span class="ansi-yellow-fg">"</span>)
<span class="ansi-red-fg">TypeError</span>: VectorStoreFactory.create_vector_store() missing 1 required positional argument: 'kwargs'</pre>
</div>
</div>
</div>
</div>
</div>
@ -3559,28 +3586,32 @@ test_custom_vector_store()</div>
<pre>🧪 Running comprehensive vector store tests...
Test 1: Basic functionality
🚀 SimpleInMemoryVectorStore initialized for collection: test
✅ Connected to in-memory vector store: test
📚 Loaded 2 documents into vector store
✅ Basic functionality test passed
Test 2: Search functionality
✅ Search functionality test passed
Test 3: Search by ID
✅ Search by ID test passed
Test 4: Filter functionality
✅ Filter functionality test passed
Test 5: Error handling
🚀 SimpleInMemoryVectorStore initialized for collection: test2
✅ Error handling test passed
🎉 All tests passed! Your custom vector store is working correctly.
</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">TypeError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[13]</span><span class="ansi-green-fg">, line 77</span>
<span class="ansi-green-fg"> 73</span> <span style="color: rgb(0,135,0)">print</span>(<span class="ansi-yellow-fg">"</span><span class="ansi-bold" style="color: rgb(175,95,0)">\n</span><span class="ansi-yellow-fg">🎉 All tests passed! Your custom vector store is working correctly.</span><span class="ansi-yellow-fg">"</span>)
<span class="ansi-green-fg"> 76</span> <span style="color: rgb(95,135,135)"># Run the tests</span>
<span class="ansi-green-fg">---&gt; </span><span class="ansi-green-fg">77</span> <span class="ansi-yellow-bg">test_custom_vector_store</span><span class="ansi-yellow-bg">(</span><span class="ansi-yellow-bg">)</span>
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[13]</span><span class="ansi-green-fg">, line 7</span>, in <span class="ansi-cyan-fg">test_custom_vector_store</span><span class="ansi-blue-fg">()</span>
<span class="ansi-green-fg"> 5</span> <span style="color: rgb(95,135,135)"># Test 1: Basic functionality</span>
<span class="ansi-green-fg"> 6</span> <span style="color: rgb(0,135,0)">print</span>(<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">Test 1: Basic functionality</span><span class="ansi-yellow-fg">"</span>)
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">7</span> store = <span class="ansi-yellow-bg">VectorStoreFactory</span><span class="ansi-yellow-bg">.</span><span class="ansi-yellow-bg">create_vector_store</span><span class="ansi-yellow-bg">(</span>
<span class="ansi-green-fg"> 8</span> <span class="ansi-yellow-bg"> </span><span class="ansi-yellow-bg">CUSTOM_VECTOR_STORE_TYPE</span><span class="ansi-yellow-bg">,</span><span class="ansi-yellow-bg"> </span><span class="ansi-yellow-bg">{</span><span class="ansi-yellow-fg ansi-yellow-bg">"</span><span class="ansi-yellow-fg ansi-yellow-bg">collection_name</span><span class="ansi-yellow-fg ansi-yellow-bg">"</span><span class="ansi-yellow-bg">:</span><span class="ansi-yellow-bg"> </span><span class="ansi-yellow-fg ansi-yellow-bg">"</span><span class="ansi-yellow-fg ansi-yellow-bg">test</span><span class="ansi-yellow-fg ansi-yellow-bg">"</span><span class="ansi-yellow-bg">}</span>
<span class="ansi-green-fg"> 9</span> <span class="ansi-yellow-bg">)</span>
<span class="ansi-green-fg"> 10</span> store.connect()
<span class="ansi-green-fg"> 12</span> <span style="color: rgb(95,135,135)"># Load test documents</span>
<span class="ansi-red-fg">TypeError</span>: VectorStoreFactory.create_vector_store() missing 1 required positional argument: 'kwargs'</pre>
</div>
</div>
</div>
</div>
</div>

View File

@ -2160,102 +2160,28 @@ text_unit_df.head()</div>
<pre>Entity df columns: Index(['id', 'human_readable_id', 'title', 'type', 'description',
'text_unit_ids', 'frequency', 'degree', 'x', 'y'],
dtype='object')
Entity count: 18
Relationship count: 54
Text unit records: 5
</pre>
</div>
</div>
<div class="jp-OutputArea-child jp-OutputArea-executeResult">
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[2]:</div>
<div class="jp-RenderedHTMLCommon jp-RenderedHTML jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/html" tabindex="0">
<div>
<style scoped="">
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">TypeError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[2]</span><span class="ansi-green-fg">, line 46</span>
<span class="ansi-green-fg"> 42</span> entities = read_indexer_entities(entity_df, community_df, COMMUNITY_LEVEL)
<span class="ansi-green-fg"> 44</span> <span style="color: rgb(95,135,135)"># load description embeddings to an in-memory lancedb vectorstore</span>
<span class="ansi-green-fg"> 45</span> <span style="color: rgb(95,135,135)"># to connect to a remote db, specify url and port values.</span>
<span class="ansi-green-fg">---&gt; </span><span class="ansi-green-fg">46</span> description_embedding_store = <span class="ansi-yellow-bg">LanceDBVectorStore</span><span class="ansi-yellow-bg">(</span>
<span class="ansi-green-fg"> 47</span> <span class="ansi-yellow-bg"> </span><span class="ansi-yellow-bg">collection_name</span><span class="ansi-yellow-bg">=</span><span class="ansi-yellow-fg ansi-yellow-bg">"</span><span class="ansi-yellow-fg ansi-yellow-bg">default-entity-description</span><span class="ansi-yellow-fg ansi-yellow-bg">"</span><span class="ansi-yellow-bg">,</span>
<span class="ansi-green-fg"> 48</span> <span class="ansi-yellow-bg">)</span>
<span class="ansi-green-fg"> 49</span> description_embedding_store.connect(db_uri=LANCEDB_URI)
<span class="ansi-green-fg"> 51</span> full_content_embedding_store = LanceDBVectorStore(
<span class="ansi-green-fg"> 52</span> collection_name=<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">default-community-full_content</span><span class="ansi-yellow-fg">"</span>,
<span class="ansi-green-fg"> 53</span> )
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
</style>
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>id</th>
<th>human_readable_id</th>
<th>text</th>
<th>n_tokens</th>
<th>document_ids</th>
<th>entity_ids</th>
<th>relationship_ids</th>
<th>covariate_ids</th>
</tr>
</thead>
<tbody>
<tr>
<th>0</th>
<td>8e938693af886bfd081acbbe8384c3671446bff84a134a...</td>
<td>1</td>
<td># Operation: Dulce\n\n## Chapter 1\n\nThe thru...</td>
<td>1200</td>
<td>[6e81f882f89dd5596e1925dd3ae8a4f0a0edcb55b35a8...</td>
<td>[425a7862-0aef-4f69-a4c8-8bd42151c9d4, bcdbf1f...</td>
<td>[2bfad9f4-5abd-48d0-8db3-a9cad9120413, 6cbb838...</td>
<td>[745d28dd-be20-411b-85ff-1c69ca70e7b3, 9cba185...</td>
</tr>
<tr>
<th>1</th>
<td>fd1f46d32e1df6cd429542aeda3d64ddf3745ccb80f443...</td>
<td>2</td>
<td>, the hollow echo of the bay a stark reminder ...</td>
<td>1200</td>
<td>[6e81f882f89dd5596e1925dd3ae8a4f0a0edcb55b35a8...</td>
<td>[425a7862-0aef-4f69-a4c8-8bd42151c9d4, bcdbf1f...</td>
<td>[2bfad9f4-5abd-48d0-8db3-a9cad9120413, 6cbb838...</td>
<td>[4f9b461f-5e8f-465d-9586-e2fc81787062, 0f74618...</td>
</tr>
<tr>
<th>2</th>
<td>7296d9a1f046854d59079dc183de8a054c27c4843d2979...</td>
<td>3</td>
<td>differently than praise from others. This was...</td>
<td>1200</td>
<td>[6e81f882f89dd5596e1925dd3ae8a4f0a0edcb55b35a8...</td>
<td>[425a7862-0aef-4f69-a4c8-8bd42151c9d4, bcdbf1f...</td>
<td>[2bfad9f4-5abd-48d0-8db3-a9cad9120413, 6cbb838...</td>
<td>[3ef1be9c-4080-4fac-99bd-c4a636248904, 8730b20...</td>
</tr>
<tr>
<th>3</th>
<td>ac72722a02ac71242a2a91fca323198d04197daf60515d...</td>
<td>4</td>
<td>contrast to the rigid silence enveloping the ...</td>
<td>1200</td>
<td>[6e81f882f89dd5596e1925dd3ae8a4f0a0edcb55b35a8...</td>
<td>[425a7862-0aef-4f69-a4c8-8bd42151c9d4, bcdbf1f...</td>
<td>[2bfad9f4-5abd-48d0-8db3-a9cad9120413, 6cbb838...</td>
<td>[2c292047-b79a-4958-ab57-7bf7d7a22c92, 3cbd18a...</td>
</tr>
<tr>
<th>4</th>
<td>4c277337d461a16aaf8f9760ddb8b44ef220e948a2341d...</td>
<td>5</td>
<td>a mask of duty.\n\nIn the midst of the descen...</td>
<td>35</td>
<td>[6e81f882f89dd5596e1925dd3ae8a4f0a0edcb55b35a8...</td>
<td>[d084d615-3584-4ec8-9931-90aa6075c764, 4b84859...</td>
<td>[6efdc42e-69a2-47c0-97ec-4b296cd16d5e]</td>
<td>[db8da02f-f889-4bb5-8e81-ab2a72e380bb]</td>
</tr>
</tbody>
</table>
</div>
<span class="ansi-red-fg">TypeError</span>: LanceDBVectorStore.__init__() missing 1 required positional argument: 'vector_store_schema_config'</pre>
</div>
</div>
</div>
@ -2346,8 +2272,8 @@ text_embedder = ModelManager().get_or_create_embedding_model(
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
@ -2404,9 +2330,34 @@ read_indexer_report_embeddings(reports, full_content_embedding_store)</div>
</div>
</div>
</div>
<div class="jp-Cell-outputWrapper">
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[4]</span><span class="ansi-green-fg">, line 17</span>
<span class="ansi-green-fg"> 10</span> report_df = read_community_reports(INPUT_DIR)
<span class="ansi-green-fg"> 11</span> reports = read_indexer_reports(
<span class="ansi-green-fg"> 12</span> report_df,
<span class="ansi-green-fg"> 13</span> community_df,
<span class="ansi-green-fg"> 14</span> COMMUNITY_LEVEL,
<span class="ansi-green-fg"> 15</span> content_embedding_col=<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">full_content_embeddings</span><span class="ansi-yellow-fg">"</span>,
<span class="ansi-green-fg"> 16</span> )
<span class="ansi-green-fg">---&gt; </span><span class="ansi-green-fg">17</span> read_indexer_report_embeddings(reports, <span class="ansi-yellow-bg">full_content_embedding_store</span>)
<span class="ansi-red-fg">NameError</span>: name 'full_content_embedding_store' is not defined</pre>
</div>
</div>
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
@ -2477,6 +2428,42 @@ search = DRIFTSearch(
</div>
</div>
</div>
<div class="jp-Cell-outputWrapper">
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[5]</span><span class="ansi-green-fg">, line 14</span>
<span class="ansi-green-fg"> 1</span> drift_params = DRIFTSearchConfig(
<span class="ansi-green-fg"> 2</span> temperature=<span class="ansi-green-fg">0</span>,
<span class="ansi-green-fg"> 3</span> max_tokens=<span class="ansi-green-fg">12_000</span>,
<span class="ansi-green-fg"> (...)</span><span class="ansi-green-fg"> 7</span> n=<span class="ansi-green-fg">1</span>,
<span class="ansi-green-fg"> 8</span> )
<span class="ansi-green-fg"> 10</span> context_builder = DRIFTSearchContextBuilder(
<span class="ansi-green-fg"> 11</span> model=chat_model,
<span class="ansi-green-fg"> 12</span> text_embedder=text_embedder,
<span class="ansi-green-fg"> 13</span> entities=entities,
<span class="ansi-green-fg">---&gt; </span><span class="ansi-green-fg">14</span> relationships=<span class="ansi-yellow-bg">relationships</span>,
<span class="ansi-green-fg"> 15</span> reports=reports,
<span class="ansi-green-fg"> 16</span> entity_text_embeddings=description_embedding_store,
<span class="ansi-green-fg"> 17</span> text_units=text_units,
<span class="ansi-green-fg"> 18</span> token_encoder=token_encoder,
<span class="ansi-green-fg"> 19</span> config=drift_params,
<span class="ansi-green-fg"> 20</span> )
<span class="ansi-green-fg"> 22</span> search = DRIFTSearch(
<span class="ansi-green-fg"> 23</span> model=chat_model, context_builder=context_builder, token_encoder=token_encoder
<span class="ansi-green-fg"> 24</span> )
<span class="ansi-red-fg">NameError</span>: name 'relationships' is not defined</pre>
</div>
</div>
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell">
@ -2511,190 +2498,13 @@ search = DRIFTSearch(
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> 0%| | 0/1 [00:00&lt;?, ?it/s]</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> 100%|██████████| 1/1 [00:07&lt;00:00, 7.18s/it]</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> </pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> </pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> 0%| | 0/3 [00:00&lt;?, ?it/s]</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>Reached token limit - reverting to previous context state
</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>Reached token limit - reverting to previous context state
</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>Reached token limit - reverting to previous context state
</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> 33%|███▎ | 1/3 [00:15&lt;00:30, 15.43s/it]</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> 100%|██████████| 3/3 [00:16&lt;00:00, 4.37s/it]</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> </pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> </pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> 0%| | 0/3 [00:00&lt;?, ?it/s]</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>Reached token limit - reverting to previous context state
</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>Reached token limit - reverting to previous context state
</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>Reached token limit - reverting to previous context state
</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> 33%|███▎ | 1/3 [00:09&lt;00:18, 9.01s/it]</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> 67%|██████▋ | 2/3 [00:10&lt;00:04, 4.44s/it]</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> 100%|██████████| 3/3 [00:20&lt;00:00, 7.18s/it]</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> </pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> </pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> 0%| | 0/3 [00:00&lt;?, ?it/s]</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>Reached token limit - reverting to previous context state
</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>Reached token limit - reverting to previous context state
</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>Reached token limit - reverting to previous context state
</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> 33%|███▎ | 1/3 [00:11&lt;00:22, 11.36s/it]</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> 67%|██████▋ | 2/3 [00:11&lt;00:04, 4.74s/it]</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> 100%|██████████| 3/3 [00:12&lt;00:00, 2.97s/it]</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> </pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre> </pre>
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[6]</span><span class="ansi-green-fg">, line 1</span>
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">1</span> resp = <span class="ansi-bold" style="color: rgb(0,135,0)">await</span> <span class="ansi-yellow-bg">search</span>.search(<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">Who is agent Mercer?</span><span class="ansi-yellow-fg">"</span>)
<span class="ansi-red-fg">NameError</span>: name 'search' is not defined</pre>
</div>
</div>
</div>
@ -2730,10 +2540,16 @@ search = DRIFTSearch(
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child jp-OutputArea-executeResult">
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[7]:</div>
<div class="jp-RenderedText jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/plain" tabindex="0">
<pre>"Agent Alex Mercer is a pivotal member of the Paranormal Military Squad, playing a crucial role in Operation: Dulce, which involves exploring the Dulce base associated with alien technology. Mercer is known for his leadership and mentorship qualities, particularly in guiding Sam Rivera, a cybersecurity expert on the team. His leadership style emphasizes intuition, trust, and collaboration, which are essential for the mission's success [Data: Reports (1); Sources (0, 1, 3)].\n\nMercer is also noted for his ability to balance compliance with protocol and personal conviction, maintaining team cohesion while fostering a collaborative environment. His interactions with other team members, such as Dr. Jordan Hayes and Taylor Cruz, demonstrate his capacity to navigate complex interpersonal dynamics and leverage the strengths of each team member [Data: Sources (0, 1, 3)].\n\nOverall, Mercer's role is integral to the mission's success, as he provides strategic guidance and fosters a sense of trust and respect within the team [Data: Reports (1); Sources (0, 3)]."</pre>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[7]</span><span class="ansi-green-fg">, line 1</span>
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">1</span> <span class="ansi-yellow-bg">resp</span>.response
<span class="ansi-red-fg">NameError</span>: name 'resp' is not defined</pre>
</div>
</div>
</div>
@ -2771,108 +2587,14 @@ search = DRIFTSearch(
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>{'What specific skills does Agent Mercer bring to the Paranormal Military Squad?': {'reports': id title \
0 1 Paranormal Military Squad and Operation: Dulce
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[8]</span><span class="ansi-green-fg">, line 1</span>
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">1</span> <span style="color: rgb(0,135,0)">print</span>(<span class="ansi-yellow-bg">resp</span>.context_data)
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...}, "How does Agent Mercer's leadership style impact the team's dynamics?": {'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 1 , the hollow echo of the bay a stark reminder ...
4 4 a mask of duty.\n\nIn the midst of the descen...}, 'What are the key challenges faced by Agent Mercer 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 1 , the hollow echo of the bay a stark reminder ...
4 4 a mask of duty.\n\nIn the midst of the descen...}, "How does Agent Mercer's leadership style differ from Taylor Cruz's during the mission?": {'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 role does intuition play in Agent Mercer's decision-making process?": {'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 challenges does Agent Mercer face in maintaining his leadership style?': {'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...}, "How does Mercer's mentorship of Sam Rivera influence the mission's outcome?": {'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 role does intuition play in the success of 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 ...}, "In what ways did Mercer's mentorship influence Sam Rivera's role in the mission?": {'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...}}
</pre>
<span class="ansi-red-fg">NameError</span>: name 'resp' is not defined</pre>
</div>
</div>
</div>

View File

@ -2708,17 +2708,19 @@ print(result.response)</div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>### Overview of Operation: Dulce
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's primary focus is on the Dulce base, a central element of the mission, which is associated with advanced alien technology. The exploration and uncovering of the secrets within the Dulce base are crucial to the mission's objectives and the overall success of Operation: Dulce [Data: Reports (0, 1)].
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 is centered around the exploration and uncovering of secrets within the Dulce base, which is a critical element of the mission [Data: Reports (0)].
### Key Personnel
### Key Objectives
The mission involves key agents from the Paranormal Military Squad, including Alex Mercer, Taylor Cruz, Jordan Hayes, and Sam Rivera. Each of these agents plays a significant role in executing the mission, contributing their expertise and skills to navigate the complexities of the Dulce base [Data: Reports (1)].
The primary objective of Operation: Dulce is to navigate and explore the depths of the Dulce base. This base is associated with advanced alien technology, which is crucial to the mission's objectives and the overall success of the operation. The exploration of this technology is intended to provide insights into its potential impact on humanity [Data: Reports (1)].
### Mission Motivation
### Team Composition
A strong sense of duty drives the individuals involved in Operation: Dulce. This motivation is essential as it propels the team members to undertake the mission and face the challenges presented by the Dulce base. The commitment to uncovering the secrets of the base and understanding the alien technology is a testament to their dedication [Data: Reports (0)].
The mission is executed by the Paranormal Military Squad, which includes key agents such as Alex Mercer, Taylor Cruz, Jordan Hayes, and Sam Rivera. Each of these agents plays a significant role in the mission, contributing to the exploration and understanding of the Dulce base [Data: Reports (1)].
In summary, Operation: Dulce is a complex and critical mission focused on exploring the Dulce base and its advanced alien technology, with a dedicated team of agents driven by a strong sense of duty.
### Motivation and Challenges
A strong sense of duty drives the individuals involved in Operation: Dulce. This motivation is essential as they navigate the complexities and challenges presented by the Dulce base. The mission's complexity underscores the importance of the operation and the dedication required from the team members [Data: Reports (0)].
</pre>
</div>
</div>
@ -2849,7 +2851,7 @@ print(
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>LLM calls: 2. Prompt tokens: 3418. Output tokens: 560.
<pre>LLM calls: 2. Prompt tokens: 3418. Output tokens: 550.
</pre>
</div>
</div>

View File

@ -2626,19 +2626,21 @@ print(result.response)</div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>### Overview of Operation: Dulce
Operation: Dulce is a significant mission undertaken by the Paranormal Military Squad, focusing on the investigation of alien technology and its implications for humanity. The operation centers around the exploration of the Dulce base, a mysterious and secretive location believed to house advanced alien technology. The mission's complexity and importance are underscored by the potential discoveries that could have far-reaching implications for humanity [Data: Reports (0)].
Operation: Dulce is a significant mission undertaken by the Paranormal Military Squad, focusing on the investigation of alien technology and its implications for humanity. This operation is centered around the exploration and analysis of the Dulce base, which is a critical element of the mission. The base is associated with advanced alien technology, and the mission's success heavily relies on uncovering its secrets [Data: Reports (0, 1)].
### Key Participants
The operation is executed by the Paranormal Military Squad, an elite group tasked with navigating and uncovering the secrets of the Dulce base. Key agents involved in this mission include Alex Mercer, Taylor Cruz, Jordan Hayes, and Sam Rivera. These agents play significant roles in ensuring the mission's success through meticulous planning and coordination [Data: Reports (1)].
The operation involves key agents such as Alex Mercer, Taylor Cruz, Jordan Hayes, and Sam Rivera. These individuals are part of the elite Paranormal Military Squad, which is tasked with executing missions like Operation: Dulce. The squad's meticulous planning and coordination are crucial to navigating the complexities of the Dulce base and achieving the mission's objectives [Data: Reports (1)].
### Mission Objectives
The primary objective of Operation: Dulce is the exploration and analysis of the Dulce base. This involves uncovering and understanding the alien technology present at the site. Dr. Jordan Hayes, one of the agents, is specifically noted for working on this advanced technology in the lab, highlighting the scientific and exploratory nature of the mission [Data: Reports (1)].
The primary objective of Operation: Dulce is to explore the depths of the Dulce base and analyze the alien technology found within. Dr. Jordan Hayes, one of the agents, works specifically on this technology in the lab, highlighting the importance of scientific analysis in the mission. The operation aims to uncover the secrets of the base, which are vital to understanding the broader implications for humanity [Data: Reports (1)].
### Importance and Implications
### Motivations and Implications
The operation's significance lies in its potential to unlock secrets that could alter humanity's understanding of alien technology. The successful execution of this mission by the Paranormal Military Squad is critical, as it may lead to groundbreaking discoveries that could impact various aspects of human life and technology [Data: Reports (0, 1)].
A strong sense of duty drives the individuals involved in Operation: Dulce. This sense of responsibility motivates the team members to undertake the mission and navigate the challenges presented by the Dulce base. The operation is central to the community, connecting all key entities and driving their actions, which underscores its importance and complexity [Data: Reports (0)].
In summary, Operation: Dulce is a complex and critical mission focused on the exploration of alien technology at the Dulce base. It involves a dedicated team of agents from the Paranormal Military Squad, whose sense of duty and meticulous planning are essential to the mission's success. The operation's outcomes may have significant implications for humanity, making it a central focus for the community involved.
</pre>
</div>
</div>
@ -2708,20 +2710,20 @@ result.context_data["reports"]</div>
<tbody>
<tr>
<th>0</th>
<td>0</td>
<td>Operation: Dulce and Dulce Base Exploration</td>
<td>1.0</td>
<td># Operation: Dulce and Dulce Base Exploration\...</td>
<td>8.5</td>
</tr>
<tr>
<th>1</th>
<td>1</td>
<td>Paranormal Military Squad and Operation: Dulce</td>
<td>1.0</td>
<td># Paranormal Military Squad and Operation: Dul...</td>
<td>8.5</td>
</tr>
<tr>
<th>1</th>
<td>0</td>
<td>Operation: Dulce and Dulce Base Exploration</td>
<td>1.0</td>
<td># Operation: Dulce and Dulce Base Exploration\...</td>
<td>8.5</td>
</tr>
</tbody>
</table>
</div>
@ -2798,9 +2800,9 @@ print(
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>Build context (gpt-4o)
LLM calls: 2. Prompt tokens: 1761. Output tokens: 238.
LLM calls: 2. Prompt tokens: 1761. Output tokens: 255.
Map-reduce (gpt-4o)
LLM calls: 2. Prompt tokens: 3500. Output tokens: 676.
LLM calls: 2. Prompt tokens: 3525. Output tokens: 796.
</pre>
</div>
</div>

View File

@ -2497,113 +2497,21 @@ entity_df.head()</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>Entity count: 18
</pre>
</div>
</div>
<div class="jp-OutputArea-child jp-OutputArea-executeResult">
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[4]:</div>
<div class="jp-RenderedHTMLCommon jp-RenderedHTML jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/html" tabindex="0">
<div>
<style scoped="">
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">TypeError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[4]</span><span class="ansi-green-fg">, line 9</span>
<span class="ansi-green-fg"> 5</span> entities = read_indexer_entities(entity_df, community_df, COMMUNITY_LEVEL)
<span class="ansi-green-fg"> 7</span> <span style="color: rgb(95,135,135)"># load description embeddings to an in-memory lancedb vectorstore</span>
<span class="ansi-green-fg"> 8</span> <span style="color: rgb(95,135,135)"># to connect to a remote db, specify url and port values.</span>
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">9</span> description_embedding_store = <span class="ansi-yellow-bg">LanceDBVectorStore</span><span class="ansi-yellow-bg">(</span>
<span class="ansi-green-fg"> 10</span> <span class="ansi-yellow-bg"> </span><span class="ansi-yellow-bg">collection_name</span><span class="ansi-yellow-bg">=</span><span class="ansi-yellow-fg ansi-yellow-bg">"</span><span class="ansi-yellow-fg ansi-yellow-bg">default-entity-description</span><span class="ansi-yellow-fg ansi-yellow-bg">"</span><span class="ansi-yellow-bg">,</span>
<span class="ansi-green-fg"> 11</span> <span class="ansi-yellow-bg">)</span>
<span class="ansi-green-fg"> 12</span> description_embedding_store.connect(db_uri=LANCEDB_URI)
<span class="ansi-green-fg"> 14</span> <span style="color: rgb(0,135,0)">print</span>(<span class="ansi-yellow-fg">f</span><span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">Entity count: </span><span class="ansi-bold" style="color: rgb(175,95,135)">{</span><span style="color: rgb(0,135,0)">len</span>(entity_df)<span class="ansi-bold" style="color: rgb(175,95,135)">}</span><span class="ansi-yellow-fg">"</span>)
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
</style>
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>id</th>
<th>human_readable_id</th>
<th>title</th>
<th>type</th>
<th>description</th>
<th>text_unit_ids</th>
<th>frequency</th>
<th>degree</th>
<th>x</th>
<th>y</th>
</tr>
</thead>
<tbody>
<tr>
<th>0</th>
<td>425a7862-0aef-4f69-a4c8-8bd42151c9d4</td>
<td>0</td>
<td>ALEX MERCER</td>
<td>PERSON</td>
<td>Agent Alex Mercer is a determined individual w...</td>
<td>[8e938693af886bfd081acbbe8384c3671446bff84a134...</td>
<td>4</td>
<td>9</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th>1</th>
<td>bcdbf1fc-0dc1-460f-bc71-2781729c96ba</td>
<td>1</td>
<td>TAYLOR CRUZ</td>
<td>PERSON</td>
<td>Agent Taylor Cruz is a commanding and authorit...</td>
<td>[8e938693af886bfd081acbbe8384c3671446bff84a134...</td>
<td>4</td>
<td>8</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th>2</th>
<td>ef02ef24-5762-46ce-93ce-7dea6fc86595</td>
<td>2</td>
<td>JORDAN HAYES</td>
<td>PERSON</td>
<td>Dr. Jordan Hayes is a scientist and a member o...</td>
<td>[8e938693af886bfd081acbbe8384c3671446bff84a134...</td>
<td>4</td>
<td>9</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th>3</th>
<td>8b163d27-e43a-4a2c-a26f-866778d8720e</td>
<td>3</td>
<td>SAM RIVERA</td>
<td>PERSON</td>
<td>Sam Rivera is a cybersecurity expert and a tal...</td>
<td>[8e938693af886bfd081acbbe8384c3671446bff84a134...</td>
<td>4</td>
<td>8</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<th>4</th>
<td>542aa5bd-ba2d-400a-8488-c52d50bc300d</td>
<td>4</td>
<td>PARANORMAL MILITARY SQUAD</td>
<td>ORGANIZATION</td>
<td>The PARANORMAL MILITARY SQUAD is an elite grou...</td>
<td>[8e938693af886bfd081acbbe8384c3671446bff84a134...</td>
<td>2</td>
<td>6</td>
<td>0</td>
<td>0</td>
</tr>
</tbody>
</table>
</div>
<span class="ansi-red-fg">TypeError</span>: LanceDBVectorStore.__init__() missing 1 required positional argument: 'vector_store_schema_config'</pre>
</div>
</div>
</div>
@ -3208,8 +3116,8 @@ text_embedder = ModelManager().get_or_create_embedding_model(
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
@ -3256,6 +3164,35 @@ text_embedder = ModelManager().get_or_create_embedding_model(
</div>
</div>
</div>
<div class="jp-Cell-outputWrapper">
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[10]</span><span class="ansi-green-fg">, line 8</span>
<span class="ansi-green-fg"> 1</span> context_builder = LocalSearchMixedContext(
<span class="ansi-green-fg"> 2</span> community_reports=reports,
<span class="ansi-green-fg"> 3</span> text_units=text_units,
<span class="ansi-green-fg"> 4</span> entities=entities,
<span class="ansi-green-fg"> 5</span> relationships=relationships,
<span class="ansi-green-fg"> 6</span> <span style="color: rgb(95,135,135)"># if you did not run covariates during indexing, set this to None</span>
<span class="ansi-green-fg"> 7</span> covariates=covariates,
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">8</span> entity_text_embeddings=<span class="ansi-yellow-bg">description_embedding_store</span>,
<span class="ansi-green-fg"> 9</span> embedding_vectorstore_key=EntityVectorStoreKey.ID, <span style="color: rgb(95,135,135)"># if the vectorstore uses entity title as ids, set this to EntityVectorStoreKey.TITLE</span>
<span class="ansi-green-fg"> 10</span> text_embedder=text_embedder,
<span class="ansi-green-fg"> 11</span> token_encoder=token_encoder,
<span class="ansi-green-fg"> 12</span> )
<span class="ansi-red-fg">NameError</span>: name 'description_embedding_store' is not defined</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell">
@ -3363,8 +3300,8 @@ model_params = {
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
@ -3403,6 +3340,31 @@ model_params = {
</div>
</div>
</div>
<div class="jp-Cell-outputWrapper">
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[12]</span><span class="ansi-green-fg">, line 3</span>
<span class="ansi-green-fg"> 1</span> search_engine = LocalSearch(
<span class="ansi-green-fg"> 2</span> model=chat_model,
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">3</span> context_builder=<span class="ansi-yellow-bg">context_builder</span>,
<span class="ansi-green-fg"> 4</span> token_encoder=token_encoder,
<span class="ansi-green-fg"> 5</span> model_params=model_params,
<span class="ansi-green-fg"> 6</span> context_builder_params=local_context_params,
<span class="ansi-green-fg"> 7</span> response_type=<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">multiple paragraphs</span><span class="ansi-yellow-fg">"</span>, <span style="color: rgb(95,135,135)"># free form text describing the response type and format, can be anything, e.g. prioritized list, single paragraph, multiple paragraphs, multiple-page report</span>
<span class="ansi-green-fg"> 8</span> )
<span class="ansi-red-fg">NameError</span>: name 'context_builder' is not defined</pre>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="jp-Cell jp-MarkdownCell jp-Notebook-cell">
@ -3450,31 +3412,14 @@ print(result.response)</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>Reached token limit - reverting to previous context state
</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>### Overview of Agent Alex Mercer
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[13]</span><span class="ansi-green-fg">, line 1</span>
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">1</span> result = <span class="ansi-bold" style="color: rgb(0,135,0)">await</span> <span class="ansi-yellow-bg">search_engine</span>.search(<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">Tell me about Agent Mercer</span><span class="ansi-yellow-fg">"</span>)
<span class="ansi-green-fg"> 2</span> <span style="color: rgb(0,135,0)">print</span>(result.response)
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 [Data: Reports (1); Entities (0, 4)]. 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, 3)].
### Role in Operation: Dulce
In the context of Operation: Dulce, Alex Mercer is one of the agents exploring the Dulce base, a mysterious and secretive location associated with advanced alien technology [Data: Reports (1); Entities (0, 8); Relationships (23, 24, 37)]. His involvement in the mission is marked by a balance between compliance with protocols and a natural inclination to question and explore all details, which sometimes leads to internal conflict [Data: Claims (3, 5)].
### Relationships and Interactions
Mercer shares a professional relationship with other key members of the squad, including Taylor Cruz and Jordan Hayes. His relationship with Taylor Cruz is primarily professional, with an undercurrent of competition due to Cruz's authoritative nature [Data: Relationships (0); Claims (3)]. With Jordan Hayes, Mercer shares mutual respect and understanding, particularly admiring each other's expertise and analytical abilities [Data: Relationships (1)]. His mentorship of Sam Rivera highlights his role as a guiding figure within the team [Data: Relationships (2, 15)].
### Leadership and Mentorship
Alex Mercer's leadership style is characterized by his emphasis on intuition and trust, which complements the more protocol-driven approach of his colleague, Taylor Cruz. This dynamic is evident in their interactions and the overall team dynamics during the mission [Data: Reports (1); Claims (3, 5)]. His mentorship of Sam Rivera is a testament to his supportive nature and his commitment to nurturing the talents of his team members [Data: Reports (1); Relationships (2, 15)].
In summary, Agent Alex Mercer is a key figure in the Paranormal Military Squad, playing a vital role in Operation: Dulce through his leadership, mentorship, and professional relationships with other team members. His ability to balance protocol with intuition makes him an invaluable asset to the mission.
</pre>
<span class="ansi-red-fg">NameError</span>: name 'search_engine' is not defined</pre>
</div>
</div>
</div>
@ -3517,31 +3462,15 @@ print(result.response)</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>Reached token limit - reverting to previous context state
</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>## Overview of Dr. Jordan Hayes
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[14]</span><span class="ansi-green-fg">, line 2</span>
<span class="ansi-green-fg"> 1</span> question = <span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">Tell me about Dr. Jordan Hayes</span><span class="ansi-yellow-fg">"</span>
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">2</span> result = <span class="ansi-bold" style="color: rgb(0,135,0)">await</span> <span class="ansi-yellow-bg">search_engine</span>.search(question)
<span class="ansi-green-fg"> 3</span> <span style="color: rgb(0,135,0)">print</span>(result.response)
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 significantly to the team's efforts by analyzing and working on alien technology. Their analytical mind and reflective nature are crucial in navigating the complexities of the mission. Hayes is recognized for their ability to adapt to unknown variables, which is essential given the unpredictable nature of the operation [Data: Reports (1); Entities (2, 13); Relationships (5, 9, 18, 51)].
## Professional Relationships
Dr. Hayes maintains professional relationships with other key members of the Paranormal Military Squad, including Taylor Cruz and Sam Rivera. Their interactions with Cruz are marked by differing views on protocol and adaptability, highlighting a complex relationship characterized by moments of mutual respect. With Sam Rivera, Hayes shares a common belief in the importance of adaptability, which is vital for the success of Operation: Dulce [Data: Reports (1); Relationships (5, 9, 25)].
## Analytical Insights and Skepticism
Dr. Hayes is portrayed as skeptical of strict adherence to protocols, emphasizing the need for adaptability and acknowledging the unknown variables that exceed the known. This skepticism is evident in their interactions and comments during briefings, where they provide analytical insights and express concerns about the mission. Hayes's ability to identify suspicious elements, such as a hidden panel within the base, further underscores their critical role in the mission [Data: Claims (2, 6, 10); Sources (0)].
In summary, Dr. Jordan Hayes is a vital member of the Paranormal Military Squad, contributing their scientific expertise and analytical skills to the success of Operation: Dulce. Their ability to adapt and their professional relationships with other team members are key components of their role in the mission.
</pre>
<span class="ansi-red-fg">NameError</span>: name 'search_engine' is not defined</pre>
</div>
</div>
</div>
@ -3588,78 +3517,16 @@ In summary, Dr. Jordan Hayes is a vital member of the Paranormal Military Squad,
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child jp-OutputArea-executeResult">
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[15]:</div>
<div class="jp-RenderedHTMLCommon jp-RenderedHTML jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/html" tabindex="0">
<div>
<style scoped="">
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[15]</span><span class="ansi-green-fg">, line 1</span>
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">1</span> <span class="ansi-yellow-bg">result</span>.context_data[<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">entities</span><span class="ansi-yellow-fg">"</span>].head()
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
</style>
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>id</th>
<th>entity</th>
<th>description</th>
<th>number of relationships</th>
<th>in_context</th>
</tr>
</thead>
<tbody>
<tr>
<th>0</th>
<td>2</td>
<td>JORDAN HAYES</td>
<td>Dr. Jordan Hayes is a scientist and a member o...</td>
<td>9</td>
<td>True</td>
</tr>
<tr>
<th>1</th>
<td>13</td>
<td>LAB</td>
<td>A lab where Dr. Jordan Hayes works on alien te...</td>
<td>1</td>
<td>True</td>
</tr>
<tr>
<th>2</th>
<td>10</td>
<td>AGENT HAYES</td>
<td>Agent Hayes is a member of the team exploring ...</td>
<td>5</td>
<td>True</td>
</tr>
<tr>
<th>3</th>
<td>12</td>
<td>AGENT CRUZ</td>
<td></td>
<td>5</td>
<td>True</td>
</tr>
<tr>
<th>4</th>
<td>15</td>
<td>BRIEFING ROOM</td>
<td></td>
<td>2</td>
<td>True</td>
</tr>
</tbody>
</table>
</div>
<span class="ansi-red-fg">NameError</span>: name 'result' is not defined</pre>
</div>
</div>
</div>
@ -3695,97 +3562,23 @@ In summary, Dr. Jordan Hayes is a vital member of the Paranormal Military Squad,
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child jp-OutputArea-executeResult">
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[16]:</div>
<div class="jp-RenderedHTMLCommon jp-RenderedHTML jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/html" tabindex="0">
<div>
<style scoped="">
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[16]</span><span class="ansi-green-fg">, line 1</span>
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">1</span> <span class="ansi-yellow-bg">result</span>.context_data[<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">relationships</span><span class="ansi-yellow-fg">"</span>].head()
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
</style>
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>id</th>
<th>source</th>
<th>target</th>
<th>description</th>
<th>weight</th>
<th>links</th>
<th>in_context</th>
</tr>
</thead>
<tbody>
<tr>
<th>0</th>
<td>5</td>
<td>TAYLOR CRUZ</td>
<td>JORDAN HAYES</td>
<td>Taylor Cruz and Jordan Hayes have a profession...</td>
<td>7.0</td>
<td>1</td>
<td>True</td>
</tr>
<tr>
<th>1</th>
<td>9</td>
<td>JORDAN HAYES</td>
<td>SAM RIVERA</td>
<td>Jordan Hayes and Sam Rivera are both agents wo...</td>
<td>14.0</td>
<td>4</td>
<td>True</td>
</tr>
<tr>
<th>2</th>
<td>25</td>
<td>JORDAN HAYES</td>
<td>TAYLOR CRUZ</td>
<td>Jordan Hayes and Taylor Cruz are both agents w...</td>
<td>18.0</td>
<td>1</td>
<td>True</td>
</tr>
<tr>
<th>3</th>
<td>6</td>
<td>TAYLOR CRUZ</td>
<td>SAM RIVERA</td>
<td>Taylor Cruz and Sam Rivera are both agents wor...</td>
<td>20.0</td>
<td>4</td>
<td>True</td>
</tr>
<tr>
<th>4</th>
<td>10</td>
<td>JORDAN HAYES</td>
<td>PARANORMAL MILITARY SQUAD</td>
<td>Jordan Hayes is a member of the Paranormal Mil...</td>
<td>9.0</td>
<td>3</td>
<td>True</td>
</tr>
</tbody>
</table>
<span class="ansi-red-fg">NameError</span>: name 'result' is not defined</pre>
</div>
</div>
</div>
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
@ -3812,6 +3605,25 @@ In summary, Dr. Jordan Hayes is a vital member of the Paranormal Military Squad,
</div>
</div>
</div>
<div class="jp-Cell-outputWrapper">
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[17]</span><span class="ansi-green-fg">, line 1</span>
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">1</span> <span class="ansi-bold" style="color: rgb(0,135,0)">if</span> <span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">reports</span><span class="ansi-yellow-fg">"</span> <span class="ansi-bold" style="color: rgb(175,0,255)">in</span> <span class="ansi-yellow-bg">result</span>.context_data:
<span class="ansi-green-fg"> 2</span> result.context_data[<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">reports</span><span class="ansi-yellow-fg">"</span>].head()
<span class="ansi-red-fg">NameError</span>: name 'result' is not defined</pre>
</div>
</div>
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell">
@ -3843,50 +3655,16 @@ In summary, Dr. Jordan Hayes is a vital member of the Paranormal Military Squad,
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child jp-OutputArea-executeResult">
<div class="jp-OutputPrompt jp-OutputArea-prompt">Out[18]:</div>
<div class="jp-RenderedHTMLCommon jp-RenderedHTML jp-OutputArea-output jp-OutputArea-executeResult" data-mime-type="text/html" tabindex="0">
<div>
<style scoped="">
.dataframe tbody tr th:only-of-type {
vertical-align: middle;
}
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[18]</span><span class="ansi-green-fg">, line 1</span>
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">1</span> <span class="ansi-yellow-bg">result</span>.context_data[<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">sources</span><span class="ansi-yellow-fg">"</span>].head()
.dataframe tbody tr th {
vertical-align: top;
}
.dataframe thead th {
text-align: right;
}
</style>
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th></th>
<th>id</th>
<th>text</th>
</tr>
</thead>
<tbody>
<tr>
<th>0</th>
<td>0</td>
<td># Operation: Dulce\n\n## Chapter 1\n\nThe thru...</td>
</tr>
<tr>
<th>1</th>
<td>2</td>
<td>differently than praise from others. This was...</td>
</tr>
<tr>
<th>2</th>
<td>3</td>
<td>contrast to the rigid silence enveloping the ...</td>
</tr>
</tbody>
</table>
</div>
<span class="ansi-red-fg">NameError</span>: name 'result' is not defined</pre>
</div>
</div>
</div>
@ -3926,21 +3704,15 @@ In summary, Dr. Jordan Hayes is a vital member of the Paranormal Military Squad,
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre> 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
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[19]</span><span class="ansi-green-fg">, line 1</span>
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">1</span> <span class="ansi-bold" style="color: rgb(0,135,0)">if</span> <span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">claims</span><span class="ansi-yellow-fg">"</span> <span class="ansi-bold" style="color: rgb(175,0,255)">in</span> <span class="ansi-yellow-bg">result</span>.context_data:
<span class="ansi-green-fg"> 2</span> <span style="color: rgb(0,135,0)">print</span>(result.context_data[<span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">claims</span><span class="ansi-yellow-fg">"</span>].head())
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
</pre>
<span class="ansi-red-fg">NameError</span>: name 'result' is not defined</pre>
</div>
</div>
</div>
@ -3968,8 +3740,8 @@ In summary, Dr. Jordan Hayes is a vital member of the Paranormal Military Squad,
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell jp-mod-noOutputs">
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell-inputWrapper" tabindex="0">
<div class="jp-Collapser jp-InputCollapser jp-Cell-inputCollapser">
</div>
@ -4006,6 +3778,30 @@ In summary, Dr. Jordan Hayes is a vital member of the Paranormal Military Squad,
</div>
</div>
</div>
<div class="jp-Cell-outputWrapper">
<div class="jp-Collapser jp-OutputCollapser jp-Cell-outputCollapser">
</div>
<div class="jp-OutputArea jp-Cell-outputArea">
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[20]</span><span class="ansi-green-fg">, line 3</span>
<span class="ansi-green-fg"> 1</span> question_generator = LocalQuestionGen(
<span class="ansi-green-fg"> 2</span> model=chat_model,
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">3</span> context_builder=<span class="ansi-yellow-bg">context_builder</span>,
<span class="ansi-green-fg"> 4</span> token_encoder=token_encoder,
<span class="ansi-green-fg"> 5</span> model_params=model_params,
<span class="ansi-green-fg"> 6</span> context_builder_params=local_context_params,
<span class="ansi-green-fg"> 7</span> )
<span class="ansi-red-fg">NameError</span>: name 'context_builder' is not defined</pre>
</div>
</div>
</div>
</div>
</div>
</div><div class="jp-Cell jp-CodeCell jp-Notebook-cell">
<div class="jp-Cell jp-CodeCell jp-Notebook-cell">
@ -4054,15 +3850,20 @@ print(candidate_questions.response)</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="application/vnd.jupyter.stderr" tabindex="0">
<pre>Reached token limit - reverting to previous context state
</pre>
</div>
</div>
<div class="jp-OutputArea-child">
<div class="jp-OutputPrompt jp-OutputArea-prompt"></div>
<div class="jp-RenderedText jp-OutputArea-output" data-mime-type="text/plain" tabindex="0">
<pre>['- What is the role of Agent Alex Mercer in the exploration of the Dulce base?', "- How does Agent Taylor Cruz's leadership style impact the mission at the Dulce base?", '- What expertise does Dr. Jordan Hayes bring to the team exploring the Dulce base?', '- How does Sam Rivera contribute to the mission at the Dulce base with their cybersecurity skills?', '- What are the main objectives of Operation: Dulce involving the Paranormal Military Squad?']
</pre>
<pre>
<span class="ansi-red-fg">---------------------------------------------------------------------------</span>
<span class="ansi-red-fg">NameError</span> Traceback (most recent call last)
<span class="ansi-cyan-fg">Cell</span><span class="ansi-cyan-fg"> </span><span class="ansi-green-fg">In[21]</span><span class="ansi-green-fg">, line 5</span>
<span class="ansi-green-fg"> 1</span> question_history = [
<span class="ansi-green-fg"> 2</span> <span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">Tell me about Agent Mercer</span><span class="ansi-yellow-fg">"</span>,
<span class="ansi-green-fg"> 3</span> <span class="ansi-yellow-fg">"</span><span class="ansi-yellow-fg">What happens in Dulce military base?</span><span class="ansi-yellow-fg">"</span>,
<span class="ansi-green-fg"> 4</span> ]
<span class="ansi-green-fg">----&gt; </span><span class="ansi-green-fg">5</span> candidate_questions = <span class="ansi-bold" style="color: rgb(0,135,0)">await</span> <span class="ansi-yellow-bg">question_generator</span>.agenerate(
<span class="ansi-green-fg"> 6</span> question_history=question_history, context_data=<span class="ansi-bold" style="color: rgb(0,135,0)">None</span>, question_count=<span class="ansi-green-fg">5</span>
<span class="ansi-green-fg"> 7</span> )
<span class="ansi-green-fg"> 8</span> <span style="color: rgb(0,135,0)">print</span>(candidate_questions.response)
<span class="ansi-red-fg">NameError</span>: name 'question_generator' is not defined</pre>
</div>
</div>
</div>

Binary file not shown.