Spaces:
Runtime error
Runtime error
oryx1729
commited on
Commit
·
52b9786
1
Parent(s):
2e9668f
Fix
Browse files- app.py +1 -1
- pipeline.yaml +7 -0
app.py
CHANGED
|
@@ -26,7 +26,7 @@ def app_init():
|
|
| 26 |
# ds.update_embeddings(indexing_pipeline.get_node("Retriever"))
|
| 27 |
# ds.save(config_path="my_faiss_config.json", index_path="my_faiss_index.faiss")
|
| 28 |
|
| 29 |
-
os.environ["
|
| 30 |
|
| 31 |
global p_1
|
| 32 |
p_1 = Pipeline.load_from_yaml("pipeline.yaml", pipeline_name="query_1")
|
|
|
|
| 26 |
# ds.update_embeddings(indexing_pipeline.get_node("Retriever"))
|
| 27 |
# ds.save(config_path="my_faiss_config.json", index_path="my_faiss_index.faiss")
|
| 28 |
|
| 29 |
+
os.environ["PROMPTNODE_PARAMS_API_KEY"] = st.secrets["OPENAI_API_KEY"]
|
| 30 |
|
| 31 |
global p_1
|
| 32 |
p_1 = Pipeline.load_from_yaml("pipeline.yaml", pipeline_name="query_1")
|
pipeline.yaml
CHANGED
|
@@ -39,6 +39,13 @@ pipelines:
|
|
| 39 |
- inputs: [ Retriever ]
|
| 40 |
name: PromptNode
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
- name: indexing
|
| 43 |
nodes:
|
| 44 |
- name: TextFileConverter
|
|
|
|
| 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
|