Skip to content

Commit a58e0c4

Browse files
committed
Fresh code upload - 2025-07-20 02:00:01
0 parents  commit a58e0c4

Some content is hidden

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

62 files changed

+24622
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Bug Report
2+
description: File a bug report
3+
title: "[Bug]:"
4+
labels: ["bug", "triage"]
5+
6+
body:
7+
- type: checkboxes
8+
id: existingcheck
9+
attributes:
10+
label: Do you need to file an issue?
11+
description: Please help us manage our time by avoiding duplicates and common bugs with the steps below.
12+
options:
13+
- label: I have searched the existing issues and this bug is not already filed.
14+
- label: I believe this is a legitimate bug, not just a question or feature request.
15+
- type: textarea
16+
id: description
17+
attributes:
18+
label: Describe the bug
19+
description: A clear and concise description of what the bug is.
20+
placeholder: What went wrong?
21+
- type: textarea
22+
id: reproduce
23+
attributes:
24+
label: Steps to reproduce
25+
description: Steps to reproduce the behavior.
26+
placeholder: How can we replicate the issue?
27+
- type: textarea
28+
id: expected_behavior
29+
attributes:
30+
label: Expected Behavior
31+
description: A clear and concise description of what you expected to happen.
32+
placeholder: What should have happened?
33+
- type: textarea
34+
id: configused
35+
attributes:
36+
label: LightRAG Config Used
37+
description: The LightRAG configuration used for the run.
38+
placeholder: The settings content or LightRAG configuration
39+
value: |
40+
# Paste your config here
41+
- type: textarea
42+
id: screenshotslogs
43+
attributes:
44+
label: Logs and screenshots
45+
description: If applicable, add screenshots and logs to help explain your problem.
46+
placeholder: Add logs and screenshots here
47+
- type: textarea
48+
id: additional_information
49+
attributes:
50+
label: Additional Information
51+
description: |
52+
- LightRAG Version: e.g., v0.1.1
53+
- Operating System: e.g., Windows 10, Ubuntu 20.04
54+
- Python Version: e.g., 3.8
55+
- Related Issues: e.g., #1
56+
- Any other relevant information.
57+
value: |
58+
- LightRAG Version:
59+
- Operating System:
60+
- Python Version:
61+
- Related Issues:

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Feature Request
2+
description: File a feature request
3+
labels: ["enhancement"]
4+
title: "[Feature Request]:"
5+
6+
body:
7+
- type: checkboxes
8+
id: existingcheck
9+
attributes:
10+
label: Do you need to file a feature request?
11+
description: Please help us manage our time by avoiding duplicates and common feature request with the steps below.
12+
options:
13+
- label: I have searched the existing feature request and this feature request is not already filed.
14+
- label: I believe this is a legitimate feature request, not just a question or bug.
15+
- type: textarea
16+
id: feature_request_description
17+
attributes:
18+
label: Feature Request Description
19+
description: A clear and concise description of the feature request you would like.
20+
placeholder: What this feature request add more or improve?
21+
- type: textarea
22+
id: additional_context
23+
attributes:
24+
label: Additional Context
25+
description: Add any other context or screenshots about the feature request here.
26+
placeholder: Any additional information

.github/ISSUE_TEMPLATE/question.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Question
2+
description: Ask a general question
3+
labels: ["question"]
4+
title: "[Question]:"
5+
6+
body:
7+
- type: checkboxes
8+
id: existingcheck
9+
attributes:
10+
label: Do you need to ask a question?
11+
description: Please help us manage our time by avoiding duplicates and common questions with the steps below.
12+
options:
13+
- label: I have searched the existing question and discussions and this question is not already answered.
14+
- label: I believe this is a legitimate question, not just a bug or feature request.
15+
- type: textarea
16+
id: question
17+
attributes:
18+
label: Your Question
19+
description: A clear and concise description of your question.
20+
placeholder: What is your question?
21+
- type: textarea
22+
id: context
23+
attributes:
24+
label: Additional Context
25+
description: Provide any additional context or details that might help us understand your question better.
26+
placeholder: Add any relevant information here

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "pip" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/pull_request_template.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!--
2+
Thanks for contributing to Code Agent!
3+
4+
Please ensure your pull request is ready for review before submitting.
5+
6+
About this template
7+
8+
This template helps contributors provide a clear and concise description of their changes. Feel free to adjust it as needed.
9+
-->
10+
11+
## Description
12+
13+
[Briefly describe the changes made in this pull request.]
14+
15+
## Related Issues
16+
17+
[Reference any related issues or tasks addressed by this pull request.]
18+
19+
## Changes Made
20+
21+
[List the specific changes made in this pull request.]
22+
23+
## Checklist
24+
25+
- [ ] Changes tested locally
26+
- [ ] Code reviewed
27+
- [ ] Documentation updated (if necessary)
28+
- [ ] Unit tests added (if applicable)
29+
30+
## Additional Notes
31+
32+
[Add any additional notes or context for the reviewer(s).]

.github/workflows/linting.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Linting and Formatting
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
lint-and-format:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v2
21+
with:
22+
python-version: '3.x'
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install pre-commit
28+
29+
- name: Run pre-commit
30+
run: pre-commit run --all-files --show-diff-on-failure

.gitignore

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Python-related files
2+
__pycache__/
3+
*.py[cod]
4+
*.egg-info/
5+
.eggs/
6+
*.tgz
7+
*.tar.gz
8+
*.ini
9+
10+
# Virtual Environment
11+
.venv/
12+
env/
13+
venv/
14+
*.env*
15+
.env_example
16+
17+
# Build / Distribution
18+
dist/
19+
build/
20+
site/
21+
22+
# Logs / Reports
23+
*.log
24+
*.log.*
25+
*.logfire
26+
*.coverage/
27+
log/
28+
29+
# Caches
30+
.cache/
31+
.mypy_cache/
32+
.pytest_cache/
33+
.ruff_cache/
34+
.gradio/
35+
.history/
36+
temp/
37+
38+
# IDE / Editor Files
39+
.idea/
40+
.vscode/
41+
.vscode/settings.json
42+
43+
# Framework-specific files
44+
local_neo4jWorkDir/
45+
neo4jWorkDir/
46+
47+
# Data & Storage
48+
inputs/
49+
rag_storage/
50+
examples/input/
51+
examples/output/
52+
deepcode-mcp/agent_folders
53+
54+
# Miscellaneous
55+
.DS_Store
56+
TODO.md
57+
ignore_this.txt
58+
*.ignore.*
59+
60+
# unit-test files
61+
test_*
62+
run_indexer_with_filtering.py
63+
64+
# Cline files
65+
memory-bank/
66+

.pre-commit-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: trailing-whitespace
6+
exclude: ^lightrag/api/webui/
7+
- id: end-of-file-fixer
8+
exclude: ^lightrag/api/webui/
9+
- id: requirements-txt-fixer
10+
exclude: ^lightrag/api/webui/
11+
12+
13+
- repo: https://github.com/astral-sh/ruff-pre-commit
14+
rev: v0.6.4
15+
hooks:
16+
- id: ruff-format
17+
exclude: ^lightrag/api/webui/
18+
- id: ruff
19+
args: [--fix, --ignore=E402]
20+
exclude: ^lightrag/api/webui/
21+
22+
23+
- repo: https://github.com/mgedmin/check-manifest
24+
rev: "0.49"
25+
hooks:
26+
- id: check-manifest
27+
stages: [manual]
28+
exclude: ^lightrag/api/webui/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 ✨Data Intelligence Lab@HKU✨
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)