Thanks for your interest in contributing! Please read carefully through our guidelines below to ensure that your contribution adheres to our project's standards.
To hold a safe space for all contributors, we expect all project participants to adhere to our Code of Conduct. Please read the full text so that you can understand what actions will and will not be tolerated.
We use GitHub Issues to track all tasks related to this project.
In order to contribute to a project on GitHub, you must first get a copy of the project running locally on your computer. This process is sometimes called a "build process", and every project's process will have different requirements. Some requirements are due to the project being hosted on GitHub, some are due to the programming language used, and some are due to the project's dependencies.
There are five steps to building this project:
- Set up Git and Install dependency
- Fork the repository
- Clone your fork
- Install dependencies
- Run the project
https://docs.github.com/en/get-started/getting-started-with-git/set-up-git
A fork is a copy of a repository. Forking a repository lets you make changes to your copy without affecting any of the original code.
Click Fork (in the top-right corner of the page) to copy this repository to your GitHub account.
Cloning our fork lets you download a copy of the repository to your computer.
Use git
to clone your fork
$ git clone https://github.com/YOUR-USERNAME/articulus_rag
First, navigate to the project's directory
$ cd articulus_rag
Next, use pip
to install the project's dependencies
$ pip install -r requirements.txt
Developers Note: Install the source code as a package in editable format
$ pip install -e .
$ python app.py
streamlit run <path-to-the-streamlit-app>
A pull request is a GitHub feature that lets you do just that!
There are three steps to submitting a pull request:
These instructions are designed to explain the bare minimum steps in a beginner-friendly way.
First, get a list of all the files you have changed.
$ git status
Next, stage the file you want to save. This will add the file to a new list that is ready to be saved.
$ git add .
Next, verify that the file has been staged correctly. Notice that the text colour has changed, and your file is now in a list that says "Changes to be committed" instead of "Changes not staged for commit"
$ git status
Finally, save your staged files.
$ git commit -m "commit_message"
You'll often hear this process called committing changes. It's the exact same thing.
With one simple git
command, you can send the changes you just committed locally to your fork on GitHub.
$ git push origin master
-
Open GitHub Desktop: Launch GitHub Desktop and log in to your GitHub account if you haven't already.
-
Clone the Repository:
- If you haven't cloned the articulus_rag repository yet, you can do so by clicking on the "File" menu and selecting "Clone Repository."
- Choose the articulus_rag repository from the list of repositories on GitHub and clone it to your local machine.
-
Switch to the Correct Branch:
- Ensure you are on the branch that you want to submit a pull request for.
- If you need to switch branches, you can do so by clicking on the "Current Branch" dropdown menu and selecting the desired branch.
-
Make Changes: Make your changes to the code or files in the repository using your preferred code editor.
-
Commit Changes:
- In GitHub Desktop, you'll see a list of the files you've changed. Check the box next to each file you want to include in the commit.
- Enter a summary and description for your changes in the "Summary" and "Description" fields, respectively. Click the "Commit to " button to commit your changes to the local branch.
-
Push Changes to GitHub: After committing your changes, click the "Push origin" button in the top right corner of GitHub Desktop to push your changes to your forked repository on GitHub.
-
Create a Pull Request:
- Go to the GitHub website and navigate to your fork of the articulus_rag repository.
- You should see a button to "Compare & pull request" between your fork and the original repository. Click on it.
- Review and Submit:
- On the pull request page, review your changes and add any additional information, such as a title and description, that you want to include with your pull request.
- Once you're satisfied, click the "Create pull request" button to submit your pull request.
- Find the New Pull Request button
- Select the option to compare across forks
- Select your username in the
head fork
option - Select your username in the
base
option* - Click Create Pull Request
You can refer to the following articles on basics of Git and GitHub and also contact the Project Mentors, in case you are stuck (using issues or creating a new discussion):
Start working on issue only after you got assigned that issue, and let the code owner put the special tags in case it is an open-source event 🚀.