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

Extract dependencies from core list #4417

Closed
11 of 12 tasks
Tracked by #3760
ZanSara opened this issue Mar 15, 2023 · 0 comments · Fixed by #5147
Closed
11 of 12 tasks
Tracked by #3760

Extract dependencies from core list #4417

ZanSara opened this issue Mar 15, 2023 · 0 comments · Fixed by #5147
Assignees

Comments

@ZanSara
Copy link
Contributor

ZanSara commented Mar 15, 2023

Installing Haystack is really hard. It shouldn't be. This issue is about tracking efforts to remove dependencies from the core list and try-catch import statements.

Here is a list of all the dependencies we need to act on. Try-catch the dependencies aggressively and add an error message stating the dedicated extra to install. The goal is to be able to run import haystack without that dependency installed and having it fail only when a specific class is being initialized.

Steps

Other libraries to investigate

Outcome

The resulting list of core dependencies will look like:

"requests",  # API calls
"pydantic",  # for the primitive classes
"pandas", # basic dataframes handling
"rank_bm25",  # for InMemoryDocumentStore
"scikit-learn", # tfidf, sklearnqueryclassifier and some other metrics  -> might be removed later
"tqdm",  # progress bars in model download and training scripts
"networkx",  # graphs library
"posthog",  # telemetry
"tenacity",  # retry decorator
"jsonschema",   # Schema validation
"more_itertools" # Utilities

The above happily installs in a couple of seconds. Let's get to it! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants