A popular, transformer-based language model which has been improved upon but is still considered a common benchmark.
Vectors that contain many non-zero values are considered dense. Retrieval methods can also be called dense if they create dense vector representations of documents.
A Document in Haystack refers to the individual pieces of text that are stored in the DocumentStore. Multiple Documents might originally come from one file. It is ultimately up to you to divide your corpus into Documents.
The component in Haystack that stores the text documents and their metadata. Can have a variety of backends, such as Elasticsearch, SQL, or FAISS.
A vector representation of text that captures underlying semantic relations between pieces of text. When represented as embeddings, words with similar meanings have a similar vector representation. For more information about text vectorization, see What is text vectorization in NLP?.
An open source transfer learning framework by deepset. FARM’s question answering models are used in Haystack’s Readers.
A raw file that you upload to Haystack, for example, a PDF file. When an indexing pipeline runs, files get converted, cleaned, and split into Documents, which contain the actual text and are then used for finding the best answer to a query.
To store data in a database in a way that optimizes retrieval time. The exact steps involved in indexing depend on what kind of retrieval method is chosen.
The component in an NLP model that stores general language understanding but no task-specific knowledge.
The repository set up by HuggingFace where trained models can be saved to and loaded from. With Haystack, you can directly load and use any question answering model found on the model hub.
A machine learning architecture composed of artificial neurons that learn a task when exposed to labeled training data.
The modeling component that adapts the general knowledge of the language model for a specific task. In question answering models (and hence in Haystack Readers), this is usually a single-layer neural network.
In NLP, a query is a question that uses natural, spoken language without any special syntax or format.
The task of returning relevant documents from a database.
A popular task in the world of NLP where systems have to find answers to questions. The term is generally used to refer to extractive question answering, where a system has to find the minimal text span in a given document that contains the answer to the question. Note however, that it may also refer to abstractive question answering or FAQ matching.
The component in Haystack that does the closest reading of a document to extract the exact text which answers a question. It is, at its core, a trained Question Answering model.
A lightweight filter that selects only the most relevant documents for the Reader to further process.
A style of search that relies not on the matching of exact string forms but on the similarity of meaning between a query and a piece of text.
Vectors that are composed primarily of zeros are called sparse. Retrieval methods are also considered sparse if they build sparse vector representations of documents.
The Stanford Question Answering Dataset is the de facto standard QA dataset. The documents are paragraphs from Wikipedia, and the question/answer pairs are created by human annotators.
Originally refers to the deep learning architecture that is composed of stacked self-attention layers (first conceptualized here). Can also refer to Hugging Face’s repository, which contains implementations of popular model architectures.
Updated 7 months ago