Skip to content

Commit 6a00dec

Browse files
authored
[PLT-387] [PLT-386] Update readme and contributing (#1570)
1 parent dcd5123 commit 6a00dec

File tree

2 files changed

+31
-32
lines changed

2 files changed

+31
-32
lines changed

CONTRIBUTING.md

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
11
# Contribution Guide
22

3-
The repository is laid out as a monorepo where each moudle in the monorepo lives as a folder in `libs/`. Each module should have a `README.md` describing the specific purpose of the module and its development requirements.
3+
Thank you for expressing your interest in contributing! To ensure that your contribution aligns with our guidelines, please carefully review the following guide.
44

5-
This is a general guide applicable to all modules in the repository.
5+
As a note, the repository is organized as a monorepo, with each module residing in a folder within the `libs/` directory. Each module should have a corresponding `README.md` file that provides information on its purpose and how to contribute to it. This contribution guide applies to all modules in the repository.
66

77
## Table of Contents
88

99
- [General Guidelines](#general-guidelines)
10-
- [Branches](#branches-and-tags)
10+
- [Branche and Tags](#branches-and-tags)
1111
- [Release Steps](#release-steps)
12-
- [Jupyter Notebooks](#jupyter-notebooks)
12+
- [Github Workflows](#github-workflows)
1313
- [General Prerequisites](#general-prerequisites)
1414
- [Setup and Building](#setup-and-building)
1515
- [Testing](#testing)
16+
- [Documentation](#documentation)
1617

1718
## General Guidelines
1819

19-
Thank you for expressing your interest in contributing! To ensure that your contribution aligns with our guidelines, please carefully review the following before proceeding:
20-
2120
* For feature requests, we recommend consulting with [Labelbox Support](https://docs.labelbox.com/docs/contacting-customer-support) support or creating a [Github Issue](https://github.com/Labelbox/labelbox-python/issues).
22-
* We can only accept general solutions that address common issues rather than solutions designed for specific use cases. Example contributions encompass a wide range of activities, such as bug fixes and updates to dependencies.
2321
* Ensure that any new libraries added are compliant with the Apache license that governs the repository.
2422
* Ensure that you update any relevant docstrings and comments within the code you may add or change.
2523
* Ensure that any new Python components, such as classes, packages, or methods, that need to feature in the Labelbox documentation have entries in the file [index.rst](https://github.com/Labelbox/labelbox-python/blob/develop/docs/source/index.rst).
2624

2725
## Branches and Tags
2826

29-
* All development happens in per-feature branches prefixed by contributor's initials. For example `fs/feature_name`.
27+
* All development happens in feature branches ideally prefixed by contributor's initials. For example `fs/feature_name`.
3028
* Approved PRs are merged to the `develop` branch.
29+
* All releases align to a git tag.
3130

3231
## Release Steps
3332

@@ -37,7 +36,7 @@ Your contributions will be released as soon as it is approved and merged into th
3736

3837
![workflow](./docs/github-workflow.svg)
3938

40-
The above describes the workflows that currently exist.
39+
The above shows the Github workflows that currently exist in the repository.
4140

4241
* Github Branch Workflow
4342
* When you push to a branch, it will create a build of the SDK that runs tests against **staging**. It will publish the build to `test.pypi.org` which can be downloaded for testing. Also, a docker image is built which can be used for testing as it has the SDK installed.
@@ -77,23 +76,8 @@ rye run lint
7776

7877
## Documentation
7978

80-
To generate documentation for all modules (`ReadTheDocs`), run the following command.
79+
To generate documentation for all modules (`ReadTheDocs`), run the following command in the root of the repository.
8180

8281
```bash
8382
rye run docs
84-
```
85-
86-
## Jupyter Notebooks
87-
88-
We have samples in the `examples` directory and using them for testing can help increase your productivity.
89-
90-
Make sure your notebook will use your source code:
91-
1. `ipython profile create`
92-
2. `ipython locate` - will show where the config file is. This is the config file used by the jupyter server, since it runs via ipython
93-
3. Open the file (this should be ipython_config.py and it is usually located in ~/.ipython/profile_default) and add the following line of code:
94-
```
95-
c.InteractiveShellApp.exec_lines = [
96-
'import sys; sys.path.insert(0, "<labelbox-python root folder>")'
97-
]
98-
```
99-
4. Go to the root of your project and run `jupyter notebook` to start the server
83+
```

README.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
# Labelbox
1717

18-
Labelbox is a data-centric AI platform for enterprises to develop, optimize, and use AI to solve problems and power new products and services.
18+
Labelbox is a powerful data-centric AI platform that empowers enterprises to develop, optimize, and leverage AI to solve complex problems and drive innovation in their products and services.
1919

20-
Enterprises use Labelbox to curate data, generate high-quality human feedback data for computer vision and LLMs, evaluate model performance, and automate tasks by combining AI and human-centric workflows. The academic & research community uses Labelbox for cutting-edge AI research.
20+
With Labelbox, enterprises can easily curate and annotate data, generate high-quality human feedback data for computer vision and language models, evaluate and improve model performance, and automate tasks by seamlessly combining AI and human-centric workflows. The academic and research community also relies on Labelbox for cutting-edge AI research and experimentation.
2121

2222
Visit [Labelbox](http://labelbox.com/) for more information.
2323

@@ -26,6 +26,7 @@ Visit [Labelbox](http://labelbox.com/) for more information.
2626
- [Contribution Guidelines](#contribution-guidelines)
2727
- [Develop with AI Assistance](#develop-with-ai-assistance)
2828
- [Documentation](#documentation)
29+
- [Jupyter Notebooks](#jupyter-notebooks)
2930

3031
## Quick Start
3132

@@ -49,7 +50,7 @@ If you'd like to install the SDK with enhanced functionality, which additional o
4950
pip install "labelbox[data]"
5051
```
5152

52-
**If you want to installed a version of Labelbox built locally, be aware that only tagged commits have been validated to fully work! Installing the latest from develop is at your own risk!**
53+
**Please note that if you prefer to build and install your own version of the SDK, it is important to be aware that only tagged commits have been thoroughly tested. Building from the head of develop branch carries some level of risk.**
5354

5455
### Validate Installation and API Key
5556

@@ -65,7 +66,7 @@ task = dataset.create_data_rows(data_rows)
6566
task.wait_till_done()
6667
```
6768

68-
You should be set! Running the snippet above should create a dataset called `Test Dataset` with a single datarow with the text contents being `My First Data Row`. You can log into [Labelbox](http://labelbox.com/) to verify this. If you have any issues please file a Github Issue or contact [Labelbox Support](https://docs.labelbox.com/docs/contacting-customer-support) directly. For more advanced examples and information on the SDK, see [Documentation](#documentation) below.
69+
You should be set! Running the snippet above should create a dataset called `Test Dataset` with its content being `My First Data Row`. You can log into [Labelbox](http://labelbox.com/) to verify this. If you have any issues please file a Github Issue or contact [Labelbox Support](https://docs.labelbox.com/docs/contacting-customer-support) directly. For more advanced examples and information on the SDK, see [Documentation](#documentation) below.
6970

7071
## Contribution Guidelines
7172
We encourage anyone to contribute to this repository to help improve it. Please refer to [Contributing Guide](CONTRIBUTING.md) for detailed information on how to contribute. This guide also includes instructions for how to build and run the SDK locally.
@@ -75,8 +76,22 @@ We encourage anyone to contribute to this repository to help improve it. Please
7576
Using the [GPT repository loader](https://github.com/mpoon/gpt-repository-loader), we have created `lbx_prompt.txt` that contains data from all `.py` and `.md` files. The file has about 730k tokens. We recommend using Gemini 1.5 Pro with 1 million context length window.
7677

7778
## Documentation
78-
The SDK is well-documented to help developers get started quickly and use the SDK effectively. Here are some resources:
79+
The SDK is well-documented to help developers get started quickly and use the SDK effectively. Here are links to that documentation:
7980

8081
- [Labelbox Official Documentation](https://docs.labelbox.com/docs/overview)
8182
- [Jupyter Notebook Examples](https://github.com/Labelbox/labelbox-python/tree/master/examples)
82-
- [Python SDK Reference](https://labelbox-python.readthedocs.io/en/latest/)
83+
- [Python SDK Reference](https://labelbox-python.readthedocs.io/en/latest/)
84+
85+
## Jupyter Notebooks
86+
We have samples in the `examples` directory to help you get started with the SDK.
87+
88+
Make sure your notebook will use your source code:
89+
1. `ipython profile create`
90+
2. `ipython locate` - will show where the config file is. This is the config file used by the Jupyter server, since it runs via ipython
91+
3. Open the file (this should be ipython_config.py and it is usually located in ~/.ipython/profile_default) and add the following line of code:
92+
```
93+
c.InteractiveShellApp.exec_lines = [
94+
'import sys; sys.path.insert(0, "<labelbox-python root folder>")'
95+
]
96+
```
97+
4. Go to the root of your project and run `jupyter notebook` to start the server.

0 commit comments

Comments
 (0)