how-to-do-offline-recommendations-with-sqlite-and-gemini

Implement offline content recommendations using text embeddings, SQLite, and k-nearest neighbor search.

58|6|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/rodydavis/skills --skill how-to-do-offline-recommendations-with-sqlite-and-gemini
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: how-to-do-offline-recommendations-with-sqlite-and-gemini
Source: https://github.com/rodydavis/skills/tree/main/skills/offline-vector-recommendations
Command: npx skills add https://github.com/rodydavis/skills --skill how-to-do-offline-recommendations-with-sqlite-and-gemini

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables AI-powered content recommendations within your CMS, like PocketBase, by leveraging text embeddings and SQLite for efficient, offline related content suggestions.

Core Features & Use Cases

  • Text Embeddings: Convert text into numerical vectors for similarity calculations.
  • SQLite Storage: Utilize sqlite-vec for efficient vector storage and k-nearest neighbor (kNN) search.
  • Offline Recommendations: Generate related content suggestions without requiring network calls, ensuring scalability.
  • Use Case: Enhance a blog platform by automatically suggesting related articles to readers based on the content they are currently viewing, all processed locally.

Quick Start

Use the how-to-do-offline-recommendations-with-sqlite-and-gemini skill to generate recommendations for the current blog post.

Frequently Asked Questions about how-to-do-offline-recommendations-with-sqlite-and-gemini

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate offline content recommendations with SQLite?

You can generate offline content recommendations with SQLite by storing text embeddings using sqlite-vec and performing k-nearest neighbor (kNN) search queries locally.

How do I use text embeddings for related content suggestions in PocketBase?

Text embeddings convert your articles into numerical vectors for similarity calculations, enabling related content suggestions in PocketBase without network calls.

Do I need the Gemini API to compute text embeddings for local recommendations?

Yes, you need the Gemini API to compute text embeddings and convert text data into numerical vectors before storing them in SQLite for offline recommendations.

What is the best way to scale related content suggestions without external network calls?

The best way to scale related content suggestions offline is using sqlite-vec for vector storage and k-nearest neighbor search to query text embeddings locally.

Can I use sqlite-vec for k-nearest neighbor search in a CMS?

Yes, sqlite-vec enables efficient vector storage and k-nearest neighbor (kNN) search within SQLite, facilitating scalable related content suggestions for CMS platforms like PocketBase.

Why use offline k-nearest neighbor search instead of an online API for content recommendations?

Offline k-nearest neighbor search with sqlite-vec ensures scalable related content suggestions without network calls, keeping vector queries and text embeddings processed locally.