File size: 848 Bytes
75ca03c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
components:
  - name: DocumentStore
    type: FAISSDocumentStore
    params:
      faiss_index_path: "my_faiss_index.faiss"
      faiss_config_path: "my_faiss_config.json"

  - name: Retriever
    params:
      document_store: DocumentStore
      embedding_model: "sentence-transformers/multi-qa-mpnet-base-dot-v1"
    type: EmbeddingRetriever

  - name: PromptNode
    type: OpenAIAnswerGenerator
    params:
      model: text-davinci-003

  - name: TextFileConverter
    type: TextConverter
pipelines:
  - name: query
    nodes:
      - inputs: [Query]
        name: Retriever
      - inputs: [Retriever]
        name: PromptNode
  - name: indexing
    nodes:
      - name: TextFileConverter
        inputs: [File]
      - name: Retriever
        inputs: [TextFileConverter]
      - name: DocumentStore
        inputs: [Retriever]
version: ignore