Thank you for your interest in contributing to GraphRAG-SDK! We welcome contributions in any form—whether it's reporting issues, suggesting new features, improving documentation, or submitting code. This guide will help you get started.
Please make sure to review and follow our Code of Conduct. We expect all contributors to be respectful and considerate in all interactions.
To report a bug:
- First, check the issue tracker to see if the issue has already been reported.
- If not, open a new issue with the following information:
- Steps to reproduce the issue.
- The expected outcome.
- The actual outcome, with any relevant error messages or logs.
If you have a feature suggestion:
- Open an issue to start a discussion about the feature and its potential impact.
- Wait for feedback from maintainers before starting any implementation work.
Help us by improving the documentation, which may include:
- Fixing any typos or broken links.
- Adding examples to clarify functionality.
- Submit a pull request directly for minor updates, or open an issue for larger changes.
To set up GraphRAG-SDK for local development:
-
Fork the repository and clone your fork:
git clone https://github.com/your-username/GraphRAG-SDK.git cd GraphRAG-SDK
-
Install the required dependencies:
poetry install --extras "all"
Before submitting a pull request, please make sure you follow these guidelines:
-
Fork and branch: Create a new branch from
main
for your work:git checkout -b feature-branch
-
Commits: Write clear and concise commit messages.
git commit -m "Add feature X to improve Y"
-
Link issues: If your PR addresses an existing issue, mention it in the PR (e.g.,
Closes #123
). -
Testing: Ensure that your changes are properly tested before submitting the PR.
-
Documentation: Update any relevant documentation if your changes introduce new features or alter existing behavior.
Once ready, push your branch:
git push origin feature-branch
Then, open a pull request from your fork to the main repository.
We use GitHub Issues for tracking bugs, feature requests, and questions. When opening an issue, please:
- Provide a clear and descriptive title.
- Use labels like bug, enhancement, or documentation to categorize your issue.
Testing is essential for ensuring code quality in GraphRAG-SDK. Before submitting your changes:
- Write tests: Ensure all new functionality is covered by tests.
- Run tests: Ensure that all tests pass.
-
export PROJECT_ID=${PROJECT_ID} export REGION=${REGION} export OPENAI_API_KEY=${OPENAI_API_KEY} export GOOGLE_API_KEY=${GOOGLE_API_KEY} poetry run pytest
We truly appreciate your time and effort in contributing to GraphRAG-SDK. Every contribution helps improve the project for everyone!