mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-08 04:56:45 +00:00
* master->main * revert master rename * Revert change to sphinx link and rename master schema
82 lines
2.0 KiB
JSON
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"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |