Skip to content

Commit

Permalink
Updated LightFM Integration Docs with Tip to Install Linux Dev Pakcag…
Browse files Browse the repository at this point in the history
…es (#9042)

* added a tip for installing the Linux dev packages

* fixed a couple of grammatical errors
  • Loading branch information
MinuraPunchihewa committed Apr 9, 2024
1 parent f2505c2 commit 150ce9b
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions docs/integrations/ai-engines/lightfm.mdx
Expand Up @@ -5,7 +5,30 @@ sidebarTitle: LightFM

The [LightFM](https://github.com/lyst/lightfm) handler functions as an interface for the LightFM Python recommendation library. The current implementation supports collaborative filtering for user-item and item-item recommendations. It allows users to make use of the powerful LightFM recommendation framework library for performing recommendation on interaction data sets.

As the current implementations stand, the input data should be a table containing user-item interaction data:
## Prerequisites

Before proceeding, ensure the following prerequisites are met:

1. Install MindsDB [locally via Docker](https://docs.mindsdb.com/setup/self-hosted/docker) or use [MindsDB Cloud](https://cloud.mindsdb.com/).
2. To use LightFM within MindsDB, install the required dependencies following [this instruction](/setup/self-hosted/docker#install-dependencies).

<Tip>
Please note that, if you are using Docker to run MindsDB, before installing the dependencies for this integration as per the instructions given above, it is currently necessary to install a couple of Linux development packages in the container. To do this, run the following commands:

Start an interactive shell in the container:
```bash
docker exec -it mindsdb_container sh
```
If you haven't specified a name when spinning up the MindsDB container with `docker run`, you can find it by running `docker ps`.

Install the required Linux development packages:
```bash
apt-get -y update
apt-get install -y build-essential python3-dev libopenblas-dev
```
</Tip>

As the current implementation stands, the input data should be a table containing user-item interaction data:

```
+---------+---------+--------+
Expand All @@ -17,7 +40,7 @@ As the current implementations stand, the input data should be a table containin
```

<Note>
Please note that at the moment this integrations does not support the `FINETUNE` feature.
Please note that at the moment this integration does not support the `FINETUNE` feature.
</Note>

## Example
Expand Down

0 comments on commit 150ce9b

Please sign in to comment.