mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-05 11:38:20 +00:00
* change class names to bm25 * Update Documentation & Code Style * Update Documentation & Code Style * Update Documentation & Code Style * Add back all_terms_must_match * fix syntax * Update Documentation & Code Style * Update Documentation & Code Style * Creating a wrapper for old ES retriever with deprecated wrapper * Update Documentation & Code Style * New method for deprecating old ESRetriever * New attempt for deprecating the ESRetriever * Reverting to the simplest solution - warning logged * Update Documentation & Code Style Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Sara Zan <sara.zanzottera@deepset.ai>
82 lines
2.0 KiB
JSON
82 lines
2.0 KiB
JSON
{
|
|
"version": "master",
|
|
"name": "document_retrieval_1",
|
|
"components": [
|
|
{
|
|
"name": "DocumentStore",
|
|
"type": "DeepsetCloudDocumentStore",
|
|
"params": {
|
|
"similarity": "cosine"
|
|
}
|
|
},
|
|
{
|
|
"name": "Retriever",
|
|
"type": "BM25Retriever",
|
|
"params": {
|
|
"document_store": "DocumentStore",
|
|
"top_k": 5
|
|
}
|
|
},
|
|
{
|
|
"name": "Reader",
|
|
"type": "FARMReader",
|
|
"params": {
|
|
"model_name_or_path": "deepset/minilm-uncased-squad2"
|
|
}
|
|
},
|
|
{
|
|
"name": "TextFileConverter",
|
|
"type": "TextConverter"
|
|
},
|
|
{
|
|
"name": "Preprocessor",
|
|
"type": "PreProcessor",
|
|
"params": {
|
|
"split_by": "word",
|
|
"split_length": 1000
|
|
}
|
|
}
|
|
],
|
|
"pipelines": [
|
|
{
|
|
"name": "query",
|
|
"nodes": [
|
|
{
|
|
"name": "Retriever",
|
|
"inputs": [
|
|
"Query"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "indexing",
|
|
"nodes": [
|
|
{
|
|
"name": "TextFileConverter",
|
|
"inputs": [
|
|
"File"
|
|
]
|
|
},
|
|
{
|
|
"name": "Preprocessor",
|
|
"inputs": [
|
|
"TextFileConverter"
|
|
]
|
|
},
|
|
{
|
|
"name": "Retriever",
|
|
"inputs": [
|
|
"Preprocessor"
|
|
]
|
|
},
|
|
{
|
|
"name": "DocumentStore",
|
|
"inputs": [
|
|
"Retriever"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |