SkillAgentSearch skills...

VSM

Toy Python program illustrating the vector space model of documents

Install / Use

/learn @mnielsen/VSM
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

The vector space model for documents

The program vsm.py implements a toy search engine to illustrate the vector space model for documents.

The program asks you to enter a search query, and then returns all documents matching the query, in decreasing order of cosine similarity, according to the vector space model.

The document corpus consists of just four documents, which are product descriptions of popular books, taken from Amazon.com.

View on GitHub
GitHub Stars41
CategoryDevelopment
Updated20d ago
Forks23

Languages

Python

Security Score

75/100

Audited on Mar 16, 2026

No findings