Spaces:
Runtime error
Runtime error
Commit
·
f98593f
1
Parent(s):
e6afd23
import
Browse files
app.py
CHANGED
|
@@ -5,7 +5,9 @@ import sys
|
|
| 5 |
|
| 6 |
import streamlit as st
|
| 7 |
from haystack import Pipeline
|
| 8 |
-
from haystack.
|
|
|
|
|
|
|
| 9 |
from haystack.schema import Document
|
| 10 |
|
| 11 |
logging.basicConfig(
|
|
@@ -31,6 +33,7 @@ def get_plain_pipeline():
|
|
| 31 |
pipeline.add_node(component=node_openai, name="prompt_node", inputs=["Query"])
|
| 32 |
return pipeline
|
| 33 |
|
|
|
|
| 34 |
def get_ret_aug_pipeline():
|
| 35 |
ds = FAISSDocumentStore(faiss_index_path="my_faiss_index.faiss",
|
| 36 |
faiss_config_path="my_faiss_index.json")
|
|
|
|
| 5 |
|
| 6 |
import streamlit as st
|
| 7 |
from haystack import Pipeline
|
| 8 |
+
from haystack.document_stores import FAISSDocumentStore
|
| 9 |
+
from haystack.nodes import Shaper, PromptNode, PromptTemplate, PromptModel
|
| 10 |
+
from haystack.nodes.retriever.web import WebRetriever
|
| 11 |
from haystack.schema import Document
|
| 12 |
|
| 13 |
logging.basicConfig(
|
|
|
|
| 33 |
pipeline.add_node(component=node_openai, name="prompt_node", inputs=["Query"])
|
| 34 |
return pipeline
|
| 35 |
|
| 36 |
+
|
| 37 |
def get_ret_aug_pipeline():
|
| 38 |
ds = FAISSDocumentStore(faiss_index_path="my_faiss_index.faiss",
|
| 39 |
faiss_config_path="my_faiss_index.json")
|