Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ from langchain.schema import (
|
|
17 |
)
|
18 |
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
|
19 |
from langchain_community.llms import HuggingFaceEndpoint
|
20 |
-
from auditqa.process_chunks import load_chunks, getconfig
|
21 |
from langchain_community.chat_models.huggingface import ChatHuggingFace
|
22 |
from langchain.retrievers import ContextualCompressionRetriever
|
23 |
from langchain.retrievers.document_compressors import CrossEncoderReranker
|
@@ -51,6 +51,7 @@ model_config = getconfig("model_params.cfg")
|
|
51 |
#### VECTOR STORE ####
|
52 |
# reports contain the already created chunks from Markdown version of pdf reports
|
53 |
# document processing was done using : https://github.com/axa-group/Parsr
|
|
|
54 |
vectorstores = load_chunks()
|
55 |
|
56 |
|
|
|
17 |
)
|
18 |
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
|
19 |
from langchain_community.llms import HuggingFaceEndpoint
|
20 |
+
from auditqa.process_chunks import load_chunks, getconfig, get_local_qdrant
|
21 |
from langchain_community.chat_models.huggingface import ChatHuggingFace
|
22 |
from langchain.retrievers import ContextualCompressionRetriever
|
23 |
from langchain.retrievers.document_compressors import CrossEncoderReranker
|
|
|
51 |
#### VECTOR STORE ####
|
52 |
# reports contain the already created chunks from Markdown version of pdf reports
|
53 |
# document processing was done using : https://github.com/axa-group/Parsr
|
54 |
+
# We need to create the local vector store once using load_chunks
|
55 |
vectorstores = load_chunks()
|
56 |
|
57 |
|