nickmuchi commited on
Commit
b26f818
β€’
1 Parent(s): d2773f5

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

Browse files
pages/3_Earnings_Semantic_Search_πŸ”Ž_.py CHANGED
@@ -59,9 +59,9 @@ try:
59
  result = embed_text(search_input,title,embedding_model,docsearch)
60
 
61
 
62
- references = [doc.page_content for doc in result['input_documents']]
63
 
64
- answer = result['output_text']
65
 
66
  sentiment_label = gen_sentiment(answer)
67
 
 
59
  result = embed_text(search_input,title,embedding_model,docsearch)
60
 
61
 
62
+ references = [doc.page_content for doc in result['source_documents']]
63
 
64
+ answer = result['result']
65
 
66
  sentiment_label = gen_sentiment(answer)
67