Posts

Showing posts with the label Artificial Intelligence

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...

What is Artificial Intelligence? What is Machine Learning? What is Data Science? how they are related to each other?

Image
Artificial Intelligence means making Computers think like Human Brain, choosing correct & realistic decisions, answers based on the Current circumstance and importance. Personal Example: Data Science = What is Actually Happening in your Life. Machine Learning = What you are learning and experiencing in your Life. Artificial Intelligence = Taking Correct Decisions based on your Life Experience Another Example: You are AI Engineer & you created a Personal AI Friend using Python. Now, You give all information about your Financial Status, Economic Status, Emotional Status, Social Status, Current Situation in your Life, Current Situation in your Family, Current Situation in your Country etc etc... and your Current problems in an Excel file or SQL Database. Now you are giving this data to your AI tool which you created. 1. It will analyze the information, choose which is important and which is useless based on your current situation. 2. Now, it sends that important Information to Mac...