Update pages/3_Earnings_Semantic_Search_π_.py
Browse files
pages/3_Earnings_Semantic_Search_π_.py
CHANGED
@@ -65,12 +65,12 @@ search_input = st.text_input(
|
|
65 |
label='Enter Your Search Query',value= "What key challenges did the business face?", key='search')
|
66 |
|
67 |
sbert_model_name = st.sidebar.selectbox("Embedding Model", options=list(bi_enc_dict.keys()), key='sbox')
|
|
|
|
|
68 |
|
69 |
chunk_size = 1000
|
70 |
overlap_size = 50
|
71 |
|
72 |
-
|
73 |
-
|
74 |
try:
|
75 |
|
76 |
if search_input:
|
@@ -108,7 +108,7 @@ try:
|
|
108 |
|
109 |
docsearch = process_corpus(st.session_state['earnings_passages'],title, embedding_model)
|
110 |
|
111 |
-
result = embed_text(search_input,
|
112 |
|
113 |
|
114 |
references = [doc.page_content for doc in result['source_documents']]
|
|
|
65 |
label='Enter Your Search Query',value= "What key challenges did the business face?", key='search')
|
66 |
|
67 |
sbert_model_name = st.sidebar.selectbox("Embedding Model", options=list(bi_enc_dict.keys()), key='sbox')
|
68 |
+
|
69 |
+
st.sidebar.markdown('###Earnings QnA Generator')
|
70 |
|
71 |
chunk_size = 1000
|
72 |
overlap_size = 50
|
73 |
|
|
|
|
|
74 |
try:
|
75 |
|
76 |
if search_input:
|
|
|
108 |
|
109 |
docsearch = process_corpus(st.session_state['earnings_passages'],title, embedding_model)
|
110 |
|
111 |
+
result = embed_text(search_input,embedding_model,docsearch)
|
112 |
|
113 |
|
114 |
references = [doc.page_content for doc in result['source_documents']]
|