Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Dive Into Dl Pytorch | 13,747 | 2 years ago | 76 | apache-2.0 | Jupyter Notebook | |||||
本项目将《动手学深度学习》(Dive into Deep Learning)原书中的MXNet实现改为PyTorch实现。 | ||||||||||
Nlp Tutorial | 12,403 | 2 months ago | 34 | mit | Jupyter Notebook | |||||
Natural Language Processing Tutorial for Deep Learning Researchers | ||||||||||
Deeplearningexamples | 11,003 | 8 days ago | 238 | Jupyter Notebook | ||||||
State-of-the-Art Deep Learning scripts organized by models - easy to train and deploy with reproducible accuracy and performance on enterprise-grade infrastructure. | ||||||||||
Ml Nlp | 10,874 | a year ago | 29 | Jupyter Notebook | ||||||
此项目是机器学习(Machine Learning)、深度学习(Deep Learning)、NLP面试中常考到的知识点和代码实现,也是作为一个算法工程师必会的理论基础知识。 | ||||||||||
Haystack | 9,081 | 2 | a day ago | 29 | July 06, 2022 | 354 | apache-2.0 | Python | ||
:mag: Haystack is an open source NLP framework to interact with your data using Transformer models and LLMs (GPT-4, ChatGPT and alike). Haystack offers production-ready tools to quickly build complex question answering, semantic search, text generation applications, and more. | ||||||||||
Nlp_course | 8,250 | 6 months ago | 12 | mit | Jupyter Notebook | |||||
YSDA course in Natural Language Processing | ||||||||||
Ai For Beginners | 8,101 | 2 days ago | 15 | mit | Jupyter Notebook | |||||
12 Weeks, 24 Lessons, AI for All! | ||||||||||
Deeplearning | 7,463 | a year ago | 8 | apache-2.0 | Jupyter Notebook | |||||
深度学习入门教程, 优秀文章, Deep Learning Tutorial | ||||||||||
Tensorflow_cookbook | 6,085 | 2 months ago | 28 | mit | Jupyter Notebook | |||||
Code for Tensorflow Machine Learning Cookbook | ||||||||||
Tensorflow 2.x Tutorials | 5,496 | 3 years ago | 24 | Jupyter Notebook | ||||||
TensorFlow 2.x version's Tutorials and Examples, including CNN, RNN, GAN, Auto-Encoders, FasterRCNN, GPT, BERT examples, etc. TF 2.0版入门实例代码,实战教程。 |
Haystack is an end-to-end NLP framework that enables you to build NLP applications powered by LLMs, Transformer models, vector search and more. Whether you want to perform question answering, answer generation, semantic document search, or build tools that are capable of complex decision making and query resolution, you can use the state-of-the-art NLP models with Haystack to build end-to-end NLP applications solving your use case.
Pipelines: This is the standard Haystack structure that can connect to your data and perform on it NLP tasks that you define. The data in a Pipeline flows from one Node to the next. You define how Nodes interact with each other, and how one Node pushes data to the next.
An example pipeline would consist of one Retriever
Node and one Reader
Node. When the pipeline runs with a query, the Retriever first retrieves the documents relevant to the query and then the Reader extracts the final answer.
Nodes: Each Node achieves one thing. Such as preprocessing documents, retrieving documents, using language models to answer questions and so on.
Agent: (since 1.15) An Agent is a component that is powered by an LLM, such as GPT-3. It can decide on the next best course of action so as to get to the result of a query. It uses the Tools available to it to achieve this. While a pipeline has a clear start and end, an Agent is able to decide whether the query has resolved or not. It may also make use of a Pipeline as a Tool.
Tools: You can think of a Tool as an expert, that is able to do something really well. Such as a calculator, good at mathematics. Or a WebRetriever, good at retrieving pages from the internet. A Node or pipeline in Haystack can also be used as a Tool. A Tool is a component that is used by an Agent, to resolve complex queries.
DocumentStores: A DocumentStore is database where you store your text data for Haystack to access. Haystack DocumentStores are available with ElasticSearch, Opensearch, Weaviate, Pinecone, FAISS and more. For a full list of available DocumentStores, check out our documentation.
Docs | Components, Pipeline Nodes, Guides, API Reference |
Installation | How to install Haystack |
Tutorials | See what Haystack can do with our Notebooks & Scripts |
Haystack Extras | A repository that lists extra Haystack packages and components that can be installed separately. |
Demos | A repository containing Haystack demo applications with Docker Compose and a REST API |
Community | Discord, Twitter, Stack Overflow, GitHub Discussions |
Contributing | We welcome all contributions! |
Benchmarks | Speed & Accuracy of Retriever, Readers and DocumentStores |
Roadmap | Public roadmap of Haystack |
Blog | Learn about the latest with Haystack and NLP |
Jobs | We're hiring! Have a look at our open positions |
For a detailed installation guide see the official documentation. There youll find instructions for custom installations handling Windows and Apple Silicon.
Basic Installation
Use pip to install a basic version of Haystack's latest release:
pip install farm-haystack
This command installs everything needed for basic Pipelines that use an in-memory DocumentStore.
Full Installation
To use more advanced features, like certain DocumentStores, FileConverters, OCR, or Ray, you need to install further dependencies. The following command installs the latest release of Haystack and all its dependencies:
pip install 'farm-haystack[all]' ## or 'all-gpu' for the GPU-enabled dependencies
If you want to try out the newest features that are not in an official release yet, you can install the unstable version from the main branch with the following command:
pip install git+https://github.com/deepset-ai/[email protected]#egg=farm-haystack
To be able to make changes to Haystack code, first of all clone this repo:
git clone https://github.com/deepset-ai/haystack.git
Then move into the cloned folder and install the project with pip
, including the development dependencies:
cd haystack && pip install -e '.[dev]'
If you want to contribute to the Haystack repo, check our Contributor Guidelines first.
See the list of dependencies to check which ones you want to install (for example, [all]
, [dev]
, or other).
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:
pip install rest_api/
You can find out more about our PyPi package on our PyPi page.
You can find some of our hosted demos with instructions to run them locally too on our haystack-demos repository
💫 Reduce Hallucinations with Retrieval Augmentation - Generative QA with LLMs
Should I follow? - Summarizing tweets with LLMs
Explore The World - Extractive Question Answering
If you have a feature request or a bug report, feel free to open an issue in Github. We regularly check these and you can expect a quick response. If you'd like to discuss a topic, or get more general advice on how to make Haystack work for your project, you can start a thread in Github Discussions or our Discord channel. We also check Twitter and Stack Overflow.
We are very open to the community's contributions - be it a quick fix of a typo, or a completely new feature! You don't need to be a Haystack expert to provide meaningful improvements. To learn how to get started, check out our Contributor Guidelines first.
Here's a list of projects and companies using Haystack. Want to add yours? Open a PR, add it to the list and let the world know that you use Haystack!