Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Ai Memory Laravel Package

eznix86/laravel-ai-memory

Give Laravel AI agents persistent memory. Store and retrieve conversation context, facts, and past interactions across sessions so assistants remember users and improve over time. Database-backed, configurable, and designed to plug into existing Laravel AI workflows.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature – persistent memory for AI features. The package ("laravel-ai-memory") targets the memory layer of an LLM-backed feature in a Laravel app: retaining per-user context (conversation history, facts, preferences) and feeding the relevant parts back into prompts across sessions. That turns a stateless chat/assistant into one that "remembers" — a user-visible feature you can ship without building a memory subsystem.
  • Roadmap sequencing. Memory is usually phase 2 of an AI feature ("it works" → "it's personalized"). Adopting a package lets the roadmap slot personalization into a sprint rather than a platform quarter; it de-risks the middle step before committing to a bespoke memory service.
  • Build vs buy. Storage schema, scoping (user/tenant/session), retrieval, prompt assembly, and retention are undifferentiated plumbing. Buying/adopting is the default PM call unless memory is core IP — expect roughly weeks of engineering plus ongoing maintenance avoided.
  • Use cases unlocked: returning-user context in support/chat assistants, onboarding personalization, multi-step agents that need state, lightweight retrieval over user-supplied content, and cost control — injecting retrieved memory instead of full history cuts tokens per conversation.
  • Success metrics to define up front: task completion rate, follow-up-question rate (should drop), tokens per resolved conversation (should drop), and retention of returning AI-feature users.

When to Consider This Package

  • You're on Laravel/PHP and already have, or are about to build, an AI feature that needs continuity across requests.
  • Your team is small and would rather adopt a maintained package than own a memory schema, retrieval logic, and prompt-assembly code.
  • Memory needs are moderate: per-user scoping, straightforward retrieval, a single app. Ideal for a v0/v1 of an AI feature.
  • Release risk is low right now: v1.0.1 is a patch on top of v1.0.0 with no breaking changes or new features announced — the kind of release you evaluate with a spike. Pin the version and wrap the package behind your own internal interface so a future 1.x or 2.x can't trap you.
  • Look elsewhere when: you need enterprise-scale vector search (use a dedicated vector DB), strict data residency/erasure compliance, a vendor SLA, a Python-centric ML stack, or your stack isn't PHP. Also if memory retrieval becomes a differentiator rather than plumbing.
  • Due diligence before adopting: the v1.0.1 notes are only a changelog link, so read the actual diff. Confirm test coverage, supported storage drivers, retention and per-user erasure controls, and how memory is scoped (tenant vs. user vs. session) — those are the questions that decide production readiness.

How to Pitch It (Stakeholders)

Executives: "Our AI assistant forgets users the moment they close the tab. This package adds memory, so we can ship personalization in one sprint instead of building a memory platform. Risk is low — it's an open-source Laravel package at a patch-level 1.0.x release — and we'll adopt it behind our own abstraction so it's swappable. Success looks like higher task completion and fewer tokens per conversation. If it doesn't fit, we've spent a spike, not a migration."

Engineering: "Laravel-native memory store for LLM context: persists per-user memory and injects retrieved context into prompts. v1.0.1 is a patch after v1.0.0 — no expected breaking changes, safe to spike. Proposal: evaluate behind an internal MemoryRepository interface, pin the version, and validate storage drivers, retention/erasure, and per-tenant scoping before we commit. Budget a timeboxed spike, and review the changelog diff first since the release notes are just a compare link."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
skyraptor/chatter
edlugz/sasapay
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource