Gen AI Chat Bot Python Project using Sentence transformer model all-MiniLM-L6-v2
Step 1 – Import libraries needed for text encoding, similarity calculation, and chatbot interface. SentenceTransformer – Converts sentences into numerical vectors so machines can understand the meaning of text. scikit-learn (cosine_similarity) – Calculates similarity between two text vectors to find how closely related they are. NumPy – Used for numerical computing, arrays, matrices, and fast mathematical operations. Pandas – U sed for handling datasets in table format such as reading data, filtering, cleaning, and manipulating rows and columns. ipywidgets – Creates interactive UI elements like text boxes, buttons, sliders, and dropdowns in notebook environments. IPython.display – Displays widgets, HTML, images, and formatted output inside notebooks. Step 2 – Loading the model – SentenceTransformer loads the model "all-MiniLM-L6-v2" which converts sentences into numerical embeddings. Step 3 – Creating product data – A dictionary is created with product names and product de...