Spaces:
Runtime error
Runtime error
oryx1729
commited on
Commit
•
75ca03c
1
Parent(s):
8df121c
Add OpenAI
Browse files- pipeline.yaml +36 -0
pipeline.yaml
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
|
19 |
+
- name: TextFileConverter
|
20 |
+
type: TextConverter
|
21 |
+
pipelines:
|
22 |
+
- name: query
|
23 |
+
nodes:
|
24 |
+
- inputs: [Query]
|
25 |
+
name: Retriever
|
26 |
+
- inputs: [Retriever]
|
27 |
+
name: PromptNode
|
28 |
+
- name: indexing
|
29 |
+
nodes:
|
30 |
+
- name: TextFileConverter
|
31 |
+
inputs: [File]
|
32 |
+
- name: Retriever
|
33 |
+
inputs: [TextFileConverter]
|
34 |
+
- name: DocumentStore
|
35 |
+
inputs: [Retriever]
|
36 |
+
version: ignore
|