Skip to content

Commit 3fe702b

Browse files
committed
cleanup
1 parent a536632 commit 3fe702b

File tree

1 file changed

+3
-27
lines changed

1 file changed

+3
-27
lines changed

Lab_6_Context_Providers/03_fulltext_context_provider.ipynb

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,7 @@
5555
"id": "4",
5656
"metadata": {},
5757
"outputs": [],
58-
"source": [
59-
"# Get configuration from environment\n",
60-
"config = get_agent_config()\n",
61-
"\n",
62-
"# Load Neo4j settings\n",
63-
"neo4j_settings = Neo4jSettings()\n",
64-
"\n",
65-
"print(f\"Neo4j URI: {neo4j_settings.uri}\")\n",
66-
"print(f\"Fulltext Index: {neo4j_settings.fulltext_index_name}\")"
67-
]
58+
"source": "# Get configuration from environment\nconfig = get_agent_config()\n\n# Load Neo4j settings\nneo4j_settings = Neo4jSettings()\n\n# Fulltext index name (must match the index created during data loading)\nFULLTEXT_INDEX = \"search_chunks\"\n\nprint(f\"Neo4j URI: {neo4j_settings.uri}\")\nprint(f\"Fulltext Index: {FULLTEXT_INDEX}\")"
6859
},
6960
{
7061
"cell_type": "markdown",
@@ -87,22 +78,7 @@
8778
"id": "6",
8879
"metadata": {},
8980
"outputs": [],
90-
"source": [
91-
"# Create context provider with fulltext search\n",
92-
"provider = Neo4jContextProvider(\n",
93-
" uri=neo4j_settings.uri,\n",
94-
" username=neo4j_settings.username,\n",
95-
" password=neo4j_settings.get_password(),\n",
96-
" index_name=neo4j_settings.fulltext_index_name,\n",
97-
" index_type=\"fulltext\",\n",
98-
" top_k=3,\n",
99-
" context_prompt=(\n",
100-
" \"## Knowledge Graph Context\\n\"\n",
101-
" \"Use the following information from the knowledge graph \"\n",
102-
" \"to answer questions about companies, products, and financials:\"\n",
103-
" ),\n",
104-
")"
105-
]
81+
"source": "# Create context provider with fulltext search\nprovider = Neo4jContextProvider(\n uri=neo4j_settings.uri,\n username=neo4j_settings.username,\n password=neo4j_settings.get_password(),\n index_name=FULLTEXT_INDEX,\n index_type=\"fulltext\",\n top_k=3,\n context_prompt=(\n \"## Knowledge Graph Context\\n\"\n \"Use the following information from the knowledge graph \"\n \"to answer questions about companies, products, and financials:\"\n ),\n)"
10682
},
10783
{
10884
"cell_type": "markdown",
@@ -247,4 +223,4 @@
247223
},
248224
"nbformat": 4,
249225
"nbformat_minor": 5
250-
}
226+
}

0 commit comments

Comments
 (0)