Remove unused import and add TODO comment
Browse files
scripts/pages/4_Clean_and_Question.py
CHANGED
@@ -12,8 +12,6 @@ from langchain_community.embeddings import VoyageEmbeddings
|
|
12 |
from langchain_openai import OpenAI, ChatOpenAI
|
13 |
from langchain_community.llms import HuggingFaceHub
|
14 |
|
15 |
-
from ragxplorer import RAGxplorer
|
16 |
-
|
17 |
import streamlit as st
|
18 |
|
19 |
# Set up the page, enable logging
|
@@ -27,7 +25,7 @@ st.set_page_config(
|
|
27 |
layout='wide'
|
28 |
)
|
29 |
st.title('Clean and Question Data')
|
30 |
-
|
31 |
sb=setup.load_sidebar(config_file='../config/config.json',
|
32 |
index_data_file='../config/index_data.json',
|
33 |
llm=True,
|
@@ -35,6 +33,9 @@ sb=setup.load_sidebar(config_file='../config/config.json',
|
|
35 |
secret_keys=True)
|
36 |
secrets=setup.set_secrets(sb) # Take secrets from .env file first, otherwise from sidebar
|
37 |
|
|
|
|
|
|
|
38 |
# Set up session state variables
|
39 |
if 'client' not in st.session_state:
|
40 |
st.session_state.client = None
|
|
|
12 |
from langchain_openai import OpenAI, ChatOpenAI
|
13 |
from langchain_community.llms import HuggingFaceHub
|
14 |
|
|
|
|
|
15 |
import streamlit as st
|
16 |
|
17 |
# Set up the page, enable logging
|
|
|
25 |
layout='wide'
|
26 |
)
|
27 |
st.title('Clean and Question Data')
|
28 |
+
# TODO: add database status icons
|
29 |
sb=setup.load_sidebar(config_file='../config/config.json',
|
30 |
index_data_file='../config/index_data.json',
|
31 |
llm=True,
|
|
|
33 |
secret_keys=True)
|
34 |
secrets=setup.set_secrets(sb) # Take secrets from .env file first, otherwise from sidebar
|
35 |
|
36 |
+
# This is janky but works (needs secrets to initialize properly)
|
37 |
+
from ragxplorer import RAGxplorer
|
38 |
+
|
39 |
# Set up session state variables
|
40 |
if 'client' not in st.session_state:
|
41 |
st.session_state.client = None
|