mirror of
				https://github.com/deepset-ai/haystack.git
				synced 2025-10-31 09:49:48 +00:00 
			
		
		
		
	Remove Finder from tutorials (#1329)
This commit is contained in:
		
							parent
							
								
									d94674c5b6
								
							
						
					
					
						commit
						be9d19afa5
					
				| @ -228,7 +228,7 @@ | |||||||
|     "#    'meta': {'name': \"<DOCUMENT_NAME_HERE>\", ...}\n", |     "#    'meta': {'name': \"<DOCUMENT_NAME_HERE>\", ...}\n", | ||||||
|     "#}\n", |     "#}\n", | ||||||
|     "# (Optionally: you can also add more key-value-pairs here, that will be indexed as fields in Elasticsearch and\n", |     "# (Optionally: you can also add more key-value-pairs here, that will be indexed as fields in Elasticsearch and\n", | ||||||
|     "# can be accessed later for filtering or shown in the responses of the Finder)\n", |     "# can be accessed later for filtering or shown in the responses of the Pipeline)\n", | ||||||
|     "\n", |     "\n", | ||||||
|     "# Let's have a look at the first 3 entries:\n", |     "# Let's have a look at the first 3 entries:\n", | ||||||
|     "print(dicts[:3])\n", |     "print(dicts[:3])\n", | ||||||
| @ -241,7 +241,7 @@ | |||||||
|    "cell_type": "markdown", |    "cell_type": "markdown", | ||||||
|    "metadata": {}, |    "metadata": {}, | ||||||
|    "source": [ |    "source": [ | ||||||
|     "## Initalize Retriever, Reader,  & Finder\n", |     "## Initalize Retriever, Reader,  & Pipeline\n", | ||||||
|     "\n", |     "\n", | ||||||
|     "### Retriever\n", |     "### Retriever\n", | ||||||
|     "\n", |     "\n", | ||||||
| @ -512,15 +512,6 @@ | |||||||
|    "nbconvert_exporter": "python", |    "nbconvert_exporter": "python", | ||||||
|    "pygments_lexer": "ipython3", |    "pygments_lexer": "ipython3", | ||||||
|    "version": "3.7.6" |    "version": "3.7.6" | ||||||
|   }, |  | ||||||
|   "pycharm": { |  | ||||||
|    "stem_cell": { |  | ||||||
|     "cell_type": "raw", |  | ||||||
|     "source": [], |  | ||||||
|     "metadata": { |  | ||||||
|      "collapsed": false |  | ||||||
|     } |  | ||||||
|    } |  | ||||||
|   } |   } | ||||||
|  }, |  }, | ||||||
|  "nbformat": 4, |  "nbformat": 4, | ||||||
|  | |||||||
| @ -69,7 +69,6 @@ | |||||||
|    }, |    }, | ||||||
|    "outputs": [], |    "outputs": [], | ||||||
|    "source": [ |    "source": [ | ||||||
|     "from haystack import Finder\n", |  | ||||||
|     "from haystack.preprocessor.cleaning import clean_wiki_text\n", |     "from haystack.preprocessor.cleaning import clean_wiki_text\n", | ||||||
|     "from haystack.preprocessor.utils import convert_files_to_dicts, fetch_archive_from_http\n", |     "from haystack.preprocessor.utils import convert_files_to_dicts, fetch_archive_from_http\n", | ||||||
|     "from haystack.reader.farm import FARMReader\n", |     "from haystack.reader.farm import FARMReader\n", | ||||||
| @ -169,7 +168,7 @@ | |||||||
|    "cell_type": "markdown", |    "cell_type": "markdown", | ||||||
|    "metadata": {}, |    "metadata": {}, | ||||||
|    "source": [ |    "source": [ | ||||||
|     "## Initalize Retriever, Reader,  & Finder\n", |     "## Initalize Retriever, Reader & Pipeline\n", | ||||||
|     "\n", |     "\n", | ||||||
|     "### Retriever\n", |     "### Retriever\n", | ||||||
|     "\n", |     "\n", | ||||||
| @ -443,15 +442,6 @@ | |||||||
|    "nbconvert_exporter": "python", |    "nbconvert_exporter": "python", | ||||||
|    "pygments_lexer": "ipython3", |    "pygments_lexer": "ipython3", | ||||||
|    "version": "3.7.6" |    "version": "3.7.6" | ||||||
|   }, |  | ||||||
|   "pycharm": { |  | ||||||
|    "stem_cell": { |  | ||||||
|     "cell_type": "raw", |  | ||||||
|     "source": [], |  | ||||||
|     "metadata": { |  | ||||||
|      "collapsed": false |  | ||||||
|     } |  | ||||||
|    } |  | ||||||
|   } |   } | ||||||
|  }, |  }, | ||||||
|  "nbformat": 4, |  "nbformat": 4, | ||||||
|  | |||||||
| @ -6,7 +6,6 @@ | |||||||
| # | # | ||||||
| # If you are interested in more feature-rich Elasticsearch, then please refer to the Tutorial 1. | # If you are interested in more feature-rich Elasticsearch, then please refer to the Tutorial 1. | ||||||
| 
 | 
 | ||||||
