Elffuss BraidHub

kikocis/GraphRAG-SDK public

main · 3.4 KiBRenderedRawPermalink
1# Contributing to GraphRAG-SDK
2
3Thank you for your interest in contributing to **GraphRAG-SDK**!
4We welcome contributions in any form—whether it's reporting issues, suggesting new features, improving documentation, or submitting code.
5This guide will help you get started.
6
7## Table of Contents
8
9- [Code of Conduct](#code-of-conduct)
10- [How to Contribute](#how-to-contribute)
11- [Development Setup](#development-setup)
12- [Pull Request Guidelines](#pull-request-guidelines)
13- [Issue Tracking](#issue-tracking)
14- [Testing](#testing)
15
16## Code of Conduct
17
18Please make sure to review and follow our [Code of Conduct](./CODE_OF_CONDUCT.md).
19We expect all contributors to be respectful and considerate in all interactions.
20
21## How to Contribute
22
23### 1. Reporting Bugs
24
25To report a bug:
26- First, check the [issue tracker](https://github.com/FalkorDB/GraphRAG-SDK/issues) to see if the issue has already been reported.
27- If not, open a new issue with the following information:
28 - Steps to reproduce the issue.
29 - The expected outcome.
30 - The actual outcome, with any relevant error messages or logs.
31
32### 2. Proposing New Features
33
34If you have a feature suggestion:
35- Open an issue to start a discussion about the feature and its potential impact.
36- Wait for feedback from maintainers before starting any implementation work.
37
38### 3. Improving Documentation
39
40Help us by improving the documentation, which may include:
41- Fixing any typos or broken links.
42- Adding examples to clarify functionality.
43- Submit a pull request directly for minor updates, or open an issue for larger changes.
44
45## Development Setup
46
47To set up **GraphRAG-SDK** for local development:
48
491. Fork the repository and clone your fork:
50 ```bash
51 git clone https://github.com/your-username/GraphRAG-SDK.git
52 cd GraphRAG-SDK
53 ```
54
552. Install the required dependencies:
56 ```bash
57 poetry install
58 ```
59
60## Pull Request Guidelines
61
62Before submitting a pull request, please make sure you follow these guidelines:
63
64- **Fork and branch**: Create a new branch from `main` for your work:
65 ```bash
66 git checkout -b feature-branch
67 ```
68
69- **Commits**: Write clear and concise commit messages.
70 ```bash
71 git commit -m "Add feature X to improve Y"
72 ```
73
74- **Link issues**: If your PR addresses an existing issue, mention it in the PR (e.g., `Closes #123`).
75- **Testing**: Ensure that your changes are properly tested before submitting the PR.
76- **Documentation**: Update any relevant documentation if your changes introduce new features or alter existing behavior.
77
78Once ready, push your branch:
79```bash
80git push origin feature-branch
81```
82
83Then, open a pull request from your fork to the main repository.
84
85## Issue Tracking
86
87We use GitHub Issues for tracking bugs, feature requests, and questions. When opening an issue, please:
88- Provide a clear and descriptive title.
89- Use labels like **bug**, **enhancement**, or **documentation** to categorize your issue.
90
91## Testing
92
93Testing is essential for ensuring code quality in **GraphRAG-SDK**. Before submitting your changes:
94- **Write tests**: Ensure all new functionality is covered by tests.
95- **Run tests**: Ensure that all tests pass.
96-
97 ```bash
98 export PROJECT_ID=${PROJECT_ID}
99 export REGION=${REGION}
100 export OPENAI_API_KEY=${OPENAI_API_KEY}
101 export GOOGLE_API_KEY=${GOOGLE_API_KEY}
102 poetry run pytest
103 ```
104
105## Thank You!
106
107We truly appreciate your time and effort in contributing to **GraphRAG-SDK**. Every contribution helps improve the project for everyone!