Skip to content

Commit 1acd60c

Browse files
committed
Fixed a bug where I was passing whole object and not a string literal.
1 parent 083065a commit 1acd60c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/backend/api/endpoints.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ async def handle_new_chat_message_from_user(new_message : CreateChatMessageReque
1818

1919
if message_category is MessageCategory.QuestionAboutProductDescription:
2020
product_description_by_user = await extract_product_description_from_message(new_message.text)
21-
similarity_df = get_similarity_dataframe(product_description_by_user, products_embeddings, General.GET_TOP_X_RESULTS_FROM_SIMILARITY_DATAFRAME)
21+
similarity_df = get_similarity_dataframe(product_description_by_user.text, products_embeddings, General.GET_TOP_X_RESULTS_FROM_SIMILARITY_DATAFRAME)
2222
products_with_titles_and_prices = get_products_with_prices_string(similarity_df)
2323
response_string = AssistantMessages.ASSISTANT_MESSAGE_RECOMMENDED_PRODUCTS.format(products_with_titles_and_prices)
2424

0 commit comments

Comments
 (0)