Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
change file directories
Browse files- RAG/bedrock_agent.py +1 -1
- RAG/generate_csv_for_tables.py +1 -1
- RAG/rag_DocumentLoader.py +1 -2
- RAG/rag_DocumentSearcher.py +1 -1
RAG/bedrock_agent.py
CHANGED
@@ -39,7 +39,7 @@ trace.get_tracer_provider().add_span_processor(span_processor)
|
|
39 |
if "inputs_" not in st.session_state:
|
40 |
st.session_state.inputs_ = {}
|
41 |
|
42 |
-
parent_dirname = "/
|
43 |
region = 'us-east-1'
|
44 |
# setting logger
|
45 |
logging.basicConfig(format='[%(asctime)s] p%(process)s {%(filename)s:%(lineno)d} %(levelname)s - %(message)s', level=logging.INFO)
|
|
|
39 |
if "inputs_" not in st.session_state:
|
40 |
st.session_state.inputs_ = {}
|
41 |
|
42 |
+
parent_dirname = "/data/app_bkp"
|
43 |
region = 'us-east-1'
|
44 |
# setting logger
|
45 |
logging.basicConfig(format='[%(asctime)s] p%(process)s {%(filename)s:%(lineno)d} %(levelname)s - %(message)s', level=logging.INFO)
|
RAG/generate_csv_for_tables.py
CHANGED
@@ -11,7 +11,7 @@ import shutil
|
|
11 |
import streamlit as st
|
12 |
|
13 |
file_content = {}
|
14 |
-
parent_dirname = "/
|
15 |
# if os.path.isdir(parent_dirname+"/split_pdf"):
|
16 |
# shutil.rmtree(parent_dirname+"/split_pdf")
|
17 |
# os.mkdir(parent_dirname+"/split_pdf")
|
|
|
11 |
import streamlit as st
|
12 |
|
13 |
file_content = {}
|
14 |
+
parent_dirname = "/data/app_bkp"
|
15 |
# if os.path.isdir(parent_dirname+"/split_pdf"):
|
16 |
# shutil.rmtree(parent_dirname+"/split_pdf")
|
17 |
# os.mkdir(parent_dirname+"/split_pdf")
|
RAG/rag_DocumentLoader.py
CHANGED
@@ -42,8 +42,7 @@ ospy_client = OpenSearch(
|
|
42 |
summary_prompt = """You are an assistant tasked with summarizing tables and text. \
|
43 |
Give a detailed summary of the table or text. Table or text chunk: {element} """
|
44 |
|
45 |
-
|
46 |
-
parent_dirname = "/".join((os.path.dirname(__file__)).split("/")[0:-1])
|
47 |
|
48 |
|
49 |
|
|
|
42 |
summary_prompt = """You are an assistant tasked with summarizing tables and text. \
|
43 |
Give a detailed summary of the table or text. Table or text chunk: {element} """
|
44 |
|
45 |
+
parent_dirname = "/data/app_bkp"
|
|
|
46 |
|
47 |
|
48 |
|
RAG/rag_DocumentSearcher.py
CHANGED
@@ -12,7 +12,7 @@ import utilities.invoke_models as invoke_models
|
|
12 |
headers = {"Content-Type": "application/json"}
|
13 |
host = "https://search-opensearchservi-shjckef2t7wo-iyv6rajdgxg6jas25aupuxev6i.us-west-2.es.amazonaws.com/"
|
14 |
|
15 |
-
parent_dirname = "/
|
16 |
|
17 |
def query_(awsauth,inputs, session_id,search_types):
|
18 |
|
|
|
12 |
headers = {"Content-Type": "application/json"}
|
13 |
host = "https://search-opensearchservi-shjckef2t7wo-iyv6rajdgxg6jas25aupuxev6i.us-west-2.es.amazonaws.com/"
|
14 |
|
15 |
+
parent_dirname = "/data/app_bkp"
|
16 |
|
17 |
def query_(awsauth,inputs, session_id,search_types):
|
18 |
|