Artificial Intelligence (AI)

Artificial Intelligence (AI) is a technology that allows computers to think and act like humans, but faster and more efficiently!


CONTENT


What is Artificial Intelligence?

Artificial Intelligence (AI) refers to the ability of computers or machines to think and act like humans. It means that these systems can learn from data, make decisions on their own, and interact with us in various ways.

AI is like a super-smart computer program that can learn, think, and act like a human being but instead of relying on human expertise, it uses:

AI can be used in many areas, such as: chatbots, virtual assistants (e.g., Alexa, Google Assistant or Siri), self-driving cars, image recognition systems, and more!

Benefits

However, like any powerful technology, AI raises concerns about job losses, misuse for malicious purposes (e.g., deepfakes), and the need for careful regulation and governance.

The balance between generative and retrieval-based AI lies in understanding their respective strengths and weaknesses.


What is Retrieval-based AI?

Retrieval-based artificial intelligence (AI) refers to a type of machine learning that focuses on retrieving relevant information from existing databases or knowledge graphs. The primary goal of retrieval-based AI is to provide users with accurate and efficient access to stored data.

Key Features

Real-World Applications

Benefits


What is Generative-based AI?

Generative artificial intelligence (AI) refers to a type of machine learning that focuses on generating new data, such as images, text, music, or other creative content. The primary goal of generative-based AI is to produce original and diverse outputs based on patterns learned from existing data.

Key Features

Real-World Applications

Benefits


Ollama

Ollama is an open-source project that enables users to easily run large language models (LLMs) locally on their machines. It simplifies the process of downloading, installing, and interacting with a wide range of LLMs, empowering users to explore their capabilities without requiring extensive technical expertise or reliance on cloud-based platforms.

🛈 Ollama is a Command-Line (CLI) Tool, but there are front-ends, Graphical User Interface (GUI). See below.

Front-Ends, GUI for Ollama

Free course of Ollama by Matt Williams

  1. Introduction to the Ollama Course
  2. Getting Started on Ollama
  3. Installing Ollama
  4. How to use the Ollama.com site to Find Models
  5. Using the CLI

Install Ollama

Download Ollama from the official website.

Uninstall Ollama On Linux

To uninstall Ollama on Linux, follow these steps:

1. Stop the Ollama service:

sudo systemctl stop ollama

This command halts the Ollama service.

2. Disable the Ollama service to prevent it from starting automatically on boot:

sudo systemctl disable ollama

This ensures that Ollama won’t automatically start up in the future.

3. Remove the Ollama service file from the systemd directory:

sudo rm /etc/systemd/system/ollama.service

This deletes the service file from your system.

4. Remove the Ollama binary from your system. Depending on where it was installed, run one of the following commands:

sudo rm $(which ollama)

This command removes the binary from your bin directory.

5. Delete the directory where Ollama stores its models and any associated user and group accounts:

sudo rm -r /usr/share/ollama
sudo userdel ollama
sudo groupdel ollama

These commands delete any downloaded models and remove the Ollama user and group from your system.

After completing these steps, you can verify that Ollama has been successfully uninstalled by checking for any remaining files or services. You can use the following command to check if the service is still listed:

systemctl list-units --type=service | grep ollama

If no results are returned, the uninstallation was successful.

Links


Stable Diffusion (text-to-image)

Stable Diffusion is a type of generative artificial intelligence (AI) model that produces photorealistic images from text prompts. It’s a latent text-to-image diffusion model, trained on a massive dataset of images, which enables it to generate high-quality images that resemble real photographs.

Front-Ends, GUI for Stable Diffusion

Models

Links