Skip to content

Commit 728db4d

Browse files
committed
ruff formatting fixes
1 parent 7586c4c commit 728db4d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

docs/examples_notebooks/index_migration_to_v1.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,10 @@
202202
"metadata": {},
203203
"outputs": [],
204204
"source": [
205-
"from graphrag.index.flows.generate_text_embeddings import generate_text_embeddings\n",
206-
"\n",
207205
"from graphrag.cache.factory import CacheFactory\n",
208206
"from graphrag.callbacks.noop_workflow_callbacks import NoopWorkflowCallbacks\n",
209207
"from graphrag.config.embeddings import get_embedded_fields, get_embedding_settings\n",
208+
"from graphrag.index.flows.generate_text_embeddings import generate_text_embeddings\n",
210209
"\n",
211210
"# We only need to re-run the embeddings workflow, to ensure that embeddings for all required search fields are in place\n",
212211
"# We'll construct the context and run this function flow directly to avoid everything else\n",

examples_notebooks/community_contrib/yfiles-jupyter-graphs/graph-visualization.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@
2929
"\n",
3030
"import pandas as pd\n",
3131
"import tiktoken\n",
32-
"from graphrag.query.llm.oai.chat_openai import ChatOpenAI\n",
33-
"from graphrag.query.llm.oai.embedding import OpenAIEmbedding\n",
34-
"from graphrag.query.llm.oai.typing import OpenaiApiType\n",
3532
"\n",
3633
"from graphrag.query.context_builder.entity_extraction import EntityVectorStoreKey\n",
3734
"from graphrag.query.indexer_adapters import (\n",
@@ -41,6 +38,9 @@
4138
" read_indexer_reports,\n",
4239
" read_indexer_text_units,\n",
4340
")\n",
41+
"from graphrag.query.llm.oai.chat_openai import ChatOpenAI\n",
42+
"from graphrag.query.llm.oai.embedding import OpenAIEmbedding\n",
43+
"from graphrag.query.llm.oai.typing import OpenaiApiType\n",
4444
"from graphrag.query.structured_search.local_search.mixed_context import (\n",
4545
" LocalSearchMixedContext,\n",
4646
")\n",

0 commit comments

Comments
 (0)