Update pages/3_Earnings_Semantic_Search_π_.py
Browse files
pages/3_Earnings_Semantic_Search_π_.py
CHANGED
@@ -82,7 +82,7 @@ try:
|
|
82 |
|
83 |
title = st.session_state['title']
|
84 |
|
85 |
-
earnings_text =
|
86 |
|
87 |
print(f'earnings_to_be_embedded:{earnings_text}')
|
88 |
|
@@ -108,8 +108,8 @@ try:
|
|
108 |
text=f"Loading {embedding_model} embedding model and Generating Response..."
|
109 |
):
|
110 |
print('cheeky')
|
111 |
-
print(
|
112 |
-
docsearch = process_corpus(
|
113 |
|
114 |
result = embed_text(search_input,docsearch)
|
115 |
|
|
|
82 |
|
83 |
title = st.session_state['title']
|
84 |
|
85 |
+
earnings_text = st.session_state['earnings_passages']
|
86 |
|
87 |
print(f'earnings_to_be_embedded:{earnings_text}')
|
88 |
|
|
|
108 |
text=f"Loading {embedding_model} embedding model and Generating Response..."
|
109 |
):
|
110 |
print('cheeky')
|
111 |
+
print(earnings_text)
|
112 |
+
docsearch = process_corpus(earnings_text,title, embedding_model)
|
113 |
|
114 |
result = embed_text(search_input,docsearch)
|
115 |
|