Skip to content

Commit 6192692

Browse files
authored
Restructure project as monorepo. (#2111)
* Restructure project as monorepo.
1 parent c43a58c commit 6192692

File tree

404 files changed

+2315
-1893
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

404 files changed

+2315
-1893
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
- name: Install dependencies
3333
shell: bash
34-
run: uv sync
34+
run: uv sync --all-packages
3535

3636
- name: mkdocs build
3737
shell: bash

.github/workflows/python-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- name: Install dependencies
6868
shell: bash
6969
run: |
70-
uv sync
70+
uv sync --all-packages
7171
uv pip install gensim
7272
7373
- name: Check
@@ -76,7 +76,7 @@ jobs:
7676
7777
- name: Build
7878
run: |
79-
uv build
79+
uv build --all-packages
8080
8181
- name: Unit Test
8282
run: |

.github/workflows/python-integration-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ jobs:
6767
- name: Install dependencies
6868
shell: bash
6969
run: |
70-
uv sync
70+
uv sync --all-packages
7171
uv pip install gensim
7272
7373
- name: Build
7474
run: |
75-
uv build
75+
uv build --all-packages
7676
7777
- name: Install and start Azurite
7878
shell: bash

.github/workflows/python-notebook-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- name: Install dependencies
6868
shell: bash
6969
run: |
70-
uv sync
70+
uv sync --all-packages
7171
uv pip install gensim
7272
7373
- name: Notebook Test

.github/workflows/python-publish.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
runs-on: ubuntu-latest
1616
environment:
1717
name: pypi
18-
url: https://pypi.org/p/graphrag
1918
permissions:
2019
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
2120

@@ -35,18 +34,14 @@ jobs:
3534

3635
- name: Install dependencies
3736
shell: bash
38-
run: uv sync
37+
run: uv sync --all-packages
3938

4039
- name: Export Publication Version
4140
run: echo "version=$(uv version --short)" >> $GITHUB_OUTPUT
4241

4342
- name: Build Distributable
4443
shell: bash
45-
run: uv build
44+
run: uv run poe build
4645

4746
- name: Publish package distributions to PyPI
48-
uses: pypa/gh-action-pypi-publish@release/v1
49-
with:
50-
packages-dir: dist
51-
skip-existing: true
52-
verbose: true
47+
run: uv publish

.github/workflows/python-smoke-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ jobs:
7272
- name: Install dependencies
7373
shell: bash
7474
run: |
75-
uv sync
75+
uv sync --all-packages
7676
uv pip install gensim
7777
7878
- name: Build
7979
run: |
80-
uv build
80+
uv build --all-packages
8181
8282
- name: Install and start Azurite
8383
shell: bash

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,6 @@ docsite/
5858

5959
# Jupyter notebook
6060
.ipynb_checkpoints/
61+
62+
# Root build assets
63+
packages/*/LICENSE

.vscode/launch.json

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"args": [
1111
"index",
1212
"--root",
13-
"<path_to_index_folder>"
13+
"${input:root_folder}"
1414
],
1515
"console": "integratedTerminal"
1616
},
@@ -22,9 +22,9 @@
2222
"args": [
2323
"query",
2424
"--root",
25-
"<path_to_index_folder>",
26-
"--method", "basic",
27-
"--query", "What are the top themes in this story",
25+
"${input:root_folder}",
26+
"--method", "${input:query_method}",
27+
"--query", "${input:query}"
2828
]
2929
},
3030
{
@@ -35,7 +35,7 @@
3535
"args": [
3636
"poe", "prompt-tune",
3737
"--config",
38-
"<path_to_ragtest_root_demo>/settings.yaml",
38+
"${input:root_folder}/settings.yaml",
3939
]
4040
},
4141
{
@@ -74,5 +74,22 @@
7474
"console": "integratedTerminal",
7575
"justMyCode": false
7676
},
77-
]
77+
],
78+
"inputs": [
79+
{
80+
"id": "root_folder",
81+
"type": "promptString",
82+
"description": "Enter the root folder path"
83+
},
84+
{
85+
"id": "query_method",
86+
"type": "promptString",
87+
"description": "Enter the query method (e.g., 'global', 'local')"
88+
},
89+
{
90+
"id": "query",
91+
"type": "promptString",
92+
"description": "Enter the query text"
93+
}
94+
]
7895
}

docs/examples_notebooks/api_overview.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@
2828
"from pathlib import Path\n",
2929
"from pprint import pprint\n",
3030
"\n",
31-
"import pandas as pd\n",
32-
"\n",
3331
"import graphrag.api as api\n",
32+
"import pandas as pd\n",
3433
"from graphrag.config.load_config import load_config\n",
3534
"from graphrag.index.typing.pipeline_run_result import PipelineRunResult"
3635
]

docs/examples_notebooks/custom_vector_store.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@
6060
"\n",
6161
"import numpy as np\n",
6262
"import yaml\n",
63-
"\n",
6463
"from graphrag.config.models.vector_store_schema_config import VectorStoreSchemaConfig\n",
6564
"from graphrag.data_model.types import TextEmbedder\n",
6665
"\n",

0 commit comments

Comments
 (0)