Jamster3000 / Joan-smart-assistant

A smart assistant built purly in python. Uses different machine learning models to keep up speed and efficiency for lower resourced devices.
1 stars 0 forks source link

Use a more efficient similarity metric: #18

Closed Jamster3000 closed 6 months ago

Jamster3000 commented 6 months ago

In the find_matched_keywords function, you're using the cosine_similarity function from the sklearn library to calculate the similarity between the user input and the keywords. This function can be slow for large datasets. You might want to consider using a more efficient similarity metric, such as the Jaccard similarity or the Euclidean distance.

Jamster3000 commented 6 months ago

Image

I have tested this out and it works with fast, efficiently. There will be no change