?? How to explain the prediction of semantic search?
Mohit Mayank
Lead Data Scientist | Helping SaaS Startups scale their AI Game ?? | Generative AI, LLM, Graphs, RL | Author & Consultant
TxtAI is a python package for semantic tasks. It provides an "explain" function that generates an importance score for each word in the sentence.
But how does it work? Read for more details ??
It follows the occlusion-based explanation approach. The steps for score computation are as follows,
The intuition is as follows,
And that's how you can find the importance of words in the sentence that lead to a higher overall score!
More details: https://mohitmayank.com/a_lazy_data_science_guide/natural_language_processing/text_similarity/#txtai
TxtAI: https://github.com/neuml/txtai/blob/master/examples/32_Model_explainability.ipynb
Building & scaling business SEO for Positive ROI??. Intimate with self-development
1 年Are you using Spacy tools or others?
Founder/CEO at NeuML
2 年Excellent job explaining how txtai explains!