| from haystack import Finder |  | ||||||
| from haystack.document_store.memory import InMemoryDocumentStore | from haystack.document_store.memory import InMemoryDocumentStore | ||||||
| from haystack.document_store.sql import SQLDocumentStore | from haystack.document_store.sql import SQLDocumentStore | ||||||
| from haystack.preprocessor.cleaning import clean_wiki_text | from haystack.preprocessor.cleaning import clean_wiki_text | ||||||
| @ -50,7 +49,7 @@ def tutorial3_basic_qa_pipeline_without_elasticsearch(): | |||||||
|     document_store.write_documents(dicts) |     document_store.write_documents(dicts) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|     # ## Initalize Retriever, Reader,  & Finder |     # ## Initalize Retriever, Reader & Pipeline | ||||||
|     # |     # | ||||||
|     # ### Retriever |     # ### Retriever | ||||||
|     # |     # | ||||||
|  | |||||||
| @ -77,7 +77,6 @@ | |||||||
|    }, |    }, | ||||||
|    "outputs": [], |    "outputs": [], | ||||||
|    "source": [ |    "source": [ | ||||||
|     "from haystack import Finder\n", |  | ||||||
|     "from haystack.document_store.elasticsearch import ElasticsearchDocumentStore\n", |     "from haystack.document_store.elasticsearch import ElasticsearchDocumentStore\n", | ||||||
|     "\n", |     "\n", | ||||||
|     "from haystack.retriever.dense import EmbeddingRetriever\n", |     "from haystack.retriever.dense import EmbeddingRetriever\n", | ||||||
| @ -317,15 +316,6 @@ | |||||||
|    "nbconvert_exporter": "python", |    "nbconvert_exporter": "python", | ||||||
|    "pygments_lexer": "ipython3", |    "pygments_lexer": "ipython3", | ||||||
|    "version": "3.7.6" |    "version": "3.7.6" | ||||||
|   }, |  | ||||||
|   "pycharm": { |  | ||||||
|    "stem_cell": { |  | ||||||
|     "cell_type": "raw", |  | ||||||
|     "source": [], |  | ||||||
|     "metadata": { |  | ||||||
|      "collapsed": false |  | ||||||
|     } |  | ||||||
|    } |  | ||||||
|   } |   } | ||||||
|  }, |  }, | ||||||
|  "nbformat": 4, |  "nbformat": 4, | ||||||
|  | |||||||
| @ -1,4 +1,3 @@ | |||||||
| from haystack import Finder |  | ||||||
| from haystack.document_store.elasticsearch import ElasticsearchDocumentStore | from haystack.document_store.elasticsearch import ElasticsearchDocumentStore | ||||||
| 
 | 
 | ||||||
| from haystack.retriever.dense import EmbeddingRetriever | from haystack.retriever.dense import EmbeddingRetriever | ||||||
|  | |||||||
| @ -299,7 +299,6 @@ | |||||||
|    }, |    }, | ||||||
|    "outputs": [], |    "outputs": [], | ||||||
|    "source": [ |    "source": [ | ||||||
|     "from haystack import Finder\n", |  | ||||||
|     "from haystack.preprocessor.cleaning import clean_wiki_text\n", |     "from haystack.preprocessor.cleaning import clean_wiki_text\n", | ||||||
|     "from haystack.preprocessor.utils import convert_files_to_dicts, fetch_archive_from_http\n", |     "from haystack.preprocessor.utils import convert_files_to_dicts, fetch_archive_from_http\n", | ||||||
|     "from haystack.reader.farm import FARMReader\n", |     "from haystack.reader.farm import FARMReader\n", | ||||||
| @ -452,7 +451,7 @@ | |||||||
|     "id": "wgjedxx_A6N6" |     "id": "wgjedxx_A6N6" | ||||||
|    }, |    }, | ||||||
|    "source": [ |    "source": [ | ||||||
|     "### Initalize Retriever, Reader,  & Finder\n", |     "### Initalize Retriever, Reader & Pipeline\n", | ||||||
|     "\n", |     "\n", | ||||||
|     "#### Retriever\n", |     "#### Retriever\n", | ||||||
|     "\n", |     "\n", | ||||||
|  | |||||||
| @ -1,4 +1,3 @@ | |||||||
| from haystack import Finder |  | ||||||
| from haystack.document_store import FAISSDocumentStore, MilvusDocumentStore | from haystack.document_store import FAISSDocumentStore, MilvusDocumentStore | ||||||
| from haystack.preprocessor.cleaning import clean_wiki_text | from haystack.preprocessor.cleaning import clean_wiki_text | ||||||
| from haystack.preprocessor.utils import convert_files_to_dicts, fetch_archive_from_http | from haystack.preprocessor.utils import convert_files_to_dicts, fetch_archive_from_http | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Malte Pietsch
						Malte Pietsch