Skip to content

Commit d27f92d

Browse files
authored
Merge branch 'main' into dependabot/pip/ipykernel-7.1.0
2 parents 8d46c90 + b8ff7a9 commit d27f92d

File tree

8 files changed

+101
-59
lines changed

8 files changed

+101
-59
lines changed

.github/workflows/pypi-publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v6
1212
- name: Build and publish to pypi
13-
uses: JRubics/poetry-publish@v2.0
13+
uses: JRubics/poetry-publish@v2.1
1414
with:
1515
pypi_token: ${{ secrets.PYPI_API_TOKEN }}
1616
build_format: "sdist"

.github/workflows/spellcheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Checkout
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v6
1313
- name: Check Spelling
14-
uses: rojopolis/spellcheck-github-actions@0.33.1
14+
uses: rojopolis/spellcheck-github-actions@0.56.0
1515
with:
1616
config_path: .spellcheck.yml
1717
task_name: Markdown

.github/workflows/sync-dependencies.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
permissions:
1515
contents: write
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818
with:
1919
fetch-depth: 0
2020
ref: ${{ github.head_ref || github.ref }}
2121

2222
- name: Setup Python
23-
uses: actions/setup-python@v5
23+
uses: actions/setup-python@v6
2424
with:
2525
python-version: '3.11'
2626

.github/workflows/test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,29 +30,29 @@ jobs:
3030
model: [openai/gpt-4.1] # List of models
3131

3232
steps:
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@v6
3434

3535
- name: Set up Python
36-
uses: actions/setup-python@v5
36+
uses: actions/setup-python@v6
3737
with:
3838
python-version: 3.11.0 # Update with desired Python version
3939

4040
- name: Cache Poetry virtualenv
4141
id: cache
42-
uses: actions/cache@v4
42+
uses: actions/cache@v5
4343
with:
4444
path: ~/.poetry/virtualenvs
4545
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
4646
restore-keys: |
4747
${{ runner.os }}-poetry-
4848
4949
- id: "auth"
50-
uses: "google-github-actions/auth@v2"
50+
uses: "google-github-actions/auth@v3"
5151
with:
5252
credentials_json: ${{ secrets.GCP_SA_KEY }}
5353

5454
- name: "Set up Cloud SDK"
55-
uses: "google-github-actions/setup-gcloud@v2"
55+
uses: "google-github-actions/setup-gcloud@v3"
5656
with:
5757
version: ">= 363.0.0"
5858

.wordlist.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ orchestrators
1414
LLM
1515
env
1616
JSONL
17+
JSON
1718
CSV
1819
Orchestrator
1920
orchestrator
@@ -25,6 +26,7 @@ html
2526
https
2627
www
2728
faq
29+
codebase
2830
Ollama
2931
ollama
3032
Cypher

graphrag_sdk/document_loaders/csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self, path: str, rows_per_document: int = 500):
1414
self.rows_per_document = rows_per_document
1515

1616
def load(self) -> Iterator[Document]:
17-
with open(self.path, "r") as f:
17+
with open(self.path, "r", encoding='utf-8') as f:
1818
reader = csv.reader(f)
1919
rows = [row for row in reader]
2020
num_rows = len(rows)

poetry.lock

Lines changed: 60 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

style.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
# Refined Code Style Guidelines
3+
4+
## 1. Code Structure
5+
- **JSON Output Format**: Use a specific JSON output format for entity and relation extraction.
6+
- Entities should have "label" and "attributes" fields.
7+
- Relations should have "label", "source", "target", and "attributes" fields.
8+
- **Code Organization**: Maintain a consistent and logical structure throughout the codebase.
9+
- **Import Statement Simplification**: Optimize and simplify import statements for better readability and performance.
10+
11+
## 2. Documentation
12+
- **Documentation Clarity and Formatting**:
13+
- Ensure all documentation is clear, concise, and well-formatted.
14+
- Use proper Markdown formatting for consistency and readability.
15+
- **Documentation Improvement**: Continuously update and improve documentation to reflect the current state of the project.
16+
17+
## 3. Version Control and Dependency Management
18+
- **Version Control and Semantic Versioning**:
19+
- Use semantic versioning (MAJOR.MINOR.PATCH) for release management.
20+
- Follow consistent version control practices.
21+
- **Dependency Management**:
22+
- Keep dependencies up-to-date and properly managed.
23+
- Regularly review and update project dependencies.
24+
25+
## 4. Project Management
26+
- **Contributing Guidelines**: Provide clear guidelines for contributors to ensure consistency and quality of contributions.
27+
- **Open Source Licensing**: Ensure proper open-source licensing is in place and clearly communicated.

0 commit comments

Comments
 (0)