Skip to content

Commit aee9c92

Browse files
mtyinaverikitsch
andauthored
chore(docs): Minor adjustments to the colab (googleapis#161)
1) text-bison is no longer supported, switch to gemini-2.0-flash-001; 2) add allowed node types to restrict the number of different node types; Co-authored-by: Averi Kitsch <[email protected]>
1 parent 35a6342 commit aee9c92

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/graph_store.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,10 @@
225225
"from langchain_experimental.graph_transformers import LLMGraphTransformer\n",
226226
"from langchain_google_vertexai.llms import VertexAI\n",
227227
"\n",
228-
"llm = VertexAI(model_name=\"text-bison\")\n",
229-
"llm_transformer = LLMGraphTransformer(llm=llm)\n",
228+
"llm = VertexAI(model_name=\"gemini-2.0-flash-001\")\n",
229+
"llm_transformer = LLMGraphTransformer(\n",
230+
" llm=llm, allowed_nodes=[\"Person\", \"Company\", \"Product\"]\n",
231+
")\n",
230232
"\n",
231233
"\n",
232234
"def get_document_from_wiki(query):\n",
@@ -313,7 +315,7 @@
313315
"INSTANCE = \"\" # @param {type: \"string\"}\n",
314316
"DATABASE = \"\" # @param {type: \"string\"}\n",
315317
"GRAPH_NAME = \"\" # @param {type: \"string\"}\n",
316-
"USE_FLEXIBLE_SCHEMA = False # param {type: \"bool\"}"
318+
"USE_FLEXIBLE_SCHEMA = False # @param {type: \"boolean\"}"
317319
]
318320
},
319321
{

0 commit comments

Comments
 (0)