Skip to content

Commit 5db00d8

Browse files
committed
ruff formatting changes
1 parent fcf851a commit 5db00d8

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

docs/examples_notebooks/index_migration_to_v1.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,11 @@
202202
"metadata": {},
203203
"outputs": [],
204204
"source": [
205+
"from graphrag.index.flows.generate_text_embeddings import generate_text_embeddings\n",
206+
"\n",
205207
"from graphrag.cache.factory import CacheFactory\n",
206208
"from graphrag.callbacks.noop_workflow_callbacks import NoopWorkflowCallbacks\n",
207209
"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",
209210
"\n",
210211
"# We only need to re-run the embeddings workflow, to ensure that embeddings for all required search fields are in place\n",
211212
"# 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,6 +29,9 @@
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",
3235
"\n",
3336
"from graphrag.query.context_builder.entity_extraction import EntityVectorStoreKey\n",
3437
"from graphrag.query.indexer_adapters import (\n",
@@ -38,9 +41,6 @@
3841
" read_indexer_reports,\n",
3942
" read_indexer_text_units,\n",
4043
")\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",

tests/integration/storage/test_cosmosdb_storage.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
async def test_find():
2525
storage = CosmosDBPipelineStorage(
2626
connection_string=WELL_KNOWN_COSMOS_CONNECTION_STRING,
27-
database_name="testfind",
27+
base_dir="testfind",
2828
container_name="testfindcontainer",
2929
)
3030
try:
@@ -70,7 +70,7 @@ async def test_find():
7070
async def test_child():
7171
storage = CosmosDBPipelineStorage(
7272
connection_string=WELL_KNOWN_COSMOS_CONNECTION_STRING,
73-
database_name="testchild",
73+
base_dir="testchild",
7474
container_name="testchildcontainer",
7575
)
7676
try:
@@ -83,7 +83,7 @@ async def test_child():
8383
async def test_clear():
8484
storage = CosmosDBPipelineStorage(
8585
connection_string=WELL_KNOWN_COSMOS_CONNECTION_STRING,
86-
database_name="testclear",
86+
base_dir="testclear",
8787
container_name="testclearcontainer",
8888
)
8989
try:
@@ -113,7 +113,7 @@ async def test_clear():
113113
async def test_get_creation_date():
114114
storage = CosmosDBPipelineStorage(
115115
connection_string=WELL_KNOWN_COSMOS_CONNECTION_STRING,
116-
database_name="testclear",
116+
base_dir="testclear",
117117
container_name="testclearcontainer",
118118
)
119119
try:

0 commit comments

Comments
 (0)