Update pages/3_Earnings_Semantic_Search_π_.py
Browse files
pages/3_Earnings_Semantic_Search_π_.py
CHANGED
@@ -55,9 +55,9 @@ try:
|
|
55 |
text=f"Loading {embedding_model} embedding model and Generating Response..."
|
56 |
):
|
57 |
|
58 |
-
docsearch = process_corpus(st.session_state['earnings_passages'],
|
59 |
|
60 |
-
result = embed_text(search_input,title,embedding_model,
|
61 |
|
62 |
|
63 |
references = [doc.page_content for doc in result['input_documents']]
|
|
|
55 |
text=f"Loading {embedding_model} embedding model and Generating Response..."
|
56 |
):
|
57 |
|
58 |
+
docsearch = process_corpus(st.session_state['earnings_passages'],title, embedding_model)
|
59 |
|
60 |
+
result = embed_text(search_input,title,embedding_model,docsearch,chain_type)
|
61 |
|
62 |
|
63 |
references = [doc.page_content for doc in result['input_documents']]
|