Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
parkererickson-tg committed Dec 17, 2024
1 parent c493661 commit 5d7076a
Showing 1 changed file with 50 additions and 8 deletions.
58 changes: 50 additions & 8 deletions docs/notebooks/SupportAIDemo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 50,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -75,7 +75,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 51,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -107,12 +107,12 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"access = \"AKIARJ6KUJUIS7KJ27YO\"\n",
"sec = \"swYmXU+4yZbXiYCMfwSFxrcS0hNiOd6nzYog6VCZ\"\n",
"access = \"\"\n",
"sec = \"\"\n",
"res = conn.ai.createDocumentIngest(\n",
" data_source=\"s3\",\n",
" data_source_config={\"aws_access_key\": access, \"aws_secret_key\": sec},\n",
Expand Down Expand Up @@ -145,7 +145,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 52,
"metadata": {},
"outputs": [
{
Expand All @@ -154,13 +154,55 @@
"{'status': 'submitted'}"
]
},
"execution_count": 15,
"execution_count": 52,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"conn.ai.forceConsistencyUpdate(\"graphrag\")"
]
},
{
"cell_type": "code",
"execution_count": 49,
"metadata": {},
"outputs": [],
"source": [
"from pyTigerGraph import AsyncTigerGraphConnection\n",
"\n",
"conn = AsyncTigerGraphConnection(\n",
" host=host,\n",
" username=username,\n",
" password=password,\n",
" gsPort=\"31409\"\n",
")\n",
"\n",
"conn.graphname = \"pyTigerGraphRAG\"\n",
"\n",
"res = await conn.gsql(\"\"\"USE GRAPH pyTigerGraphRAG\n",
" CREATE QUERY hello() FOR GRAPH pyTigerGraphRAG{PRINT \"hello\";}\n",
" INSTALL QUERY hello\"\"\")"
]
},
{
"cell_type": "code",
"execution_count": 40,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"\"Using graph 'pyTigerGraphRAG'\\nline 2:53 extraneous input ''' expecting {ABORT, ALL, AND, ANY, AVG, BY, CASE, COALESCE, COLLECT, COLUMN, COMMIT, COUNT, DATETIME_ADD, DATETIME_SUB, DEFAULT, DIRECTED, DISTINCT, FALSE, FILE, GROUP, INSERT, ISEMPTY, JOIN, LASTHOP, LEFT, LIST, LOG, MAP, MATCH, MAX, MIN, NOT, NOW, NULL, ON, OR, OUTER, PATH, PER, PROJECT, RANGE, REPLACE, STDEV, STDEVP, SELECT_VERTEX, SEMIJOIN, SET, SRC, SUM, TGT, TO_DATETIME, TRIM, TRUE, UNDIRECTED, UPDATE, VIRTUAL, FILTERTYPE, GSQL_INT_MAX, GSQL_INT_MIN, GSQL_UINT_MAX, '__ENGINE__E_ATTR', '__ENGINE__SRC_ATTR', '__ENGINE__TGT_ATTR', '__ENGINE__V_ATTR', '__ENGINE__SRC_VAL', '__ENGINE__TGT_VAL', '__ENGINE__V_VAL', '__ENGINE__MESSAGE', '__ENGINE__CONTEXT', '__ENGINE__REQUEST', '__ENGINE__SERVICEAPI', 'type', '(', '[', '-', '.', '_', CONST_INT, CONST_STR, NAME, GACCNAME}\\nline 2:59 extraneous input ''' expecting {TO_CSV, WHERE, WITH_EMBEDDING, ',', ';'}\\nParsing encountered 2 syntax error(s)\\n\\nSaved as draft query with type/semantic error: [hello].\\nThe status of query hello is DRAFT, skip.\\nSemantic Check Fails: Graph pyTigerGraphRAG: all queries in this catalog have been installed already.\\nQuery installation finished.\""
]
},
"execution_count": 40,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"conn.ai.forceConsistencyUpdate()"
"res"
]
},
{
Expand Down

0 comments on commit 5d7076a

Please sign in to comment.