notSoNLPnerd commited on
Commit
e6afd23
1 Parent(s): f0b8f9b

removed pipeline and radio button

Browse files
Files changed (2) hide show
  1. app.py +1 -4
  2. pipeline.yaml +0 -57
app.py CHANGED
@@ -73,10 +73,7 @@ def main():
73
  input = st.text_input("Query ...")
74
 
75
  query_type = st.radio("Type",
76
- ("Retrieval Augmented", "Retrieval Augmented with Sources",
77
- "Retrieval Augmented with Web Search"))
78
-
79
-
80
  col_1, col_2 = st.columns(2)
81
 
82
  with col_1:
 
73
  input = st.text_input("Query ...")
74
 
75
  query_type = st.radio("Type",
76
+ ("Retrieval Augmented", "Retrieval Augmented with Web Search"))
 
 
 
77
  col_1, col_2 = st.columns(2)
78
 
79
  with col_1:
pipeline.yaml DELETED
@@ -1,57 +0,0 @@
1
- components:
2
- - name: DocumentStore
3
- type: FAISSDocumentStore
4
- params:
5
- faiss_index_path: "my_faiss_index.faiss"
6
- faiss_config_path: "my_faiss_config.json"
7
-
8
- - name: Retriever
9
- params:
10
- document_store: DocumentStore
11
- embedding_model: "sentence-transformers/multi-qa-mpnet-base-dot-v1"
12
- type: EmbeddingRetriever
13
-
14
- - name: PromptNode
15
- type: OpenAIAnswerGenerator
16
- params:
17
- model: text-davinci-003
18
- max_tokens: 200 # The maximum number of tokens allowed for each generated Answer.
19
- temperature: 0.8 # Determines the randomness of the model. Higher values mean the model will take more risks
20
- frequency_penalty: 0.1 # Positive values penalize new tokens based on their existing frequency in the text so far.
21
- presence_penalty: 0.1 # Positive values penalize new tokens based on whether they have already appeared in the text.
22
- top_k: 3 # The number of results to return
23
- api_key: "loaded-from-env"
24
-
25
- - name: TextFileConverter
26
- type: TextConverter
27
- pipelines:
28
- - name: query_1
29
- nodes:
30
- - inputs: [Query]
31
- name: Retriever
32
- - inputs: [Retriever]
33
- name: PromptNode
34
-
35
- - name: query_2
36
- nodes:
37
- - inputs: [ Query ]
38
- name: Retriever
39
- - inputs: [ Retriever ]
40
- name: PromptNode
41
-
42
- - name: query_3
43
- nodes:
44
- - inputs: [ Query ]
45
- name: Retriever
46
- - inputs: [ Retriever ]
47
- name: PromptNode
48
-
49
- - name: indexing
50
- nodes:
51
- - name: TextFileConverter
52
- inputs: [ File ]
53
- - name: Retriever
54
- inputs: [ TextFileConverter ]
55
- - name: DocumentStore
56
- inputs: [ Retriever ]
57
- version: ignore