memoria-recall-flow

Implements canonical hybrid recall retrieval for Copiloto memory scoped by user and business ID.

Updated May 14, 2024
One-click install
npx skills add https://github.com/wagnerra23/oimpresso.com --skill memoria-recall-flow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memoria-recall-flow
Source: https://github.com/wagnerra23/oimpresso.com/tree/main/.claude/skills/jana-recall-flow
Command: npx skills add https://github.com/wagnerra23/oimpresso.com --skill memoria-recall-flow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves weak or inconsistent Copiloto memory retrieval by enforcing a canonical recall pipeline (negative-cache → HyDE expansion → Meilisearch hybrid → LLM reranking → append-only persistence) and by applying business-logic correctness for faturamento metrics with multi-tenant scoping.

Core Features & Use Cases

  • Canonical hybrid recall pipeline: Runs NegativeCache, HyDE query expansion, Meilisearch hybrid (BM25 + vector), and Llm reranking to produce top-K results efficiently and accurately.
  • ContextSnapshot correctness for faturamento: Exposes three legitimate faturamento angles (bruto, liquido, caixa) instead of a single value to prevent LLM confusion and wrong answers.
  • Retrieval safety via cataloged gotchas and metrics: Avoids known failure modes (e.g., missing negative-cache, wrong semanticRatio usage, incorrect filtering, unnecessary re-embedding) and ties changes to required daily retrieval metrics (including recall@5, precision@5, latency, and cost).

Quick Start

Ask the AI: "Use hybrid recall to find what we learned about faturamento90d and return the correct bruto, liquido, and caixa angles for business_id 4, top 5, with reranking and metrics-ready context."

Frequently Asked Questions about memoria-recall-flow

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

FAQPage Schema
How does hybrid retrieval with HyDE and Meilisearch improve RAG memory recall?

Hybrid retrieval improves RAG memory recall by combining HyDE query expansion with Meilisearch BM25 and vector search. It applies semanticRatio control and LLM reranking to produce accurate top-K results, ensuring efficient context synchronization across multi-tenant scoped memories.

What is the best way to implement multi-tenant memory scoping for RAG applications?

The best way to implement multi-tenant scoping is by enforcing business_id and user_id filters during Meilisearch hybrid retrieval. This canonical pipeline ensures queries only access tenant-specific memory, preventing data leakage while maintaining accurate retrieval across scoped contexts.

How do I prevent unnecessary re-embedding when syncing memory to Meilisearch?

Prevent unnecessary re-embedding during memory sync by applying negative caching and correct Meilisearch filtering. Avoiding full re-embedding reduces latency and cost while maintaining accurate append-only fact persistence with valid_until supersession semantics.

How do I handle faturamento metrics in LLM memory without confusing the context?

Handle faturamento metrics by exposing three distinct angles—bruto, liquido, and caixa—instead of a single value. This ContextSnapshot correctness prevents LLM confusion and wrong answers by providing clear, multi-faceted financial context within the retrieval pipeline.

Why does Meilisearch hybrid search require negative caching for RAG workflows?

Meilisearch hybrid search requires negative caching to prevent failed or empty queries from repeatedly hitting the index. This retrieval guardrail reduces unnecessary computational overhead and latency, ensuring the RAG memory recall pipeline remains efficient and cost-effective.

Can I use LLM reranking to improve top-K results from BM25 and vector search?

Yes, you can apply LLM reranking after BM25 and vector search to refine top-K results. This reranking step evaluates the initial hybrid retrieval output, prioritizing the most contextually relevant documents to improve precision and recall metrics for memory recall.