Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -804,7 +804,7 @@ def submit_message(prompt, prompt_template, temperature, max_tokens, context_len
|
|
| 804 |
print("Page_content:", page_content)
|
| 805 |
metadata = document.metadata # Use dot notation to access an attribute
|
| 806 |
print("Metadata:", metadata)
|
| 807 |
-
similarity_score = document.state
|
| 808 |
print("Similarity_score:", similarity_score)
|
| 809 |
|
| 810 |
|
|
|
|
| 804 |
print("Page_content:", page_content)
|
| 805 |
metadata = document.metadata # Use dot notation to access an attribute
|
| 806 |
print("Metadata:", metadata)
|
| 807 |
+
similarity_score = document.state['query_similarity_score']
|
| 808 |
print("Similarity_score:", similarity_score)
|
| 809 |
|
| 810 |
|