prompt
stringlengths
31
162
pipeline
stringlengths
207
1.65k
Generate Haystack document search pipeline with open distro elasticsearch document store 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"]}]}]}
Create Haystack document search pipeline with ElasticsearchRetriever 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": "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 search pipeline using BM25Retriever and elasticsearch document store
{"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}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "bm25_retriever"}, {"inputs": ["bm25_retriever"]}]}]}
Generate Haystack search pipeline with ElasticsearchRetriever and in memory document store
{"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"]}]}]}
Generate QuestionGenerationPipeline
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Make Haystack GenerativeQAPipeline with Seq2SeqGenerator, TableTextRetriever 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": "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": "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": "table_text_retriever"}, {"inputs": ["table_text_retriever"], "name": "seq2_seq_generator"}]}]}
Generate Haystack GenerativeQAPipeline consisting of pinecone document store, OpenAIAnswerGenerator and table text 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": "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": "open_ai_answer_generator", "type": "OpenAIAnswerGenerator", "params": {"model": "text-curie-001", "max_tokens": 7, "top_k": 5, "temperature": 0, "presence_penalty": -2.0, "frequency_penalty": -2.0, "progress_bar": true}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "table_text_retriever"}, {"inputs": ["table_text_retriever"], "name": "open_ai_answer_generator"}]}]}
Make Haystack 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"}]}]}
Generate Haystack faq search pipeline using pinecone document store 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"]}]}]}
Generate Haystack search summarization using TransformersSummarizer, bm25 retriever 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"}]}]}
Make document search system consisting of 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 Haystack ExtractiveQAPipeline using DensePassageRetriever, weaviate document store and TransformersReader
{"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_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": "dense_passage_retriever"}, {"inputs": ["dense_passage_retriever"], "name": "transformers_reader"}]}]}
Generate question generation pipeline
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Create Haystack document search pipeline using 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}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "bm25_retriever"}, {"inputs": ["bm25_retriever"]}]}]}
Make Haystack question generation pipeline
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Generate Haystack question generation pipeline
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Build GenerativeQAPipeline using open distro elasticsearch document store, ra generator and elasticsearch 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_retriever", "type": "ElasticsearchRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}, {"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": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"], "name": "ra_generator"}]}]}
Generate question answer generation pipeline with question generator and farm 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": "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 extractive qa system consisting of rci reader, FilterRetriever 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": "filter_retriever", "type": "FilterRetriever", "params": {"top_k": 10, "all_terms_must_match": false, "scale_score": true}}, {"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_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "filter_retriever"}, {"inputs": ["filter_retriever"], "name": "rci_reader"}]}]}
Create Haystack question generation system
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Generate DocumentSearchPipeline with TfidfRetriever 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": "tfidf_retriever", "type": "TfidfRetriever", "params": {"top_k": 10}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "tfidf_retriever"}, {"inputs": ["tfidf_retriever"]}]}]}
Make question answer generation system 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"}]}]}
Build Haystack faq search pipeline consisting of BM25Retriever 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": "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"]}]}]}
Generate question answer generation pipeline with rci 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": "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 Haystack question generation system
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Create document search pipeline using deepset cloud document store and EmbeddingRetriever
{"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"]}]}]}
Generate Haystack extractive qa pipeline consisting of ElasticsearchFilterOnlyRetriever, FAISSDocumentStore and FARMReader
{"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"}]}]}
Make Haystack search summarization pipeline using elasticsearch filter only retriever, in memory document store and TransformersSummarizer
{"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": "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 Haystack question generation pipeline
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Build search 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"]}]}]}
Build Haystack question answer generation pipeline consisting of question generator 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 extractive qa pipeline with elasticsearch filter only retriever, FAISSDocumentStore 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"}]}]}
Make Haystack question generation pipeline
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Generate Haystack extractive qa pipeline consisting of elasticsearch filter only retriever, FARMReader and in memory document store
{"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 Haystack DocumentSearchPipeline using bm25 retriever and FAISSDocumentStore
{"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}}], "pipelines": [{"name": "my_doc_search_pipeline", "nodes": [{"inputs": ["Query"], "name": "bm25_retriever"}, {"inputs": ["bm25_retriever"]}]}]}
Create Haystack qa pipeline with PineconeDocumentStore, BM25Retriever and RCIReader
{"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, "metadata_config": {}, "validate_index_sync": true}}, {"name": "bm25_retriever", "type": "BM25Retriever", "params": {"top_k": 10, "all_terms_must_match": false, "scale_score": true}}, {"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_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "bm25_retriever"}, {"inputs": ["bm25_retriever"], "name": "rci_reader"}]}]}
Create Haystack question answer generation system 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"}]}]}
Make qa pipeline consisting of weaviate document store, multihop embedding retriever 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": "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": "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": "multihop_embedding_retriever"}, {"inputs": ["multihop_embedding_retriever"], "name": "farm_reader"}]}]}
Make document search pipeline consisting of elasticsearch retriever 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": "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 using FARMReader, multihop embedding 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": "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": "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": "multihop_embedding_retriever"}, {"inputs": ["multihop_embedding_retriever"], "name": "farm_reader"}]}]}
Make generative qa pipeline consisting of DensePassageRetriever, SQLDocumentStore and ra 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": "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"}]}]}
Build search summarization system consisting of transformers summarizer, FilterRetriever 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": "filter_retriever", "type": "FilterRetriever", "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": "filter_retriever"}, {"inputs": ["filter_retriever"], "name": "transformers_summarizer"}]}]}
Build search summarization with SQLDocumentStore, embedding retriever and TransformersSummarizer
{"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 DocumentSearchPipeline with deepset cloud document store and embedding 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": "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 GenerativeQAPipeline with seq2 seq generator, DensePassageRetriever 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": "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"}]}]}
Build extractive qa pipeline using sql document store, multihop embedding retriever 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 question generation system
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Build faq pipeline using 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"]}]}]}
Generate Haystack search summarization system with BM25Retriever, TransformersSummarizer 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": "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 search summarization pipeline consisting of tfidf retriever, transformers summarizer and pinecone document store
{"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": "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"}]}]}
Make qa pipeline consisting of BM25Retriever, faiss document store and TransformersReader
{"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": "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"}]}]}
Build generative qa system consisting of WeaviateDocumentStore, open ai answer generator and dense passage retriever
{"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": "open_ai_answer_generator", "type": "OpenAIAnswerGenerator", "params": {"model": "text-curie-001", "max_tokens": 7, "top_k": 5, "temperature": 0, "presence_penalty": -2.0, "frequency_penalty": -2.0, "progress_bar": true}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "dense_passage_retriever"}, {"inputs": ["dense_passage_retriever"], "name": "open_ai_answer_generator"}]}]}
Make Haystack search pipeline using table text retriever and elasticsearch document store
{"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 search pipeline consisting of faiss document store and dense passage 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": "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"]}]}]}
Make Haystack document search pipeline with BM25Retriever 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": "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"]}]}]}
Build Haystack question generation pipeline
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Create document search system with ElasticsearchDocumentStore and TableTextRetriever
{"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"]}]}]}
Build generative pipeline with OpenAIAnswerGenerator, weaviate document store and embedding retriever
{"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": "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": "open_ai_answer_generator", "type": "OpenAIAnswerGenerator", "params": {"model": "text-curie-001", "max_tokens": 7, "top_k": 5, "temperature": 0, "presence_penalty": -2.0, "frequency_penalty": -2.0, "progress_bar": true}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "embedding_retriever"}, {"inputs": ["embedding_retriever"], "name": "open_ai_answer_generator"}]}]}
Generate Haystack question generation pipeline
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Create Haystack search pipeline consisting of elasticsearch filter only retriever 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": "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"]}]}]}
Make FAQPipeline using ElasticsearchRetriever and pinecone document store
{"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"]}]}]}
Build extractive qa system with MultihopEmbeddingRetriever, transformers reader and FAISSDocumentStore
{"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_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"}]}]}
Make generative pipeline consisting of ra generator, open distro elasticsearch document store and EmbeddingRetriever
{"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"}]}]}
Make Haystack search summarization pipeline with in memory document store, DensePassageRetriever and TransformersSummarizer
{"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"}]}]}
Build Haystack question answer generation pipeline using 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"}]}]}
Build Haystack search pipeline with deepset cloud document store 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 question answer generation system using rci 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": "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 qa pipeline using pinecone document store, bm25 retriever and RCIReader
{"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, "metadata_config": {}, "validate_index_sync": true}}, {"name": "bm25_retriever", "type": "BM25Retriever", "params": {"top_k": 10, "all_terms_must_match": false, "scale_score": true}}, {"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_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "bm25_retriever"}, {"inputs": ["bm25_retriever"], "name": "rci_reader"}]}]}
Create Haystack generative pipeline using elasticsearch retriever, ra generator 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": "elasticsearch_retriever", "type": "ElasticsearchRetriever", "params": {"top_k": 10, "all_terms_must_match": false}}, {"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": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"], "name": "ra_generator"}]}]}
Generate Haystack search summarization pipeline consisting of TransformersSummarizer, MultihopEmbeddingRetriever and open search document store
{"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}}, {"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 generation system
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Generate faq pipeline with deepset cloud document store and ElasticsearchRetriever
{"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 QuestionGenerationPipeline
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Create Haystack faq pipeline using 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"]}]}]}
Generate Haystack question answer generation pipeline with TableReader 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": "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 QuestionGenerationPipeline
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Make Haystack qa system consisting of WeaviateDocumentStore, multihop embedding retriever and rci reader
{"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}}, {"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_query_pipeline", "nodes": [{"inputs": ["Query"], "name": "multihop_embedding_retriever"}, {"inputs": ["multihop_embedding_retriever"], "name": "rci_reader"}]}]}
Generate Haystack ExtractiveQAPipeline with TableReader, SQLDocumentStore and ElasticsearchRetriever
{"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"}]}]}
Create qa pipeline using OpenDistroElasticsearchDocumentStore, BM25Retriever and TableReader
{"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"}]}]}
Generate question answer generation pipeline with 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"}]}]}
Build faq search pipeline using pinecone document store and elasticsearch filter only 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_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"]}]}]}
Generate Haystack FAQPipeline using OpenDistroElasticsearchDocumentStore and TableTextRetriever
{"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": "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 using OpenAIAnswerGenerator, WeaviateDocumentStore and embedding retriever
{"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": "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": "open_ai_answer_generator", "type": "OpenAIAnswerGenerator", "params": {"model": "text-curie-001", "max_tokens": 7, "top_k": 5, "temperature": 0, "presence_penalty": -2.0, "frequency_penalty": -2.0, "progress_bar": true}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "embedding_retriever"}, {"inputs": ["embedding_retriever"], "name": "open_ai_answer_generator"}]}]}
Make Haystack generative qa using seq2 seq generator, ElasticsearchRetriever 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": "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"}]}]}
Build Haystack generative pipeline consisting of EmbeddingRetriever, open ai answer generator and WeaviateDocumentStore
{"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": "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": "open_ai_answer_generator", "type": "OpenAIAnswerGenerator", "params": {"model": "text-curie-001", "max_tokens": 7, "top_k": 5, "temperature": 0, "presence_penalty": -2.0, "frequency_penalty": -2.0, "progress_bar": true}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "embedding_retriever"}, {"inputs": ["embedding_retriever"], "name": "open_ai_answer_generator"}]}]}
Build Haystack search summarization system consisting of transformers summarizer, faiss document store 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": "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"}]}]}
Build Haystack question generation system
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Create QuestionGenerationPipeline
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Generate search summarization using ElasticsearchFilterOnlyRetriever, FAISSDocumentStore and transformers summarizer
{"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 Haystack question generation system
{"version": "1.8.0", "components": [{"name": "QuestionGenerator", "params": {}, "type": "QuestionGenerator"}], "pipelines": [{"name": "query", "nodes": [{"inputs": ["Query"], "name": "QuestionGenerator"}]}]}
Create generative qa with ra generator, ElasticsearchRetriever 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}}, {"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": "elasticsearch_retriever"}, {"inputs": ["elasticsearch_retriever"], "name": "ra_generator"}]}]}
Make search summarization pipeline with faiss document store, TransformersSummarizer 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": "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"}]}]}
Build Haystack document search pipeline 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"]}]}]}
Build Haystack GenerativeQAPipeline consisting of EmbeddingRetriever, seq2 seq generator 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}}, {"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 Haystack generative qa with ra generator, in memory document store and TfidfRetriever
{"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"}]}]}
Make generative qa pipeline using pinecone document store, open ai answer generator and table text 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": "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": "open_ai_answer_generator", "type": "OpenAIAnswerGenerator", "params": {"model": "text-curie-001", "max_tokens": 7, "top_k": 5, "temperature": 0, "presence_penalty": -2.0, "frequency_penalty": -2.0, "progress_bar": true}}], "pipelines": [{"name": "my_generator_pipeline", "nodes": [{"inputs": ["Query"], "name": "table_text_retriever"}, {"inputs": ["table_text_retriever"], "name": "open_ai_answer_generator"}]}]}
Make Haystack QuestionAnswerGenerationPipeline consisting of FARMReader 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 Haystack search summarization with InMemoryDocumentStore, TransformersSummarizer 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": "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 Haystack generative qa pipeline with OpenDistroElasticsearchDocumentStore, elasticsearch 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": "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"}]}]}