nickmuchi commited on
Commit
ba86e7b
β€’
1 Parent(s): 14ec610

Update pages/3_Earnings_Semantic_Search_πŸ”Ž_.py

Browse files
pages/3_Earnings_Semantic_Search_πŸ”Ž_.py CHANGED
@@ -52,9 +52,11 @@ try:
52
  with st.spinner(
53
  text=f"Loading {bi_enc_dict[sbert_model_name]} embedding model and Generating Response..."
54
  ):
 
 
55
 
56
  result = embed_text(search_input,st.session_state['earnings_passages'],title,
57
- bi_enc_dict[sbert_model_name],emb_tokenizer,chain_type)
58
 
59
 
60
  references = [doc.page_content for doc in result['input_documents']]
 
52
  with st.spinner(
53
  text=f"Loading {bi_enc_dict[sbert_model_name]} embedding model and Generating Response..."
54
  ):
55
+
56
+ docsearch = process_corpus(corpus,_emb_tok,title, embedding_model)
57
 
58
  result = embed_text(search_input,st.session_state['earnings_passages'],title,
59
+ bi_enc_dict[sbert_model_name],emb_tokenizer,docsearch,chain_type)
60
 
61
 
62
  references = [doc.page_content for doc in result['input_documents']]