Skip to content

Commit d6e6191

Browse files
committed
Format
1 parent a4ffc3d commit d6e6191

File tree

4 files changed

+9
-13
lines changed

4 files changed

+9
-13
lines changed

docs/examples_notebooks/api_overview.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,10 @@
2828
"from pathlib import Path\n",
2929
"from pprint import pprint\n",
3030
"\n",
31+
"import graphrag.api as api\n",
3132
"import pandas as pd\n",
3233
"from graphrag.config.load_config import load_config\n",
33-
"from graphrag.index.typing.pipeline_run_result import PipelineRunResult\n",
34-
"\n",
35-
"import graphrag.api as api"
34+
"from graphrag.index.typing.pipeline_run_result import PipelineRunResult"
3635
]
3736
},
3837
{

docs/examples_notebooks/input_documents.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@
3030
"from pathlib import Path\n",
3131
"from pprint import pprint\n",
3232
"\n",
33+
"import graphrag.api as api\n",
3334
"import pandas as pd\n",
3435
"from graphrag.config.load_config import load_config\n",
35-
"from graphrag.index.typing.pipeline_run_result import PipelineRunResult\n",
36-
"\n",
37-
"import graphrag.api as api"
36+
"from graphrag.index.typing.pipeline_run_result import PipelineRunResult"
3837
]
3938
},
4039
{

tests/verbs/test_create_community_reports.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44

55
from graphrag.config.models.graph_rag_config import GraphRagConfig
66
from graphrag.data_model.schemas import COMMUNITY_REPORTS_FINAL_COLUMNS
7-
from graphrag.index.workflows.create_community_reports import (
8-
run_workflow,
9-
)
10-
from graphrag.utils.storage import load_table_from_storage
11-
127
from graphrag.index.operations.summarize_communities.community_reports_extractor import (
138
CommunityReportResponse,
149
FindingModel,
1510
)
11+
from graphrag.index.workflows.create_community_reports import (
12+
run_workflow,
13+
)
14+
from graphrag.utils.storage import load_table_from_storage
1615

1716
from .util import (
1817
DEFAULT_MODEL_CONFIG,

unified-search-app/app/app_logic.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import logging
88
from typing import TYPE_CHECKING
99

10+
import graphrag.api as api
1011
import streamlit as st
1112
from knowledge_loader.data_sources.loader import (
1213
create_datasource,
@@ -17,8 +18,6 @@
1718
from state.session_variables import SessionVariables
1819
from ui.search import display_search_result
1920

20-
import graphrag.api as api
21-
2221
if TYPE_CHECKING:
2322
import pandas as pd
2423

0 commit comments

Comments
 (0)