prompt
stringlengths 31
162
| pipeline
stringlengths 207
1.65k
|
---|---|
Generate Haystack faq pipeline with OpenDistroElasticsearchDocumentStore and ElasticsearchRetriever | {"version": "1.8.0", "components": [{"name": "open_distro_elasticsearch_document_store", "type": "OpenDistroElasticsearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "cosine", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "elasticsearch_retriever", "type": "ElasticsearchRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"]}]}]} |
Make search summarization with BM25Retriever, transformers summarizer and open distro elasticsearch document store | {"version": "1.8.0", "components": [{"name": "open_distro_elasticsearch_document_store", "type": "OpenDistroElasticsearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "cosine", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "bm25_retriever", "type": "BM25Retriever", "params": {"top_k": 10, "all_terms_must_match": false, "scale_score": true}}, {"name": "transformers_summarizer", "type": "TransformersSummarizer", "params": {"model_name_or_path": "google/pegasus-xsum", "max_length": 200, "min_length": 5, "use_gpu": true, "clean_up_tokenization_spaces": true, "separator_for_single_summary": " ", "generate_single_summary": false, "batch_size": 16, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "bm25_retriever"}, {"inputs": ["bm25_retriever"], "name": "transformers_summarizer"}]}]} |
Create Haystack FAQPipeline using elasticsearch retriever and DeepsetCloudDocumentStore | {"version": "1.8.0", "components": [{"name": "deepset_cloud_document_store", "type": "DeepsetCloudDocumentStore", "params": {"workspace": "default", "duplicate_documents": "overwrite", "similarity": "dot_product", "return_embedding": false, "label_index": "default", "embedding_dim": 768}}, {"name": "elasticsearch_retriever", "type": "ElasticsearchRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"]}]}]} |
Generate Haystack qa pipeline consisting of elasticsearch filter only retriever, faiss document store and farm reader | {"version": "1.8.0", "components": [{"name": "faiss_document_store", "type": "FAISSDocumentStore", "params": {"sql_url": "sqlite:///faiss_document_store.db", "vector_dim": 0, "embedding_dim": 768, "faiss_index_factory_str": "Flat", "return_embedding": false, "index": "document", "similarity": "dot_product", "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "n_links": 64, "ef_search": 20, "ef_construction": 80, "validate_index_sync": true}}, {"name": "elasticsearch_filter_only_retriever", "type": "ElasticsearchFilterOnlyRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}, {"name": "farm_reader", "type": "FARMReader", "params": {"context_window_size": 150, "batch_size": 50, "use_gpu": true, "no_ans_boost": 0.0, "return_no_answer": false, "top_k": 10, "top_k_per_candidate": 3, "top_k_per_sample": 1, "num_processes": 0, "max_seq_len": 256, "doc_stride": 128, "progress_bar": true, "duplicate_filtering": 0, "use_confidence_scores": true, "confidence_threshold": 0, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_filter_only_retriever"}, {"inputs": ["elasticsearch_filter_only_retriever"], "name": "farm_reader"}]}]} |
Create Haystack document search system consisting of elasticsearch retriever and OpenDistroElasticsearchDocumentStore | {"version": "1.8.0", "components": [{"name": "open_distro_elasticsearch_document_store", "type": "OpenDistroElasticsearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "cosine", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "elasticsearch_retriever", "type": "ElasticsearchRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"]}]}]} |
Make document search pipeline using open search document store and MultihopEmbeddingRetriever | {"version": "1.8.0", "components": [{"name": "open_search_document_store", "type": "OpenSearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "dot_product", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false, "knn_engine": "nmslib"}}, {"name": "multihop_embedding_retriever", "type": "MultihopEmbeddingRetriever", "params": {"num_iterations": 2, "use_gpu": true, "batch_size": 32, "max_seq_len": 512, "model_format": "farm", "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "multihop_embedding_retriever"}, {"inputs": ["multihop_embedding_retriever"]}]}]} |
Build document search pipeline using table text retriever and OpenSearchDocumentStore | {"version": "1.8.0", "components": [{"name": "open_search_document_store", "type": "OpenSearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "dot_product", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false, "knn_engine": "nmslib"}}, {"name": "table_text_retriever", "type": "TableTextRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "max_seq_len_table": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_meta_fields": ["name", "section_title", "caption"], "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true, "use_fast": true}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "table_text_retriever"}, {"inputs": ["table_text_retriever"]}]}]} |
Make generative qa system with Seq2SeqGenerator, FAISSDocumentStore and BM25Retriever | {"version": "1.8.0", "components": [{"name": "faiss_document_store", "type": "FAISSDocumentStore", "params": {"sql_url": "sqlite:///faiss_document_store.db", "vector_dim": 0, "embedding_dim": 768, "faiss_index_factory_str": "Flat", "return_embedding": false, "index": "document", "similarity": "dot_product", "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "n_links": 64, "ef_search": 20, "ef_construction": 80, "validate_index_sync": true}}, {"name": "bm25_retriever", "type": "BM25Retriever", "params": {"top_k": 10, "all_terms_must_match": false, "scale_score": true}}, {"name": "seq2_seq_generator", "type": "Seq2SeqGenerator", "params": {"top_k": 1, "max_length": 200, "min_length": 2, "num_beams": 8, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "bm25_retriever"}, {"inputs": ["bm25_retriever"], "name": "seq2_seq_generator"}]}]} |
Generate generative qa with seq2 seq generator, open distro elasticsearch document store and embedding retriever | {"version": "1.8.0", "components": [{"name": "open_distro_elasticsearch_document_store", "type": "OpenDistroElasticsearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "cosine", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "embedding_retriever", "type": "EmbeddingRetriever", "params": {"use_gpu": true, "batch_size": 32, "max_seq_len": 512, "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "seq2_seq_generator", "type": "Seq2SeqGenerator", "params": {"top_k": 1, "max_length": 200, "min_length": 2, "num_beams": 8, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "embedding_retriever"}, {"inputs": ["embedding_retriever"], "name": "seq2_seq_generator"}]}]} |
Create Haystack question generation pipeline | {"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]} |
Generate generative qa system consisting of ra generator, embedding retriever and OpenDistroElasticsearchDocumentStore | {"version": "1.8.0", "components": [{"name": "open_distro_elasticsearch_document_store", "type": "OpenDistroElasticsearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "cosine", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "embedding_retriever", "type": "EmbeddingRetriever", "params": {"use_gpu": true, "batch_size": 32, "max_seq_len": 512, "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "ra_generator", "type": "RAGenerator", "params": {"model_name_or_path": "facebook/rag-token-nq", "generator_type": "token", "top_k": 2, "max_length": 200, "min_length": 2, "num_beams": 2, "embed_title": true, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "embedding_retriever"}, {"inputs": ["embedding_retriever"], "name": "ra_generator"}]}]} |
Create document search system with EmbeddingRetriever and deepset cloud document store | {"version": "1.8.0", "components": [{"name": "deepset_cloud_document_store", "type": "DeepsetCloudDocumentStore", "params": {"workspace": "default", "duplicate_documents": "overwrite", "similarity": "dot_product", "return_embedding": false, "label_index": "default", "embedding_dim": 768}}, {"name": "embedding_retriever", "type": "EmbeddingRetriever", "params": {"use_gpu": true, "batch_size": 32, "max_seq_len": 512, "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "embedding_retriever"}, {"inputs": ["embedding_retriever"]}]}]} |
Create ExtractiveQAPipeline with bm25 retriever, weaviate document store and FARMReader | {"version": "1.8.0", "components": [{"name": "weaviate_document_store", "type": "WeaviateDocumentStore", "params": {"port": 0, "timeout_config": [5, 15], "index": "Document", "embedding_dim": 768, "content_field": "content", "name_field": "name", "similarity": "cosine", "index_type": "hnsw", "return_embedding": false, "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "recreate_index": false}}, {"name": "bm25_retriever", "type": "BM25Retriever", "params": {"top_k": 10, "all_terms_must_match": false, "scale_score": true}}, {"name": "farm_reader", "type": "FARMReader", "params": {"context_window_size": 150, "batch_size": 50, "use_gpu": true, "no_ans_boost": 0.0, "return_no_answer": false, "top_k": 10, "top_k_per_candidate": 3, "top_k_per_sample": 1, "num_processes": 0, "max_seq_len": 256, "doc_stride": 128, "progress_bar": true, "duplicate_filtering": 0, "use_confidence_scores": true, "confidence_threshold": 0, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "bm25_retriever"}, {"inputs": ["bm25_retriever"], "name": "farm_reader"}]}]} |
Build search summarization pipeline using TableTextRetriever, WeaviateDocumentStore and transformers summarizer | {"version": "1.8.0", "components": [{"name": "weaviate_document_store", "type": "WeaviateDocumentStore", "params": {"port": 0, "timeout_config": [5, 15], "index": "Document", "embedding_dim": 768, "content_field": "content", "name_field": "name", "similarity": "cosine", "index_type": "hnsw", "return_embedding": false, "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "recreate_index": false}}, {"name": "table_text_retriever", "type": "TableTextRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "max_seq_len_table": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_meta_fields": ["name", "section_title", "caption"], "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true, "use_fast": true}}, {"name": "transformers_summarizer", "type": "TransformersSummarizer", "params": {"model_name_or_path": "google/pegasus-xsum", "max_length": 200, "min_length": 5, "use_gpu": true, "clean_up_tokenization_spaces": true, "separator_for_single_summary": " ", "generate_single_summary": false, "batch_size": 16, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "table_text_retriever"}, {"inputs": ["table_text_retriever"], "name": "transformers_summarizer"}]}]} |
Build GenerativeQAPipeline with ra generator, DensePassageRetriever and sql document store | {"version": "1.8.0", "components": [{"name": "sql_document_store", "type": "SQLDocumentStore", "params": {"url": "sqlite://", "index": "document", "label_index": "label", "duplicate_documents": "overwrite", "check_same_thread": false}}, {"name": "dense_passage_retriever", "type": "DensePassageRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_title": true, "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "ra_generator", "type": "RAGenerator", "params": {"model_name_or_path": "facebook/rag-token-nq", "generator_type": "token", "top_k": 2, "max_length": 200, "min_length": 2, "num_beams": 2, "embed_title": true, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "dense_passage_retriever"}, {"inputs": ["dense_passage_retriever"], "name": "ra_generator"}]}]} |
Generate Haystack extractive qa with FAISSDocumentStore, farm reader and tfidf retriever | {"version": "1.8.0", "components": [{"name": "faiss_document_store", "type": "FAISSDocumentStore", "params": {"sql_url": "sqlite:///faiss_document_store.db", "vector_dim": 0, "embedding_dim": 768, "faiss_index_factory_str": "Flat", "return_embedding": false, "index": "document", "similarity": "dot_product", "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "n_links": 64, "ef_search": 20, "ef_construction": 80, "validate_index_sync": true}}, {"name": "tfidf_retriever", "type": "TfidfRetriever", "params": {"top_k": 10}}, {"name": "farm_reader", "type": "FARMReader", "params": {"context_window_size": 150, "batch_size": 50, "use_gpu": true, "no_ans_boost": 0.0, "return_no_answer": false, "top_k": 10, "top_k_per_candidate": 3, "top_k_per_sample": 1, "num_processes": 0, "max_seq_len": 256, "doc_stride": 128, "progress_bar": true, "duplicate_filtering": 0, "use_confidence_scores": true, "confidence_threshold": 0, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "tfidf_retriever"}, {"inputs": ["tfidf_retriever"], "name": "farm_reader"}]}]} |
Create generative qa system with SQLDocumentStore, dense passage retriever and seq2 seq generator | {"version": "1.8.0", "components": [{"name": "sql_document_store", "type": "SQLDocumentStore", "params": {"url": "sqlite://", "index": "document", "label_index": "label", "duplicate_documents": "overwrite", "check_same_thread": false}}, {"name": "dense_passage_retriever", "type": "DensePassageRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_title": true, "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "seq2_seq_generator", "type": "Seq2SeqGenerator", "params": {"top_k": 1, "max_length": 200, "min_length": 2, "num_beams": 8, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "dense_passage_retriever"}, {"inputs": ["dense_passage_retriever"], "name": "seq2_seq_generator"}]}]} |
Make faq pipeline consisting of ElasticsearchRetriever and DeepsetCloudDocumentStore | {"version": "1.8.0", "components": [{"name": "deepset_cloud_document_store", "type": "DeepsetCloudDocumentStore", "params": {"workspace": "default", "duplicate_documents": "overwrite", "similarity": "dot_product", "return_embedding": false, "label_index": "default", "embedding_dim": 768}}, {"name": "elasticsearch_retriever", "type": "ElasticsearchRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"]}]}]} |
Build extractive qa system using TableReader, ElasticsearchDocumentStore and BM25Retriever | {"version": "1.8.0", "components": [{"name": "elasticsearch_document_store", "type": "ElasticsearchDocumentStore", "params": {"port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "scheme": "http", "verify_certs": true, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "dot_product", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "bm25_retriever", "type": "BM25Retriever", "params": {"top_k": 10, "all_terms_must_match": false, "scale_score": true}}, {"name": "table_reader", "type": "TableReader", "params": {"model_name_or_path": "google/tapas-base-finetuned-wtq", "use_gpu": true, "top_k": 10, "top_k_per_candidate": 3, "return_no_answer": false, "max_seq_len": 256, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "bm25_retriever"}, {"inputs": ["bm25_retriever"], "name": "table_reader"}]}]} |
Generate Haystack faq pipeline consisting of OpenSearchDocumentStore and table text retriever | {"version": "1.8.0", "components": [{"name": "open_search_document_store", "type": "OpenSearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "dot_product", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false, "knn_engine": "nmslib"}}, {"name": "table_text_retriever", "type": "TableTextRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "max_seq_len_table": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_meta_fields": ["name", "section_title", "caption"], "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true, "use_fast": true}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "table_text_retriever"}, {"inputs": ["table_text_retriever"]}]}]} |
Build Haystack QuestionAnswerGenerationPipeline using question generator and rci reader | {"version": "1.8.0", "components": [{"name": "question_generator", "type": "QuestionGenerator", "params": {"sep_token": "<sep>", "batch_size": 16, "progress_bar": true, "use_auth_token": false}}, {"name": "rci_reader", "type": "RCIReader", "params": {"row_model_name_or_path": "michaelrglass/albert-base-rci-wikisql-row", "column_model_name_or_path": "michaelrglass/albert-base-rci-wikisql-col", "use_gpu": true, "top_k": 10, "max_seq_len": 256, "use_auth_token": false}}], "pipelines": [{"name": "my_question_answering_pipeline", "nodes": [{"inputs": ["Query"], "name": "question_generator"}, {"inputs": ["question_generator"], "name": "rci_reader"}]}]} |
Build Haystack generative qa using FAISSDocumentStore, seq2 seq generator and bm25 retriever | {"version": "1.8.0", "components": [{"name": "faiss_document_store", "type": "FAISSDocumentStore", "params": {"sql_url": "sqlite:///faiss_document_store.db", "vector_dim": 0, "embedding_dim": 768, "faiss_index_factory_str": "Flat", "return_embedding": false, "index": "document", "similarity": "dot_product", "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "n_links": 64, "ef_search": 20, "ef_construction": 80, "validate_index_sync": true}}, {"name": "bm25_retriever", "type": "BM25Retriever", "params": {"top_k": 10, "all_terms_must_match": false, "scale_score": true}}, {"name": "seq2_seq_generator", "type": "Seq2SeqGenerator", "params": {"top_k": 1, "max_length": 200, "min_length": 2, "num_beams": 8, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "bm25_retriever"}, {"inputs": ["bm25_retriever"], "name": "seq2_seq_generator"}]}]} |
Generate question generation pipeline | {"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]} |
Generate question generation system | {"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]} |
Generate question generation pipeline | {"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]} |
Build Haystack qa system consisting of farm reader, FAISSDocumentStore and TfidfRetriever | {"version": "1.8.0", "components": [{"name": "faiss_document_store", "type": "FAISSDocumentStore", "params": {"sql_url": "sqlite:///faiss_document_store.db", "vector_dim": 0, "embedding_dim": 768, "faiss_index_factory_str": "Flat", "return_embedding": false, "index": "document", "similarity": "dot_product", "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "n_links": 64, "ef_search": 20, "ef_construction": 80, "validate_index_sync": true}}, {"name": "tfidf_retriever", "type": "TfidfRetriever", "params": {"top_k": 10}}, {"name": "farm_reader", "type": "FARMReader", "params": {"context_window_size": 150, "batch_size": 50, "use_gpu": true, "no_ans_boost": 0.0, "return_no_answer": false, "top_k": 10, "top_k_per_candidate": 3, "top_k_per_sample": 1, "num_processes": 0, "max_seq_len": 256, "doc_stride": 128, "progress_bar": true, "duplicate_filtering": 0, "use_confidence_scores": true, "confidence_threshold": 0, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "tfidf_retriever"}, {"inputs": ["tfidf_retriever"], "name": "farm_reader"}]}]} |
Make Haystack document search pipeline consisting of DeepsetCloudDocumentStore and bm25 retriever | {"version": "1.8.0", "components": [{"name": "deepset_cloud_document_store", "type": "DeepsetCloudDocumentStore", "params": {"workspace": "default", "duplicate_documents": "overwrite", "similarity": "dot_product", "return_embedding": false, "label_index": "default", "embedding_dim": 768}}, {"name": "bm25_retriever", "type": "BM25Retriever", "params": {"top_k": 10, "all_terms_must_match": false, "scale_score": true}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "bm25_retriever"}, {"inputs": ["bm25_retriever"]}]}]} |
Make Haystack QuestionAnswerGenerationPipeline consisting of farm reader and question generator | {"version": "1.8.0", "components": [{"name": "question_generator", "type": "QuestionGenerator", "params": {"sep_token": "<sep>", "batch_size": 16, "progress_bar": true, "use_auth_token": false}}, {"name": "farm_reader", "type": "FARMReader", "params": {"context_window_size": 150, "batch_size": 50, "use_gpu": true, "no_ans_boost": 0.0, "return_no_answer": false, "top_k": 10, "top_k_per_candidate": 3, "top_k_per_sample": 1, "num_processes": 0, "max_seq_len": 256, "doc_stride": 128, "progress_bar": true, "duplicate_filtering": 0, "use_confidence_scores": true, "confidence_threshold": 0, "use_auth_token": false}}], "pipelines": [{"name": "my_question_answering_pipeline", "nodes": [{"inputs": ["Query"], "name": "question_generator"}, {"inputs": ["question_generator"], "name": "farm_reader"}]}]} |
Build generative qa system consisting of Seq2SeqGenerator, SQLDocumentStore and DensePassageRetriever | {"version": "1.8.0", "components": [{"name": "sql_document_store", "type": "SQLDocumentStore", "params": {"url": "sqlite://", "index": "document", "label_index": "label", "duplicate_documents": "overwrite", "check_same_thread": false}}, {"name": "dense_passage_retriever", "type": "DensePassageRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_title": true, "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "seq2_seq_generator", "type": "Seq2SeqGenerator", "params": {"top_k": 1, "max_length": 200, "min_length": 2, "num_beams": 8, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "dense_passage_retriever"}, {"inputs": ["dense_passage_retriever"], "name": "seq2_seq_generator"}]}]} |
Make Haystack search summarization with transformers summarizer, OpenSearchDocumentStore and TfidfRetriever | {"version": "1.8.0", "components": [{"name": "open_search_document_store", "type": "OpenSearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "dot_product", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false, "knn_engine": "nmslib"}}, {"name": "tfidf_retriever", "type": "TfidfRetriever", "params": {"top_k": 10}}, {"name": "transformers_summarizer", "type": "TransformersSummarizer", "params": {"model_name_or_path": "google/pegasus-xsum", "max_length": 200, "min_length": 5, "use_gpu": true, "clean_up_tokenization_spaces": true, "separator_for_single_summary": " ", "generate_single_summary": false, "batch_size": 16, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "tfidf_retriever"}, {"inputs": ["tfidf_retriever"], "name": "transformers_summarizer"}]}]} |
Create Haystack QuestionAnswerGenerationPipeline with question generator and table reader | {"version": "1.8.0", "components": [{"name": "question_generator", "type": "QuestionGenerator", "params": {"sep_token": "<sep>", "batch_size": 16, "progress_bar": true, "use_auth_token": false}}, {"name": "table_reader", "type": "TableReader", "params": {"model_name_or_path": "google/tapas-base-finetuned-wtq", "use_gpu": true, "top_k": 10, "top_k_per_candidate": 3, "return_no_answer": false, "max_seq_len": 256, "use_auth_token": false}}], "pipelines": [{"name": "my_question_answering_pipeline", "nodes": [{"inputs": ["Query"], "name": "question_generator"}, {"inputs": ["question_generator"], "name": "table_reader"}]}]} |
Make question generation system | {"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]} |
Create Haystack search pipeline consisting of ElasticsearchDocumentStore and table text retriever | {"version": "1.8.0", "components": [{"name": "elasticsearch_document_store", "type": "ElasticsearchDocumentStore", "params": {"port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "scheme": "http", "verify_certs": true, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "dot_product", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "table_text_retriever", "type": "TableTextRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "max_seq_len_table": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_meta_fields": ["name", "section_title", "caption"], "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true, "use_fast": true}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "table_text_retriever"}, {"inputs": ["table_text_retriever"]}]}]} |
Generate Haystack FAQPipeline with multihop embedding retriever and faiss document store | {"version": "1.8.0", "components": [{"name": "faiss_document_store", "type": "FAISSDocumentStore", "params": {"sql_url": "sqlite:///faiss_document_store.db", "vector_dim": 0, "embedding_dim": 768, "faiss_index_factory_str": "Flat", "return_embedding": false, "index": "document", "similarity": "dot_product", "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "n_links": 64, "ef_search": 20, "ef_construction": 80, "validate_index_sync": true}}, {"name": "multihop_embedding_retriever", "type": "MultihopEmbeddingRetriever", "params": {"num_iterations": 2, "use_gpu": true, "batch_size": 32, "max_seq_len": 512, "model_format": "farm", "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "multihop_embedding_retriever"}, {"inputs": ["multihop_embedding_retriever"]}]}]} |
Generate Haystack question answer generation system with QuestionGenerator and TransformersReader | {"version": "1.8.0", "components": [{"name": "question_generator", "type": "QuestionGenerator", "params": {"sep_token": "<sep>", "batch_size": 16, "progress_bar": true, "use_auth_token": false}}, {"name": "transformers_reader", "type": "TransformersReader", "params": {"model_name_or_path": "distilbert-base-uncased-distilled-squad", "context_window_size": 70, "use_gpu": true, "top_k": 10, "top_k_per_candidate": 3, "return_no_answers": false, "max_seq_len": 256, "doc_stride": 128, "batch_size": 16, "use_auth_token": false}}], "pipelines": [{"name": "my_question_answering_pipeline", "nodes": [{"inputs": ["Query"], "name": "question_generator"}, {"inputs": ["question_generator"], "name": "transformers_reader"}]}]} |
Make Haystack faq search pipeline with TableTextRetriever and DeepsetCloudDocumentStore | {"version": "1.8.0", "components": [{"name": "deepset_cloud_document_store", "type": "DeepsetCloudDocumentStore", "params": {"workspace": "default", "duplicate_documents": "overwrite", "similarity": "dot_product", "return_embedding": false, "label_index": "default", "embedding_dim": 768}}, {"name": "table_text_retriever", "type": "TableTextRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "max_seq_len_table": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_meta_fields": ["name", "section_title", "caption"], "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true, "use_fast": true}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "table_text_retriever"}, {"inputs": ["table_text_retriever"]}]}]} |
Generate Haystack qa pipeline with SQLDocumentStore, ElasticsearchRetriever and table reader | {"version": "1.8.0", "components": [{"name": "sql_document_store", "type": "SQLDocumentStore", "params": {"url": "sqlite://", "index": "document", "label_index": "label", "duplicate_documents": "overwrite", "check_same_thread": false}}, {"name": "elasticsearch_retriever", "type": "ElasticsearchRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}, {"name": "table_reader", "type": "TableReader", "params": {"model_name_or_path": "google/tapas-base-finetuned-wtq", "use_gpu": true, "top_k": 10, "top_k_per_candidate": 3, "return_no_answer": false, "max_seq_len": 256, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"], "name": "table_reader"}]}]} |
Make Haystack question generation system | {"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]} |
Create question answer generation pipeline using table reader and QuestionGenerator | {"version": "1.8.0", "components": [{"name": "question_generator", "type": "QuestionGenerator", "params": {"sep_token": "<sep>", "batch_size": 16, "progress_bar": true, "use_auth_token": false}}, {"name": "table_reader", "type": "TableReader", "params": {"model_name_or_path": "google/tapas-base-finetuned-wtq", "use_gpu": true, "top_k": 10, "top_k_per_candidate": 3, "return_no_answer": false, "max_seq_len": 256, "use_auth_token": false}}], "pipelines": [{"name": "my_question_answering_pipeline", "nodes": [{"inputs": ["Query"], "name": "question_generator"}, {"inputs": ["question_generator"], "name": "table_reader"}]}]} |
Generate Haystack faq system with elasticsearch retriever and DeepsetCloudDocumentStore | {"version": "1.8.0", "components": [{"name": "deepset_cloud_document_store", "type": "DeepsetCloudDocumentStore", "params": {"workspace": "default", "duplicate_documents": "overwrite", "similarity": "dot_product", "return_embedding": false, "label_index": "default", "embedding_dim": 768}}, {"name": "elasticsearch_retriever", "type": "ElasticsearchRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"]}]}]} |
Generate Haystack ExtractiveQAPipeline consisting of FARMReader, InMemoryDocumentStore and embedding retriever | {"version": "1.8.0", "components": [{"name": "in_memory_document_store", "type": "InMemoryDocumentStore", "params": {"index": "document", "label_index": "label", "embedding_dim": 768, "return_embedding": false, "similarity": "dot_product", "progress_bar": true, "duplicate_documents": "overwrite", "use_gpu": true, "scoring_batch_size": 500000}}, {"name": "embedding_retriever", "type": "EmbeddingRetriever", "params": {"use_gpu": true, "batch_size": 32, "max_seq_len": 512, "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "farm_reader", "type": "FARMReader", "params": {"context_window_size": 150, "batch_size": 50, "use_gpu": true, "no_ans_boost": 0.0, "return_no_answer": false, "top_k": 10, "top_k_per_candidate": 3, "top_k_per_sample": 1, "num_processes": 0, "max_seq_len": 256, "doc_stride": 128, "progress_bar": true, "duplicate_filtering": 0, "use_confidence_scores": true, "confidence_threshold": 0, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "embedding_retriever"}, {"inputs": ["embedding_retriever"], "name": "farm_reader"}]}]} |
Generate Haystack search summarization system consisting of FAISSDocumentStore, elasticsearch filter only retriever and TransformersSummarizer | {"version": "1.8.0", "components": [{"name": "faiss_document_store", "type": "FAISSDocumentStore", "params": {"sql_url": "sqlite:///faiss_document_store.db", "vector_dim": 0, "embedding_dim": 768, "faiss_index_factory_str": "Flat", "return_embedding": false, "index": "document", "similarity": "dot_product", "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "n_links": 64, "ef_search": 20, "ef_construction": 80, "validate_index_sync": true}}, {"name": "elasticsearch_filter_only_retriever", "type": "ElasticsearchFilterOnlyRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}, {"name": "transformers_summarizer", "type": "TransformersSummarizer", "params": {"model_name_or_path": "google/pegasus-xsum", "max_length": 200, "min_length": 5, "use_gpu": true, "clean_up_tokenization_spaces": true, "separator_for_single_summary": " ", "generate_single_summary": false, "batch_size": 16, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_filter_only_retriever"}, {"inputs": ["elasticsearch_filter_only_retriever"], "name": "transformers_summarizer"}]}]} |
Make QuestionAnswerGenerationPipeline using farm reader and question generator | {"version": "1.8.0", "components": [{"name": "question_generator", "type": "QuestionGenerator", "params": {"sep_token": "<sep>", "batch_size": 16, "progress_bar": true, "use_auth_token": false}}, {"name": "farm_reader", "type": "FARMReader", "params": {"context_window_size": 150, "batch_size": 50, "use_gpu": true, "no_ans_boost": 0.0, "return_no_answer": false, "top_k": 10, "top_k_per_candidate": 3, "top_k_per_sample": 1, "num_processes": 0, "max_seq_len": 256, "doc_stride": 128, "progress_bar": true, "duplicate_filtering": 0, "use_confidence_scores": true, "confidence_threshold": 0, "use_auth_token": false}}], "pipelines": [{"name": "my_question_answering_pipeline", "nodes": [{"inputs": ["Query"], "name": "question_generator"}, {"inputs": ["question_generator"], "name": "farm_reader"}]}]} |
Create Haystack question answer generation system consisting of question generator and TransformersReader | {"version": "1.8.0", "components": [{"name": "question_generator", "type": "QuestionGenerator", "params": {"sep_token": "<sep>", "batch_size": 16, "progress_bar": true, "use_auth_token": false}}, {"name": "transformers_reader", "type": "TransformersReader", "params": {"model_name_or_path": "distilbert-base-uncased-distilled-squad", "context_window_size": 70, "use_gpu": true, "top_k": 10, "top_k_per_candidate": 3, "return_no_answers": false, "max_seq_len": 256, "doc_stride": 128, "batch_size": 16, "use_auth_token": false}}], "pipelines": [{"name": "my_question_answering_pipeline", "nodes": [{"inputs": ["Query"], "name": "question_generator"}, {"inputs": ["question_generator"], "name": "transformers_reader"}]}]} |
Generate Haystack generative qa pipeline using Seq2SeqGenerator, PineconeDocumentStore and elasticsearch retriever | {"version": "1.8.0", "components": [{"name": "pinecone_document_store", "type": "PineconeDocumentStore", "params": {"environment": "us-west1-gcp", "embedding_dim": 768, "return_embedding": false, "index": "document", "similarity": "cosine", "replicas": 1, "shards": 1, "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "recreate_index": false, "validate_index_sync": true}}, {"name": "elasticsearch_retriever", "type": "ElasticsearchRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}, {"name": "seq2_seq_generator", "type": "Seq2SeqGenerator", "params": {"top_k": 1, "max_length": 200, "min_length": 2, "num_beams": 8, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"], "name": "seq2_seq_generator"}]}]} |
Make search pipeline consisting of open distro elasticsearch document store and elasticsearch filter only retriever | {"version": "1.8.0", "components": [{"name": "open_distro_elasticsearch_document_store", "type": "OpenDistroElasticsearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "cosine", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "elasticsearch_filter_only_retriever", "type": "ElasticsearchFilterOnlyRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_filter_only_retriever"}, {"inputs": ["elasticsearch_filter_only_retriever"]}]}]} |
Build Haystack GenerativeQAPipeline consisting of tfidf retriever, Seq2SeqGenerator and deepset cloud document store | {"version": "1.8.0", "components": [{"name": "deepset_cloud_document_store", "type": "DeepsetCloudDocumentStore", "params": {"workspace": "default", "duplicate_documents": "overwrite", "similarity": "dot_product", "return_embedding": false, "label_index": "default", "embedding_dim": 768}}, {"name": "tfidf_retriever", "type": "TfidfRetriever", "params": {"top_k": 10}}, {"name": "seq2_seq_generator", "type": "Seq2SeqGenerator", "params": {"top_k": 1, "max_length": 200, "min_length": 2, "num_beams": 8, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "tfidf_retriever"}, {"inputs": ["tfidf_retriever"], "name": "seq2_seq_generator"}]}]} |
Create Haystack GenerativeQAPipeline using weaviate document store, table text retriever and RAGenerator | {"version": "1.8.0", "components": [{"name": "weaviate_document_store", "type": "WeaviateDocumentStore", "params": {"port": 0, "timeout_config": [5, 15], "index": "Document", "embedding_dim": 768, "content_field": "content", "name_field": "name", "similarity": "cosine", "index_type": "hnsw", "return_embedding": false, "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "recreate_index": false}}, {"name": "table_text_retriever", "type": "TableTextRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "max_seq_len_table": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_meta_fields": ["name", "section_title", "caption"], "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true, "use_fast": true}}, {"name": "ra_generator", "type": "RAGenerator", "params": {"model_name_or_path": "facebook/rag-token-nq", "generator_type": "token", "top_k": 2, "max_length": 200, "min_length": 2, "num_beams": 2, "embed_title": true, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "table_text_retriever"}, {"inputs": ["table_text_retriever"], "name": "ra_generator"}]}]} |
Make QuestionGenerationPipeline | {"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]} |
Generate faq system using PineconeDocumentStore and ElasticsearchRetriever | {"version": "1.8.0", "components": [{"name": "pinecone_document_store", "type": "PineconeDocumentStore", "params": {"environment": "us-west1-gcp", "embedding_dim": 768, "return_embedding": false, "index": "document", "similarity": "cosine", "replicas": 1, "shards": 1, "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "recreate_index": false, "validate_index_sync": true}}, {"name": "elasticsearch_retriever", "type": "ElasticsearchRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"]}]}]} |
Make Haystack QuestionGenerationPipeline | {"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]} |
Build Haystack FAQPipeline using TableTextRetriever and OpenSearchDocumentStore | {"version": "1.8.0", "components": [{"name": "open_search_document_store", "type": "OpenSearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "dot_product", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false, "knn_engine": "nmslib"}}, {"name": "table_text_retriever", "type": "TableTextRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "max_seq_len_table": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_meta_fields": ["name", "section_title", "caption"], "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true, "use_fast": true}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "table_text_retriever"}, {"inputs": ["table_text_retriever"]}]}]} |
Build Haystack search summarization system consisting of TransformersSummarizer, dense passage retriever and weaviate document store | {"version": "1.8.0", "components": [{"name": "weaviate_document_store", "type": "WeaviateDocumentStore", "params": {"port": 0, "timeout_config": [5, 15], "index": "Document", "embedding_dim": 768, "content_field": "content", "name_field": "name", "similarity": "cosine", "index_type": "hnsw", "return_embedding": false, "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "recreate_index": false}}, {"name": "dense_passage_retriever", "type": "DensePassageRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_title": true, "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "transformers_summarizer", "type": "TransformersSummarizer", "params": {"model_name_or_path": "google/pegasus-xsum", "max_length": 200, "min_length": 5, "use_gpu": true, "clean_up_tokenization_spaces": true, "separator_for_single_summary": " ", "generate_single_summary": false, "batch_size": 16, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "dense_passage_retriever"}, {"inputs": ["dense_passage_retriever"], "name": "transformers_summarizer"}]}]} |
Make Haystack search summarization system using transformers summarizer, EmbeddingRetriever and sql document store | {"version": "1.8.0", "components": [{"name": "sql_document_store", "type": "SQLDocumentStore", "params": {"url": "sqlite://", "index": "document", "label_index": "label", "duplicate_documents": "overwrite", "check_same_thread": false}}, {"name": "embedding_retriever", "type": "EmbeddingRetriever", "params": {"use_gpu": true, "batch_size": 32, "max_seq_len": 512, "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "transformers_summarizer", "type": "TransformersSummarizer", "params": {"model_name_or_path": "google/pegasus-xsum", "max_length": 200, "min_length": 5, "use_gpu": true, "clean_up_tokenization_spaces": true, "separator_for_single_summary": " ", "generate_single_summary": false, "batch_size": 16, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "embedding_retriever"}, {"inputs": ["embedding_retriever"], "name": "transformers_summarizer"}]}]} |
Make Haystack SearchSummarizationPipeline consisting of in memory document store, dense passage retriever and transformers summarizer | {"version": "1.8.0", "components": [{"name": "in_memory_document_store", "type": "InMemoryDocumentStore", "params": {"index": "document", "label_index": "label", "embedding_dim": 768, "return_embedding": false, "similarity": "dot_product", "progress_bar": true, "duplicate_documents": "overwrite", "use_gpu": true, "scoring_batch_size": 500000}}, {"name": "dense_passage_retriever", "type": "DensePassageRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_title": true, "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "transformers_summarizer", "type": "TransformersSummarizer", "params": {"model_name_or_path": "google/pegasus-xsum", "max_length": 200, "min_length": 5, "use_gpu": true, "clean_up_tokenization_spaces": true, "separator_for_single_summary": " ", "generate_single_summary": false, "batch_size": 16, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "dense_passage_retriever"}, {"inputs": ["dense_passage_retriever"], "name": "transformers_summarizer"}]}]} |
Generate Haystack FAQPipeline consisting of EmbeddingRetriever and open distro elasticsearch document store | {"version": "1.8.0", "components": [{"name": "open_distro_elasticsearch_document_store", "type": "OpenDistroElasticsearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "cosine", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "embedding_retriever", "type": "EmbeddingRetriever", "params": {"use_gpu": true, "batch_size": 32, "max_seq_len": 512, "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "embedding_retriever"}, {"inputs": ["embedding_retriever"]}]}]} |
Make Haystack faq search pipeline consisting of WeaviateDocumentStore and MultihopEmbeddingRetriever | {"version": "1.8.0", "components": [{"name": "weaviate_document_store", "type": "WeaviateDocumentStore", "params": {"port": 0, "timeout_config": [5, 15], "index": "Document", "embedding_dim": 768, "content_field": "content", "name_field": "name", "similarity": "cosine", "index_type": "hnsw", "return_embedding": false, "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "recreate_index": false}}, {"name": "multihop_embedding_retriever", "type": "MultihopEmbeddingRetriever", "params": {"num_iterations": 2, "use_gpu": true, "batch_size": 32, "max_seq_len": 512, "model_format": "farm", "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "multihop_embedding_retriever"}, {"inputs": ["multihop_embedding_retriever"]}]}]} |
Create question answer generation system using question generator and FARMReader | {"version": "1.8.0", "components": [{"name": "question_generator", "type": "QuestionGenerator", "params": {"sep_token": "<sep>", "batch_size": 16, "progress_bar": true, "use_auth_token": false}}, {"name": "farm_reader", "type": "FARMReader", "params": {"context_window_size": 150, "batch_size": 50, "use_gpu": true, "no_ans_boost": 0.0, "return_no_answer": false, "top_k": 10, "top_k_per_candidate": 3, "top_k_per_sample": 1, "num_processes": 0, "max_seq_len": 256, "doc_stride": 128, "progress_bar": true, "duplicate_filtering": 0, "use_confidence_scores": true, "confidence_threshold": 0, "use_auth_token": false}}], "pipelines": [{"name": "my_question_answering_pipeline", "nodes": [{"inputs": ["Query"], "name": "question_generator"}, {"inputs": ["question_generator"], "name": "farm_reader"}]}]} |
Generate search summarization system consisting of EmbeddingRetriever, transformers summarizer and SQLDocumentStore | {"version": "1.8.0", "components": [{"name": "sql_document_store", "type": "SQLDocumentStore", "params": {"url": "sqlite://", "index": "document", "label_index": "label", "duplicate_documents": "overwrite", "check_same_thread": false}}, {"name": "embedding_retriever", "type": "EmbeddingRetriever", "params": {"use_gpu": true, "batch_size": 32, "max_seq_len": 512, "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "transformers_summarizer", "type": "TransformersSummarizer", "params": {"model_name_or_path": "google/pegasus-xsum", "max_length": 200, "min_length": 5, "use_gpu": true, "clean_up_tokenization_spaces": true, "separator_for_single_summary": " ", "generate_single_summary": false, "batch_size": 16, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "embedding_retriever"}, {"inputs": ["embedding_retriever"], "name": "transformers_summarizer"}]}]} |
Create document search pipeline using table text retriever and ElasticsearchDocumentStore | {"version": "1.8.0", "components": [{"name": "elasticsearch_document_store", "type": "ElasticsearchDocumentStore", "params": {"port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "scheme": "http", "verify_certs": true, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "dot_product", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "table_text_retriever", "type": "TableTextRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "max_seq_len_table": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_meta_fields": ["name", "section_title", "caption"], "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true, "use_fast": true}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "table_text_retriever"}, {"inputs": ["table_text_retriever"]}]}]} |
Create Haystack DocumentSearchPipeline with elasticsearch retriever and InMemoryDocumentStore | {"version": "1.8.0", "components": [{"name": "in_memory_document_store", "type": "InMemoryDocumentStore", "params": {"index": "document", "label_index": "label", "embedding_dim": 768, "return_embedding": false, "similarity": "dot_product", "progress_bar": true, "duplicate_documents": "overwrite", "use_gpu": true, "scoring_batch_size": 500000}}, {"name": "elasticsearch_retriever", "type": "ElasticsearchRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"]}]}]} |
Make generative qa system using OpenDistroElasticsearchDocumentStore, ElasticsearchRetriever and Seq2SeqGenerator | {"version": "1.8.0", "components": [{"name": "open_distro_elasticsearch_document_store", "type": "OpenDistroElasticsearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "cosine", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "elasticsearch_retriever", "type": "ElasticsearchRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}, {"name": "seq2_seq_generator", "type": "Seq2SeqGenerator", "params": {"top_k": 1, "max_length": 200, "min_length": 2, "num_beams": 8, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"], "name": "seq2_seq_generator"}]}]} |
Make Haystack ExtractiveQAPipeline using table reader, weaviate document store and TableTextRetriever | {"version": "1.8.0", "components": [{"name": "weaviate_document_store", "type": "WeaviateDocumentStore", "params": {"port": 0, "timeout_config": [5, 15], "index": "Document", "embedding_dim": 768, "content_field": "content", "name_field": "name", "similarity": "cosine", "index_type": "hnsw", "return_embedding": false, "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "recreate_index": false}}, {"name": "table_text_retriever", "type": "TableTextRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "max_seq_len_table": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_meta_fields": ["name", "section_title", "caption"], "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true, "use_fast": true}}, {"name": "table_reader", "type": "TableReader", "params": {"model_name_or_path": "google/tapas-base-finetuned-wtq", "use_gpu": true, "top_k": 10, "top_k_per_candidate": 3, "return_no_answer": false, "max_seq_len": 256, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "table_text_retriever"}, {"inputs": ["table_text_retriever"], "name": "table_reader"}]}]} |
Create Haystack faq pipeline with ElasticsearchRetriever and deepset cloud document store | {"version": "1.8.0", "components": [{"name": "deepset_cloud_document_store", "type": "DeepsetCloudDocumentStore", "params": {"workspace": "default", "duplicate_documents": "overwrite", "similarity": "dot_product", "return_embedding": false, "label_index": "default", "embedding_dim": 768}}, {"name": "elasticsearch_retriever", "type": "ElasticsearchRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"]}]}]} |
Make faq pipeline using embedding retriever and PineconeDocumentStore | {"version": "1.8.0", "components": [{"name": "pinecone_document_store", "type": "PineconeDocumentStore", "params": {"environment": "us-west1-gcp", "embedding_dim": 768, "return_embedding": false, "index": "document", "similarity": "cosine", "replicas": 1, "shards": 1, "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "recreate_index": false, "validate_index_sync": true}}, {"name": "embedding_retriever", "type": "EmbeddingRetriever", "params": {"use_gpu": true, "batch_size": 32, "max_seq_len": 512, "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "embedding_retriever"}, {"inputs": ["embedding_retriever"]}]}]} |
Create qa system with ElasticsearchFilterOnlyRetriever, faiss document store and farm reader | {"version": "1.8.0", "components": [{"name": "faiss_document_store", "type": "FAISSDocumentStore", "params": {"sql_url": "sqlite:///faiss_document_store.db", "vector_dim": 0, "embedding_dim": 768, "faiss_index_factory_str": "Flat", "return_embedding": false, "index": "document", "similarity": "dot_product", "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "n_links": 64, "ef_search": 20, "ef_construction": 80, "validate_index_sync": true}}, {"name": "elasticsearch_filter_only_retriever", "type": "ElasticsearchFilterOnlyRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}, {"name": "farm_reader", "type": "FARMReader", "params": {"context_window_size": 150, "batch_size": 50, "use_gpu": true, "no_ans_boost": 0.0, "return_no_answer": false, "top_k": 10, "top_k_per_candidate": 3, "top_k_per_sample": 1, "num_processes": 0, "max_seq_len": 256, "doc_stride": 128, "progress_bar": true, "duplicate_filtering": 0, "use_confidence_scores": true, "confidence_threshold": 0, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_filter_only_retriever"}, {"inputs": ["elasticsearch_filter_only_retriever"], "name": "farm_reader"}]}]} |
Generate QuestionAnswerGenerationPipeline consisting of farm reader and QuestionGenerator | {"version": "1.8.0", "components": [{"name": "question_generator", "type": "QuestionGenerator", "params": {"sep_token": "<sep>", "batch_size": 16, "progress_bar": true, "use_auth_token": false}}, {"name": "farm_reader", "type": "FARMReader", "params": {"context_window_size": 150, "batch_size": 50, "use_gpu": true, "no_ans_boost": 0.0, "return_no_answer": false, "top_k": 10, "top_k_per_candidate": 3, "top_k_per_sample": 1, "num_processes": 0, "max_seq_len": 256, "doc_stride": 128, "progress_bar": true, "duplicate_filtering": 0, "use_confidence_scores": true, "confidence_threshold": 0, "use_auth_token": false}}], "pipelines": [{"name": "my_question_answering_pipeline", "nodes": [{"inputs": ["Query"], "name": "question_generator"}, {"inputs": ["question_generator"], "name": "farm_reader"}]}]} |
Generate Haystack QuestionAnswerGenerationPipeline with question generator and FARMReader | {"version": "1.8.0", "components": [{"name": "question_generator", "type": "QuestionGenerator", "params": {"sep_token": "<sep>", "batch_size": 16, "progress_bar": true, "use_auth_token": false}}, {"name": "farm_reader", "type": "FARMReader", "params": {"context_window_size": 150, "batch_size": 50, "use_gpu": true, "no_ans_boost": 0.0, "return_no_answer": false, "top_k": 10, "top_k_per_candidate": 3, "top_k_per_sample": 1, "num_processes": 0, "max_seq_len": 256, "doc_stride": 128, "progress_bar": true, "duplicate_filtering": 0, "use_confidence_scores": true, "confidence_threshold": 0, "use_auth_token": false}}], "pipelines": [{"name": "my_question_answering_pipeline", "nodes": [{"inputs": ["Query"], "name": "question_generator"}, {"inputs": ["question_generator"], "name": "farm_reader"}]}]} |
Generate Haystack question generation system | {"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]} |
Create search summarization with sql document store, EmbeddingRetriever and transformers summarizer | {"version": "1.8.0", "components": [{"name": "sql_document_store", "type": "SQLDocumentStore", "params": {"url": "sqlite://", "index": "document", "label_index": "label", "duplicate_documents": "overwrite", "check_same_thread": false}}, {"name": "embedding_retriever", "type": "EmbeddingRetriever", "params": {"use_gpu": true, "batch_size": 32, "max_seq_len": 512, "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "transformers_summarizer", "type": "TransformersSummarizer", "params": {"model_name_or_path": "google/pegasus-xsum", "max_length": 200, "min_length": 5, "use_gpu": true, "clean_up_tokenization_spaces": true, "separator_for_single_summary": " ", "generate_single_summary": false, "batch_size": 16, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "embedding_retriever"}, {"inputs": ["embedding_retriever"], "name": "transformers_summarizer"}]}]} |
Make Haystack DocumentSearchPipeline using TfidfRetriever and open distro elasticsearch document store | {"version": "1.8.0", "components": [{"name": "open_distro_elasticsearch_document_store", "type": "OpenDistroElasticsearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "cosine", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "tfidf_retriever", "type": "TfidfRetriever", "params": {"top_k": 10}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "tfidf_retriever"}, {"inputs": ["tfidf_retriever"]}]}]} |
Create Haystack question answer generation system with QuestionGenerator and FARMReader | {"version": "1.8.0", "components": [{"name": "question_generator", "type": "QuestionGenerator", "params": {"sep_token": "<sep>", "batch_size": 16, "progress_bar": true, "use_auth_token": false}}, {"name": "farm_reader", "type": "FARMReader", "params": {"context_window_size": 150, "batch_size": 50, "use_gpu": true, "no_ans_boost": 0.0, "return_no_answer": false, "top_k": 10, "top_k_per_candidate": 3, "top_k_per_sample": 1, "num_processes": 0, "max_seq_len": 256, "doc_stride": 128, "progress_bar": true, "duplicate_filtering": 0, "use_confidence_scores": true, "confidence_threshold": 0, "use_auth_token": false}}], "pipelines": [{"name": "my_question_answering_pipeline", "nodes": [{"inputs": ["Query"], "name": "question_generator"}, {"inputs": ["question_generator"], "name": "farm_reader"}]}]} |
Generate Haystack generative pipeline consisting of bm25 retriever, faiss document store and seq2 seq generator | {"version": "1.8.0", "components": [{"name": "faiss_document_store", "type": "FAISSDocumentStore", "params": {"sql_url": "sqlite:///faiss_document_store.db", "vector_dim": 0, "embedding_dim": 768, "faiss_index_factory_str": "Flat", "return_embedding": false, "index": "document", "similarity": "dot_product", "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "n_links": 64, "ef_search": 20, "ef_construction": 80, "validate_index_sync": true}}, {"name": "bm25_retriever", "type": "BM25Retriever", "params": {"top_k": 10, "all_terms_must_match": false, "scale_score": true}}, {"name": "seq2_seq_generator", "type": "Seq2SeqGenerator", "params": {"top_k": 1, "max_length": 200, "min_length": 2, "num_beams": 8, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "bm25_retriever"}, {"inputs": ["bm25_retriever"], "name": "seq2_seq_generator"}]}]} |
Build faq pipeline with FAISSDocumentStore and DensePassageRetriever | {"version": "1.8.0", "components": [{"name": "faiss_document_store", "type": "FAISSDocumentStore", "params": {"sql_url": "sqlite:///faiss_document_store.db", "vector_dim": 0, "embedding_dim": 768, "faiss_index_factory_str": "Flat", "return_embedding": false, "index": "document", "similarity": "dot_product", "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "n_links": 64, "ef_search": 20, "ef_construction": 80, "validate_index_sync": true}}, {"name": "dense_passage_retriever", "type": "DensePassageRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_title": true, "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "dense_passage_retriever"}, {"inputs": ["dense_passage_retriever"]}]}]} |
Create Haystack generative qa system using open distro elasticsearch document store, EmbeddingRetriever and Seq2SeqGenerator | {"version": "1.8.0", "components": [{"name": "open_distro_elasticsearch_document_store", "type": "OpenDistroElasticsearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "cosine", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "embedding_retriever", "type": "EmbeddingRetriever", "params": {"use_gpu": true, "batch_size": 32, "max_seq_len": 512, "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "seq2_seq_generator", "type": "Seq2SeqGenerator", "params": {"top_k": 1, "max_length": 200, "min_length": 2, "num_beams": 8, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "embedding_retriever"}, {"inputs": ["embedding_retriever"], "name": "seq2_seq_generator"}]}]} |
Build ExtractiveQAPipeline with bm25 retriever, table reader and open distro elasticsearch document store | {"version": "1.8.0", "components": [{"name": "open_distro_elasticsearch_document_store", "type": "OpenDistroElasticsearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "cosine", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "bm25_retriever", "type": "BM25Retriever", "params": {"top_k": 10, "all_terms_must_match": false, "scale_score": true}}, {"name": "table_reader", "type": "TableReader", "params": {"model_name_or_path": "google/tapas-base-finetuned-wtq", "use_gpu": true, "top_k": 10, "top_k_per_candidate": 3, "return_no_answer": false, "max_seq_len": 256, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "bm25_retriever"}, {"inputs": ["bm25_retriever"], "name": "table_reader"}]}]} |
Build GenerativeQAPipeline using tfidf retriever, InMemoryDocumentStore and ra generator | {"version": "1.8.0", "components": [{"name": "in_memory_document_store", "type": "InMemoryDocumentStore", "params": {"index": "document", "label_index": "label", "embedding_dim": 768, "return_embedding": false, "similarity": "dot_product", "progress_bar": true, "duplicate_documents": "overwrite", "use_gpu": true, "scoring_batch_size": 500000}}, {"name": "tfidf_retriever", "type": "TfidfRetriever", "params": {"top_k": 10}}, {"name": "ra_generator", "type": "RAGenerator", "params": {"model_name_or_path": "facebook/rag-token-nq", "generator_type": "token", "top_k": 2, "max_length": 200, "min_length": 2, "num_beams": 2, "embed_title": true, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "tfidf_retriever"}, {"inputs": ["tfidf_retriever"], "name": "ra_generator"}]}]} |
Generate Haystack generative qa system using open distro elasticsearch document store, embedding retriever and Seq2SeqGenerator | {"version": "1.8.0", "components": [{"name": "open_distro_elasticsearch_document_store", "type": "OpenDistroElasticsearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "cosine", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "embedding_retriever", "type": "EmbeddingRetriever", "params": {"use_gpu": true, "batch_size": 32, "max_seq_len": 512, "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "seq2_seq_generator", "type": "Seq2SeqGenerator", "params": {"top_k": 1, "max_length": 200, "min_length": 2, "num_beams": 8, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "embedding_retriever"}, {"inputs": ["embedding_retriever"], "name": "seq2_seq_generator"}]}]} |
Generate search summarization consisting of PineconeDocumentStore, ElasticsearchFilterOnlyRetriever and transformers summarizer | {"version": "1.8.0", "components": [{"name": "pinecone_document_store", "type": "PineconeDocumentStore", "params": {"environment": "us-west1-gcp", "embedding_dim": 768, "return_embedding": false, "index": "document", "similarity": "cosine", "replicas": 1, "shards": 1, "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "recreate_index": false, "validate_index_sync": true}}, {"name": "elasticsearch_filter_only_retriever", "type": "ElasticsearchFilterOnlyRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}, {"name": "transformers_summarizer", "type": "TransformersSummarizer", "params": {"model_name_or_path": "google/pegasus-xsum", "max_length": 200, "min_length": 5, "use_gpu": true, "clean_up_tokenization_spaces": true, "separator_for_single_summary": " ", "generate_single_summary": false, "batch_size": 16, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_filter_only_retriever"}, {"inputs": ["elasticsearch_filter_only_retriever"], "name": "transformers_summarizer"}]}]} |
Build ExtractiveQAPipeline using WeaviateDocumentStore, TableTextRetriever and TableReader | {"version": "1.8.0", "components": [{"name": "weaviate_document_store", "type": "WeaviateDocumentStore", "params": {"port": 0, "timeout_config": [5, 15], "index": "Document", "embedding_dim": 768, "content_field": "content", "name_field": "name", "similarity": "cosine", "index_type": "hnsw", "return_embedding": false, "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "recreate_index": false}}, {"name": "table_text_retriever", "type": "TableTextRetriever", "params": {"max_seq_len_query": 64, "max_seq_len_passage": 256, "max_seq_len_table": 256, "top_k": 10, "use_gpu": true, "batch_size": 16, "embed_meta_fields": ["name", "section_title", "caption"], "use_fast_tokenizers": true, "similarity_function": "dot_product", "global_loss_buffer_size": 150000, "progress_bar": true, "use_auth_token": false, "scale_score": true, "use_fast": true}}, {"name": "table_reader", "type": "TableReader", "params": {"model_name_or_path": "google/tapas-base-finetuned-wtq", "use_gpu": true, "top_k": 10, "top_k_per_candidate": 3, "return_no_answer": false, "max_seq_len": 256, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "table_text_retriever"}, {"inputs": ["table_text_retriever"], "name": "table_reader"}]}]} |
Create QuestionGenerationPipeline | {"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]} |
Make DocumentSearchPipeline consisting of ElasticsearchRetriever and faiss document store | {"version": "1.8.0", "components": [{"name": "faiss_document_store", "type": "FAISSDocumentStore", "params": {"sql_url": "sqlite:///faiss_document_store.db", "vector_dim": 0, "embedding_dim": 768, "faiss_index_factory_str": "Flat", "return_embedding": false, "index": "document", "similarity": "dot_product", "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "n_links": 64, "ef_search": 20, "ef_construction": 80, "validate_index_sync": true}}, {"name": "elasticsearch_retriever", "type": "ElasticsearchRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"]}]}]} |
Make extractive qa with in memory document store, BM25Retriever and transformers reader | {"version": "1.8.0", "components": [{"name": "in_memory_document_store", "type": "InMemoryDocumentStore", "params": {"index": "document", "label_index": "label", "embedding_dim": 768, "return_embedding": false, "similarity": "dot_product", "progress_bar": true, "duplicate_documents": "overwrite", "use_gpu": true, "scoring_batch_size": 500000}}, {"name": "bm25_retriever", "type": "BM25Retriever", "params": {"top_k": 10, "all_terms_must_match": false, "scale_score": true}}, {"name": "transformers_reader", "type": "TransformersReader", "params": {"model_name_or_path": "distilbert-base-uncased-distilled-squad", "context_window_size": 70, "use_gpu": true, "top_k": 10, "top_k_per_candidate": 3, "return_no_answers": false, "max_seq_len": 256, "doc_stride": 128, "batch_size": 16, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "bm25_retriever"}, {"inputs": ["bm25_retriever"], "name": "transformers_reader"}]}]} |
Create question answer generation pipeline with question generator and rci reader | {"version": "1.8.0", "components": [{"name": "question_generator", "type": "QuestionGenerator", "params": {"sep_token": "<sep>", "batch_size": 16, "progress_bar": true, "use_auth_token": false}}, {"name": "rci_reader", "type": "RCIReader", "params": {"row_model_name_or_path": "michaelrglass/albert-base-rci-wikisql-row", "column_model_name_or_path": "michaelrglass/albert-base-rci-wikisql-col", "use_gpu": true, "top_k": 10, "max_seq_len": 256, "use_auth_token": false}}], "pipelines": [{"name": "my_question_answering_pipeline", "nodes": [{"inputs": ["Query"], "name": "question_generator"}, {"inputs": ["question_generator"], "name": "rci_reader"}]}]} |
Generate search summarization pipeline with PineconeDocumentStore, BM25Retriever and TransformersSummarizer | {"version": "1.8.0", "components": [{"name": "pinecone_document_store", "type": "PineconeDocumentStore", "params": {"environment": "us-west1-gcp", "embedding_dim": 768, "return_embedding": false, "index": "document", "similarity": "cosine", "replicas": 1, "shards": 1, "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "recreate_index": false, "validate_index_sync": true}}, {"name": "bm25_retriever", "type": "BM25Retriever", "params": {"top_k": 10, "all_terms_must_match": false, "scale_score": true}}, {"name": "transformers_summarizer", "type": "TransformersSummarizer", "params": {"model_name_or_path": "google/pegasus-xsum", "max_length": 200, "min_length": 5, "use_gpu": true, "clean_up_tokenization_spaces": true, "separator_for_single_summary": " ", "generate_single_summary": false, "batch_size": 16, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "bm25_retriever"}, {"inputs": ["bm25_retriever"], "name": "transformers_summarizer"}]}]} |
Make question answer generation system using QuestionGenerator and transformers reader | {"version": "1.8.0", "components": [{"name": "question_generator", "type": "QuestionGenerator", "params": {"sep_token": "<sep>", "batch_size": 16, "progress_bar": true, "use_auth_token": false}}, {"name": "transformers_reader", "type": "TransformersReader", "params": {"model_name_or_path": "distilbert-base-uncased-distilled-squad", "context_window_size": 70, "use_gpu": true, "top_k": 10, "top_k_per_candidate": 3, "return_no_answers": false, "max_seq_len": 256, "doc_stride": 128, "batch_size": 16, "use_auth_token": false}}], "pipelines": [{"name": "my_question_answering_pipeline", "nodes": [{"inputs": ["Query"], "name": "question_generator"}, {"inputs": ["question_generator"], "name": "transformers_reader"}]}]} |
Make search summarization pipeline with transformers summarizer, MultihopEmbeddingRetriever and faiss document store | {"version": "1.8.0", "components": [{"name": "faiss_document_store", "type": "FAISSDocumentStore", "params": {"sql_url": "sqlite:///faiss_document_store.db", "vector_dim": 0, "embedding_dim": 768, "faiss_index_factory_str": "Flat", "return_embedding": false, "index": "document", "similarity": "dot_product", "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "n_links": 64, "ef_search": 20, "ef_construction": 80, "validate_index_sync": true}}, {"name": "multihop_embedding_retriever", "type": "MultihopEmbeddingRetriever", "params": {"num_iterations": 2, "use_gpu": true, "batch_size": 32, "max_seq_len": 512, "model_format": "farm", "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "transformers_summarizer", "type": "TransformersSummarizer", "params": {"model_name_or_path": "google/pegasus-xsum", "max_length": 200, "min_length": 5, "use_gpu": true, "clean_up_tokenization_spaces": true, "separator_for_single_summary": " ", "generate_single_summary": false, "batch_size": 16, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "multihop_embedding_retriever"}, {"inputs": ["multihop_embedding_retriever"], "name": "transformers_summarizer"}]}]} |
Make search pipeline with pinecone document store and elasticsearch retriever | {"version": "1.8.0", "components": [{"name": "pinecone_document_store", "type": "PineconeDocumentStore", "params": {"environment": "us-west1-gcp", "embedding_dim": 768, "return_embedding": false, "index": "document", "similarity": "cosine", "replicas": 1, "shards": 1, "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "recreate_index": false, "validate_index_sync": true}}, {"name": "elasticsearch_retriever", "type": "ElasticsearchRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"]}]}]} |
Make question generation pipeline | {"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]} |
Make search summarization system consisting of elasticsearch filter only retriever, TransformersSummarizer and faiss document store | {"version": "1.8.0", "components": [{"name": "faiss_document_store", "type": "FAISSDocumentStore", "params": {"sql_url": "sqlite:///faiss_document_store.db", "vector_dim": 0, "embedding_dim": 768, "faiss_index_factory_str": "Flat", "return_embedding": false, "index": "document", "similarity": "dot_product", "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "n_links": 64, "ef_search": 20, "ef_construction": 80, "validate_index_sync": true}}, {"name": "elasticsearch_filter_only_retriever", "type": "ElasticsearchFilterOnlyRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}, {"name": "transformers_summarizer", "type": "TransformersSummarizer", "params": {"model_name_or_path": "google/pegasus-xsum", "max_length": 200, "min_length": 5, "use_gpu": true, "clean_up_tokenization_spaces": true, "separator_for_single_summary": " ", "generate_single_summary": false, "batch_size": 16, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_filter_only_retriever"}, {"inputs": ["elasticsearch_filter_only_retriever"], "name": "transformers_summarizer"}]}]} |
Make question answer generation pipeline with TransformersReader and QuestionGenerator | {"version": "1.8.0", "components": [{"name": "question_generator", "type": "QuestionGenerator", "params": {"sep_token": "<sep>", "batch_size": 16, "progress_bar": true, "use_auth_token": false}}, {"name": "transformers_reader", "type": "TransformersReader", "params": {"model_name_or_path": "distilbert-base-uncased-distilled-squad", "context_window_size": 70, "use_gpu": true, "top_k": 10, "top_k_per_candidate": 3, "return_no_answers": false, "max_seq_len": 256, "doc_stride": 128, "batch_size": 16, "use_auth_token": false}}], "pipelines": [{"name": "my_question_answering_pipeline", "nodes": [{"inputs": ["Query"], "name": "question_generator"}, {"inputs": ["question_generator"], "name": "transformers_reader"}]}]} |
Make Haystack extractive qa system consisting of in memory document store, farm reader and elasticsearch filter only retriever | {"version": "1.8.0", "components": [{"name": "in_memory_document_store", "type": "InMemoryDocumentStore", "params": {"index": "document", "label_index": "label", "embedding_dim": 768, "return_embedding": false, "similarity": "dot_product", "progress_bar": true, "duplicate_documents": "overwrite", "use_gpu": true, "scoring_batch_size": 500000}}, {"name": "elasticsearch_filter_only_retriever", "type": "ElasticsearchFilterOnlyRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}, {"name": "farm_reader", "type": "FARMReader", "params": {"context_window_size": 150, "batch_size": 50, "use_gpu": true, "no_ans_boost": 0.0, "return_no_answer": false, "top_k": 10, "top_k_per_candidate": 3, "top_k_per_sample": 1, "num_processes": 0, "max_seq_len": 256, "doc_stride": 128, "progress_bar": true, "duplicate_filtering": 0, "use_confidence_scores": true, "confidence_threshold": 0, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_filter_only_retriever"}, {"inputs": ["elasticsearch_filter_only_retriever"], "name": "farm_reader"}]}]} |
Build generative pipeline consisting of in memory document store, tfidf retriever and RAGenerator | {"version": "1.8.0", "components": [{"name": "in_memory_document_store", "type": "InMemoryDocumentStore", "params": {"index": "document", "label_index": "label", "embedding_dim": 768, "return_embedding": false, "similarity": "dot_product", "progress_bar": true, "duplicate_documents": "overwrite", "use_gpu": true, "scoring_batch_size": 500000}}, {"name": "tfidf_retriever", "type": "TfidfRetriever", "params": {"top_k": 10}}, {"name": "ra_generator", "type": "RAGenerator", "params": {"model_name_or_path": "facebook/rag-token-nq", "generator_type": "token", "top_k": 2, "max_length": 200, "min_length": 2, "num_beams": 2, "embed_title": true, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "tfidf_retriever"}, {"inputs": ["tfidf_retriever"], "name": "ra_generator"}]}]} |
Generate Haystack question generation pipeline | {"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]} |
Generate Haystack generative qa system consisting of tfidf retriever, Seq2SeqGenerator and DeepsetCloudDocumentStore | {"version": "1.8.0", "components": [{"name": "deepset_cloud_document_store", "type": "DeepsetCloudDocumentStore", "params": {"workspace": "default", "duplicate_documents": "overwrite", "similarity": "dot_product", "return_embedding": false, "label_index": "default", "embedding_dim": 768}}, {"name": "tfidf_retriever", "type": "TfidfRetriever", "params": {"top_k": 10}}, {"name": "seq2_seq_generator", "type": "Seq2SeqGenerator", "params": {"top_k": 1, "max_length": 200, "min_length": 2, "num_beams": 8, "use_gpu": true, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "tfidf_retriever"}, {"inputs": ["tfidf_retriever"], "name": "seq2_seq_generator"}]}]} |
Generate Haystack extractive qa pipeline consisting of multihop embedding retriever, sql document store and transformers reader | {"version": "1.8.0", "components": [{"name": "sql_document_store", "type": "SQLDocumentStore", "params": {"url": "sqlite://", "index": "document", "label_index": "label", "duplicate_documents": "overwrite", "check_same_thread": false}}, {"name": "multihop_embedding_retriever", "type": "MultihopEmbeddingRetriever", "params": {"num_iterations": 2, "use_gpu": true, "batch_size": 32, "max_seq_len": 512, "model_format": "farm", "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "transformers_reader", "type": "TransformersReader", "params": {"model_name_or_path": "distilbert-base-uncased-distilled-squad", "context_window_size": 70, "use_gpu": true, "top_k": 10, "top_k_per_candidate": 3, "return_no_answers": false, "max_seq_len": 256, "doc_stride": 128, "batch_size": 16, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "multihop_embedding_retriever"}, {"inputs": ["multihop_embedding_retriever"], "name": "transformers_reader"}]}]} |
Build document search pipeline using OpenDistroElasticsearchDocumentStore and TfidfRetriever | {"version": "1.8.0", "components": [{"name": "open_distro_elasticsearch_document_store", "type": "OpenDistroElasticsearchDocumentStore", "params": {"scheme": "https", "username": "admin", "password": "admin", "port": 0, "index": "document", "label_index": "label", "content_field": "content", "name_field": "name", "embedding_field": "embedding", "embedding_dim": 768, "analyzer": "standard", "verify_certs": false, "recreate_index": false, "create_index": true, "refresh_type": "wait_for", "similarity": "cosine", "timeout": 30, "return_embedding": false, "duplicate_documents": "overwrite", "index_type": "flat", "scroll": "1d", "skip_missing_embeddings": true, "synonym_type": "synonym", "use_system_proxy": false}}, {"name": "tfidf_retriever", "type": "TfidfRetriever", "params": {"top_k": 10}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "tfidf_retriever"}, {"inputs": ["tfidf_retriever"]}]}]} |
Generate Haystack qa system consisting of elasticsearch filter only retriever, in memory document store and TableReader | {"version": "1.8.0", "components": [{"name": "in_memory_document_store", "type": "InMemoryDocumentStore", "params": {"index": "document", "label_index": "label", "embedding_dim": 768, "return_embedding": false, "similarity": "dot_product", "progress_bar": true, "duplicate_documents": "overwrite", "use_gpu": true, "scoring_batch_size": 500000}}, {"name": "elasticsearch_filter_only_retriever", "type": "ElasticsearchFilterOnlyRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}, {"name": "table_reader", "type": "TableReader", "params": {"model_name_or_path": "google/tapas-base-finetuned-wtq", "use_gpu": true, "top_k": 10, "top_k_per_candidate": 3, "return_no_answer": false, "max_seq_len": 256, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "elasticsearch_filter_only_retriever"}, {"inputs": ["elasticsearch_filter_only_retriever"], "name": "table_reader"}]}]} |
Create Haystack search summarization system consisting of TransformersSummarizer, multihop embedding retriever and faiss document store | {"version": "1.8.0", "components": [{"name": "faiss_document_store", "type": "FAISSDocumentStore", "params": {"sql_url": "sqlite:///faiss_document_store.db", "vector_dim": 0, "embedding_dim": 768, "faiss_index_factory_str": "Flat", "return_embedding": false, "index": "document", "similarity": "dot_product", "embedding_field": "embedding", "progress_bar": true, "duplicate_documents": "overwrite", "n_links": 64, "ef_search": 20, "ef_construction": 80, "validate_index_sync": true}}, {"name": "multihop_embedding_retriever", "type": "MultihopEmbeddingRetriever", "params": {"num_iterations": 2, "use_gpu": true, "batch_size": 32, "max_seq_len": 512, "model_format": "farm", "pooling_strategy": "reduce_mean", "emb_extraction_layer": -1, "top_k": 10, "progress_bar": true, "use_auth_token": false, "scale_score": true}}, {"name": "transformers_summarizer", "type": "TransformersSummarizer", "params": {"model_name_or_path": "google/pegasus-xsum", "max_length": 200, "min_length": 5, "use_gpu": true, "clean_up_tokenization_spaces": true, "separator_for_single_summary": " ", "generate_single_summary": false, "batch_size": 16, "progress_bar": true, "use_auth_token": false}}], "pipelines": [{"name": "my_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "multihop_embedding_retriever"}, {"inputs": ["multihop_embedding_retriever"], "name": "transformers_summarizer"}]}]} |
Build Haystack question answer generation system using transformers reader and question generator | {"version": "1.8.0", "components": [{"name": "question_generator", "type": "QuestionGenerator", "params": {"sep_token": "<sep>", "batch_size": 16, "progress_bar": true, "use_auth_token": false}}, {"name": "transformers_reader", "type": "TransformersReader", "params": {"model_name_or_path": "distilbert-base-uncased-distilled-squad", "context_window_size": 70, "use_gpu": true, "top_k": 10, "top_k_per_candidate": 3, "return_no_answers": false, "max_seq_len": 256, "doc_stride": 128, "batch_size": 16, "use_auth_token": false}}], "pipelines": [{"name": "my_question_answering_pipeline", "nodes": [{"inputs": ["Query"], "name": "question_generator"}, {"inputs": ["question_generator"], "name": "transformers_reader"}]}]} |