haystack/test/samples/dc/pipeline_config.json
Sara Zan e92ea4fccb
refactor: rename master into main in documentation and links (#3063)
* master->main

* revert master rename

* Revert change to sphinx link and rename master schema
2022-08-24 19:05:12 +02:00

82 lines
2.0 KiB
JSON

{
"version": "ignore",
"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"
]
}
]
}
]
}