OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Developer Tools & SDKs

Article Recommender

A TypeScript tutorial and example that uses a local Transformers.js embedding model and Pinecone similarity search to recommend articles resembling content a reader has previously read.

Independent OpenViST project profile, based on linked sources.

Article Recommender — OpenViST project profile in AI Developer Tools & SDKs.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want to study or adapt a concrete indexing-and-querying pattern for content-based article recommendations using Pinecone.

Who it is for

  • TypeScript developers learning how to implement content-based article recommendations.
  • Teams prototyping similarity-based discovery for a publication or content catalog.

Documented uses

  • Create embeddings from article text and store them in a Pinecone index.
  • Query the index for articles similar to previously read content.
  • Use article metadata such as section, URL, title, publication and author alongside indexed content.
Before you choose

Requirements & limits

  • Running the workflow requires Pinecone credentials and an index configuration; it is not presented as a hosted service.
  • The example's indexing workflow uses the first 100,000 records of the cited dataset.
  • Embeddings are produced with a local Transformers.js model, while similarity search uses Pinecone.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Prepare article records in a Pinecone index

Follow the documented indexing workflow to create embeddings from the sample article CSV and upsert them into Pinecone.

Before you start

  • Node.js package installation using npm install
  • Pinecone API key and a Pinecone index name, cloud and region in a .env file
  • The All the News 2 CSV at data/all-the-news-2-1.csv

Steps

  1. Install the project dependencies with npm install.

  2. Copy .env.example to .env and set PINECONE_API_KEY, PINECONE_INDEX, PINECONE_CLOUD and PINECONE_REGION.

  3. Download and extract the dataset, then place all-the-news-2-1.csv in the data directory.

  4. Run npm run index to create embeddings and load records into Pinecone in batches.

Expected outcome

Article records are embedded and upserted into the configured Pinecone index for the example's recommendation workflow.

Guide limitations

  • The README says the example uses only the first 100,000 records.
  • Cloud and region values must be supported by the configured Pinecone project.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
15 October 2026
Original website title
pinecone-io/recommender-example-typescript · Official homepage title · retained in its source language