Commit ·
684322b
1
Parent(s): 1dbfcd2
temp. removed the additional pdf to text func
Browse files4 unmodified lines56789101112131415161718194 unmodified linesfrom haystack.schema import Answerfrom haystack.document_stores import BaseDocumentStorefrom haystack.document_stores import InMemoryDocumentStore, OpenSearchDocumentStore, WeaviateDocumentStorefrom haystack.nodes import EmbeddingRetriever, FARMReader, PromptNode, PreProcessor, TextConverter, FileTypeClassifier, PDFToTextConverterfrom milvus_haystack import MilvusDocumentStore#Use this file to set up your Haystack pipeline and queryingfile_type_classifier = FileTypeClassifier()text_converter = TextConverter()pdf_converter = PDFToTextConverter()@st.cache_resource(show_spinner=False)def start_preprocessor_node():print('initializing preprocessor node')4 unmodified lines567891011121314154 unmodified linesfrom haystack.schema import Answerfrom haystack.document_stores import BaseDocumentStorefrom haystack.document_stores import InMemoryDocumentStore, OpenSearchDocumentStore, WeaviateDocumentStorefrom haystack.nodes import EmbeddingRetriever, FARMReader, PromptNode, PreProcessor#from haystack.nodes import TextConverter, FileTypeClassifier, PDFToTextConverterfrom milvus_haystack import MilvusDocumentStore#Use this file to set up your Haystack pipeline and querying@st.cache_resource(show_spinner=False)def start_preprocessor_node():print('initializing preprocessor node')
utils/haystack.py+2-6