Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: README latest and main installation #4741

Merged
merged 2 commits into from
Apr 26, 2023
Merged

fix: README latest and main installation #4741

merged 2 commits into from
Apr 26, 2023

Conversation

dfokina
Copy link
Contributor

@dfokina dfokina commented Apr 24, 2023

Fixing README to explain how to install from main branch

Related Issues

Proposed Changes:

  • Current installation is from the latest branch
  • Added instructions on how to install from main

How did you test it?

Notes for the reviewer

Checklist

  • I have read the contributors guidelines and the code of conduct
  • I have updated the related issue with new insights and changes
  • I added tests that demonstrate the correct behavior of the change
  • I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test:.
  • I documented my code
  • I ran pre-commit hooks and fixed any issue

Fixing README to explain how to install from main branch
@dfokina dfokina requested review from a team as code owners April 24, 2023 12:01
@dfokina dfokina requested review from ZanSara and removed request for a team April 24, 2023 12:01
@dfokina dfokina added the type:documentation Improvements on the docs label Apr 24, 2023
Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking much better than before already. 👍 I left a few minor comments with change requests but nothing too big. The installation instructions should briefly explain the different extras and maybe link to the list of extras: https://github.com/deepset-ai/haystack/blob/main/pyproject.toml#L93
One remark regarding reviewers: Once you open a PR, a reviewer from the core engineering team will be auto assigned. In case you want a different person to review the PR instead, you can unassign the other reviewer. Thereby we don't end up with two reviews unless they are both needed.

README.md Outdated
@@ -102,14 +102,27 @@ This command installs everything needed for basic Pipelines that use an Elastics

**Full Installation**

To use more advanced features, like certain DocumentStores, FileConverters, OCR, or Ray, install further dependencies. The following command installs the latest version of Haystack and all its dependencies from the main branch:
To use more advanced features, like certain DocumentStores, FileConverters, OCR, or Ray, install further dependencies. The following command installs the most recent version of Haystack and all its dependencies from the latest branch:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove from the latest branch. That's not what we are showing in the pip instal command and it contradicts most recent version. If you think it helps, you could mention latest release here and maybe even link to the release notes: https://github.com/deepset-ai/haystack/releases

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be more consistent with the previous description of the basic version of Haystack's latest release, we could write here sth like full installation of Haystack's latest release with all its dependencies.

README.md Outdated

```
pip install --upgrade pip
pip install 'farm-haystack[all]' ## or 'all-gpu' for the GPU-enabled dependencies
```

**Installing the REST API** Haystack comes packaged with a REST API so that you can deploy it as a service. Run the following command from the root directory of the Haystack repo to install REST_API:
If you want to try out the newest features that are not in an official release yet, you can install Haystack from the main branch. The following commands install from `main` with all its dependencies:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the pip install -e, users need to clone the git repository before so we should briefly mention that. It's for users who want to make changes to Haystack's code and maybe even contribute.

README.md Outdated
or

```
pip install git+https://github.com/deepset-ai/haystack.git@main#egg=farm-haystack[colab,ocr]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This installs Haystack from the main branch but without the need for cloning it before and it installs the colab and ocr extras. This example command needs more descriptions. It's also a good example for users who want to install from a branch other than main

@julian-risch julian-risch removed the request for review from ZanSara April 24, 2023 13:49
@dfokina
Copy link
Contributor Author

dfokina commented Apr 25, 2023

@julian-risch I made some improvements, please review :)

@julian-risch julian-risch self-requested a review April 26, 2023 12:58
Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good to me! 👍 Thank you for addressing all the change requests. You can merge this PR now.

@dfokina dfokina merged commit 2f71047 into main Apr 26, 2023
@dfokina dfokina deleted the fix_readme branch April 26, 2023 13:08
koganei pushed a commit to koganei/haystack that referenced this pull request Apr 29, 2023
Fixing README to explain how to install from main branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:documentation Improvements on the docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Docs] README doesn't explain how to install from main branch
2 participants