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['
|
63 |
|
64 |
-
answer = result['
|
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 |
|