# AME — Adaptive Memory & RAG Engine

> Build a standalone evidence-grounded memory and retrieval-augmented generation (RAG) engine for your projects.

AME — Adaptive Memory & RAG Engine is a paid AI agent skill on Agensi by andan, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $29 (one-time purchase)
- Creator: [andan](https://www.agensi.io/creators/andan)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ame-adaptive-memory-rag-engine
- Tags: ai-agents, database, productivity, memory, knowledge-graph, codex, semantic-search, rag

## About this skill

**Stop explaining your project to AI. Give it a memory.**

Long-running projects accumulate decisions, requirements, and technical notes. Instead of repeatedly sending the same documents to your coding agent, build a reusable project memory that retrieves relevant evidence when you need it.

AME — Adaptive Memory & RAG Engine generates a standalone Python project from bundled source templates. Index the Markdown you approve, preserve prepared source chunks, and let your coding agent retrieve supporting evidence before answering.

**Recorded benchmark results**

In a synthetic English retrieval test (30 documents, 16 questions, local TF-IDF HTTP embeddings, hand-authored extraction), all required evidence appeared in Top 5 for 16/16 questions. Average document context decreased from 1,485 to 255.5 o200k_base tokens — an 82.8% reduction against resending the full corpus. This is a context-only comparison, not total API costs or generated-answer accuracy.

A separate 24-document English/Korean benchmark achieved 16/18 Top 5 successes; two cross-language cases recovered after manual query translation. Automatic translation was not tested. Both benchmarks were run on synthetic documents and measure retrieval coverage and context size, not generated-answer accuracy.

**Requirements**

Python 3.11+, a coding agent with approved local filesystem and terminal access, and a configured embedding provider. An HTTPS OpenAI-compatible embedding endpoint can be used without Ollama (loopback HTTP is permitted). The coding agent produces answers; AME is not a hosted LLM.

**Key features**

- Persistent project memory: reuse indexed knowledge across sessions.
- Three-layer architecture: Bronze retains prepared chunks; Silver stores agent-extracted entities and relationships; Gold organizes decisions and their history.
- Retrieval-augmented generation (RAG): search active source chunks, use them as context, and cite the source identifiers actually returned.
- Evidence-first knowledge graph: link facts, relationships, and decisions to supporting spans.
- Revision history: retain previous revisions for the same identified source and retrieve the active revision.
- Adaptive retrieval workflow: split compound questions and retry cross-language queries in the source language when needed.
- Local-first storage: keep indexed memory in your own environment.
- Flexible embeddings: choose a compatible external embedding endpoint or a local provider.
- Standalone engine: generate a Python project you own and run in your own environment.

## Requires

- Python 3.11+
- OpenAI or Ollama

The generated project installs into a project-local virtual environment. Keep your own source files: the index stores prepared chunks, not a full backup.

## Known limitations

Stores prepared Markdown chunks, not complete original-file backups: introductory text or frontmatter can be omitted in multi-section files, and identical chunks from different files can share one retained source identifier. Separate active documents may conflict and must be reconciled by citing the evidence actually returned. Evidence spans are not proof of semantic entailment. Local memory is not encrypted by default; the coding agent and the selected embedding service may process approved content. The supported workflow covers Markdown sources; the bundled Slack, Notion, GitHub, Jira, Obsidian and Google connectors are outside it.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the AME — Adaptive Memory & RAG Engine skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Which AI agents can I use this with?

Any agent that follows the SKILL.md standard with local filesystem and terminal access: Claude Code, Codex CLI, Cursor, Gemini CLI and similar. It also needs Python 3.11+ and an embedding provider you configure.

### Is this a prompt pack?

No. It generates a standalone Python engine project that you own and run in your own environment. It does not register agent settings or install an MCP server.

### Can I use it without Ollama?

Yes. Configure an HTTPS OpenAI-compatible embedding endpoint instead. Remote data handling and provider costs depend on the service you choose.

### Is it fully private?

Storage is local, but your coding agent and the embedding service you select may process approved content. Local files are not encrypted by default.

### Will it replace conflicting facts automatically?

Earlier revisions of the same identified source are kept as inactive history, so retrieval returns the active revision. Separate active documents may still disagree, and identical chunk content can collapse source attribution. Your agent has to compare and cite the evidence actually returned.

### Does it back up my original files?

No. It stores prepared chunks. Keep your own source files and inspect the prepared output, especially introductory text, frontmatter and repeated content.

### Does the 82.8% figure mean lower API costs?

No. That figure is a context-token measurement on a synthetic English test. Ingestion, output and other API overhead are outside it.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
