You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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}\")"
68
59
},
69
60
{
70
61
"cell_type": "markdown",
@@ -87,22 +78,7 @@
87
78
"id": "6",
88
79
"metadata": {},
89
80
"outputs": [],
90
-
"source": [
91
-
"# Create context provider with fulltext search\n",
"\"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)"
0 commit comments