hybrid-memory

Store and retrieve agent memory using vector embeddings and keyword search in SQLite.

1|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/winsorllc/upgraded-carnival --skill hybrid-memory-winsorllc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hybrid-memory
Source: https://github.com/winsorllc/upgraded-carnival/tree/main/.pi/skills/hybrid-memory
Command: npx skills add https://github.com/winsorllc/upgraded-carnival --skill hybrid-memory-winsorllc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openai, sqlite3, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides AI agents with a persistent, searchable memory, allowing them to recall past interactions, learned information, and context, overcoming the limitations of short-term context windows.

Core Features & Use Cases

  • Hybrid Search: Combines semantic (vector) and keyword (BM25) search for highly relevant recall.
  • Zero Dependencies: Operates entirely within SQLite, requiring no external services.
  • Use Case: An agent can remember user preferences from a previous conversation, recall specific code snippets it generated earlier, or access and synthesize information from a knowledge base it has previously stored.

Quick Start

Use memory_recall to find relevant information for the query "how to implement authentication".

Frequently Asked Questions about hybrid-memory

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

FAQPage Schema
How do I add persistent memory to an AI agent using SQLite?

You can add persistent memory to an AI agent by storing and retrieving information using a combination of vector embeddings and keyword search within SQLite. This hybrid approach enables semantic recall and keyword search for contextual awareness.

How does hybrid search work for agent memory retrieval?

Hybrid search for agent memory retrieval combines semantic vector search with BM25 keyword search scoring. This dual approach ensures highly relevant recall of past interactions and learned information by matching both meaning and specific terms.

Do I need external vector databases for AI agent memory?

No, you do not need external vector databases for AI agent memory. This system operates entirely within SQLite, requiring no external services to perform vector embeddings and keyword search for persistent memory.

Can an AI agent recall previous user preferences with local memory?

Yes, an AI agent can recall previous user preferences with local memory by storing context and interactions in SQLite. The agent retrieves this information using semantic and keyword search to overcome short-term context window limitations.

What is the best way to implement context awareness without external services?

The best way to implement context awareness without external services is a full-stack hybrid memory system in SQLite. It uses vector embeddings and keyword search to store and retrieve information locally for persistent agent memory.

What are the limitations of using SQLite for vector embeddings?

A limitation of using SQLite for vector embeddings is that it operates entirely locally without external services. While it supports hybrid scoring for agent memory, extremely large-scale vector search performance may differ from dedicated vector databases.