Memslides README

README проекта с github.com/huohua325/Memslides. Одним файлом markdown: README.md.

MemSlides

Hierarchical Memory for Personalized Slide Generation
Multi-turn Local Revision with User-profile, Working, and Tool Memory

Official code repository for the MemSlides paper.

Website Demo Video Paper Project Page Docker Hub

This repository contains the official implementation of MemSlides: A Hierarchical Memory-Driven Agent Framework for Personalized Slide Generation with Multi-turn Local Revision.

MemSlides integrates user-profile memory, working memory, and tool memory to support persistent personalization, revision-context retention, and the reuse of tool-execution experience. The implementation includes slide-generation and revision pipelines, template induction, artifact export, and experiment utilities for studying these mechanisms.

Official website: memslides.com. The domain memslides.org is not operated by this project and is not affiliated with this repository.

Demo

The following demonstration illustrates slide generation, multi-turn revision, explicit preference saving, preference reuse, and export through the web interface.

https://github.com/user-attachments/assets/51abee82-14bf-4b34-adf8-6f630086bb87

60-second website walkthrough using a four-slide research example. Waiting time is shortened; previews and downloads use a previously generated public example. Saving a preference is an explicit choice.

News

Key Capabilities

Capability Implementation
Personalized generation Generate slides from instructions and source materials, conditioned on presentation intent and stored user preferences.
Multi-turn local revision Interpret natural-language feedback and apply edits to the affected slide or region while retaining revision context.
Template induction Derive reusable template profiles from existing PPTX files.
Artifact export Produce slide HTML and PPTX artifacts, with PDF export when available.
Experiment execution Run packaged or custom experiment suites and produce reports for analysis.

Getting Started

Online Demonstration

The hosted demonstration is available at memslides.com. Sign-in or registration is required to access the interface.

The interface supports specifying the topic, audience, language, and slide count, followed by preview and natural-language revision. Preference persistence is explicit: users save selected preferences and activate them for subsequent presentations.

This repository provides the Python implementation and experiment environment associated with the paper. The Docker image supports CLI execution and experiment reproduction.

Local Installation and Inference

Recommended environment: Python 3.11, Node.js 20, LibreOffice, Poppler, CJK fonts, and Playwright Chromium. See the installation guide for Windows, private configuration, and export setup.

On Linux, with Conda installed:

git clone https://github.com/huohua325/Memslides.git
cd Memslides

sudo apt-get update
sudo apt-get install -y libreoffice fontconfig fonts-noto-cjk poppler-utils

conda env create -f environment.yml
conda activate memslides
pip install -e ".[research]"
python -m playwright install chromium ffmpeg

Configure your models before generating. Copy the public configuration to a local file:

cp src/memslides/memslides.yaml memslides.yaml

Configure the root-level memslides.yaml with your model endpoints, model names, and credentials for the agents and enabled services. This local file is ignored by git; the packaged public configuration contains environment-variable placeholders. Credentials can also be supplied through those environment variables. See configuration details.

Generate a deck, then revise it in the same workspace:

python -m memslides --config memslides.yaml --workspace .memslides/demo generate \
  --instruction "Create a four-slide research overview" --num-pages 4

python -m memslides --config memslides.yaml --workspace .memslides/demo revise \
  --feedback "Shorten the title on slide 2"

The commands print a JSON result with the workspace and available artifact paths. Global options such as --config, --workspace, and --language go before the subcommand.

Docker, templates, and experiment reproduction

The published Docker image includes the experiment environment. It runs a CLI job; see the Docker guide for image tags, credentials, and persistent volumes.

docker run --rm huohua325/memslides:v2.0.1 python -m memslides.experiment --help

Induct a PPTX template:

python -m memslides template induct --template-file template.pptx

After configuring credentials, run the packaged one-slide verification suite:

python -m memslides.experiment run smoke_minimal \
  --output-base .memslides/experiments --parallel 1

python -m memslides.experiment report .memslides/experiments/smoke_minimal
python -m memslides.experiment personas

smoke_minimal performs real generation and PPTX export; it requires model credentials. Pass another packaged suite name or a local suite YAML path to run a different experiment. See the experiment guide.

Method Overview

The framework organizes generation and revision around three complementary memory components:

During local revision, the runtime interprets user feedback to identify the affected slide region and constrain the scope of the update. See the paper for the method and experimental evaluation.

MemSlides framework showing user-profile memory, working memory, tool memory, and local revision

Research resources: Paper · Project page · Hugging Face Space.

A closer look at memory and local revision

User-profile preference memory lifecycle Tool memory extraction and retrieval

An example of a localized slide revision

Repository map and developer checks
src/memslides/              Python runtime, contracts, and public CLI
src/memslides/pipelines/    Generation, revision, and export
src/memslides/memory/       Profile, working, and tool memory
src/memslides/experiment/   Experiment suites and reports
src/memslides/tools/        MCP tools and services
tests/                     Regression and contract tests
docs/INSTALL.md            Installation and configuration
docker/README.md           Docker environment and image tags
.memslides/                Ignored local workspaces and outputs

Install the development tools and run the Python checks used by continuous integration:

pip install -e ".[dev,research]"
python -m compileall -q src tests
python scripts/check_source_hygiene.py
python -m pytest -q
ruff check src tests

To check the Node export runtime, install dependencies from the root package.json:

npm ci
npm run check:pptx-export

Contributing

Implementation questions, reproducibility reports, and proposed extensions are welcome in Issues.

To follow implementation releases, choose Watch → Custom → Releases on GitHub.

Privacy and configuration

Keep API keys in environment variables, .env, or private YAML files. Do not commit credentials, generated workspaces, or memory databases. Remove private content from examples and logs before sharing them. External acquisition depends on the services you configure; review downloaded assets before presenting.

Citation

If you use MemSlides in your research, please cite:

@misc{jin2026memslides,
  title={MemSlides: A Hierarchical Memory Driven Agent Framework for Personalized Slide Generation with Multi-turn Local Revision},
  author={Ye Jin and Yangyang Xu and Jun Zhu and Yibo Yang},
  year={2026},
  eprint={2606.17162},
  archivePrefix={arXiv},
  primaryClass={cs.CL},
  doi={10.48550/arXiv.2606.17162},
  url={https://arxiv.org/abs/2606.17162},
}

License

Released under the Apache License 2.0. See third-party notices for included components.

Memslides (huohua325/Memslides)

Ищем в базе…

Что это такое?MemSlides — это агентный фреймворк с иерархической памятью, который рассматривает создание слайдов как процесс авторинга с сохранением состояния. Он использует многоуровневую память (профиль пользователя, рабочую, инструментальную), чтобы персонализировать презентации и вносить точечные локальные правки вместо генерации всей презентации заново.
Это готовое приложение или фреймворк, на котором я буду строить своё?Это Python-фреймворк и CLI с публичными точками входа (generate, revise, template induct), а также запускателем экспериментов; это не хостинговый продукт — облачная пробная версия живёт отдельно на memslides.com.
Как его запустить?Установите из исходников, затем запустите встроенный smoke-набор, чтобы проверить установку; тот же эксперимент можно выполнить и внутри Docker-окружения проекта.
Нужны ли мне свои API-ключи, чтобы генерировать настоящие слайды?Да — для реальной генерации нужны ваши собственные учётные данные для моделей и сервисов: их передают через переменные окружения, файл .env или приватный YAML-файл, указанный через MEMSLIDESCONFIGFILE или --config.
Встроенный smoke-набор проверяет реальную генерацию?Нет, smokeminimal — это лишь небольшой проверочный набор; полную генерацию реальной моделью он не затрагивает, хотя запускатель можно направить на собственный YAML с набором тестов или на имя упакованного набора.
Что происходит с моими учётными данными и созданными файлами?Учётные данные должны храниться только в переменных окружения, .env или приватных YAML-файлах, а созданные рабочие папки, кэши и приватные конфиги нельзя добавлять в репозиторий; доступ к сети для поиска или вызовов модели происходит только если вы предоставили эти учётные данные.
Что именно хранит инструментальная память?Инструментальная память хранит переиспользуемый опыт выполнения из предыдущих задач редактирования, чтобы будущие похожие точечные правки не повторяли одни и те же ошибки выполнения.
Зачем править только часть слайда, а не генерировать всю презентацию заново?Обратная связь от правки проецируется на наименьший затронутый участок слайда и применяется как локальный точечный патч: уже согласованный контент остаётся стабильным, а нежелательные расхождения, свойственные полной регенерации, сводятся к минимуму.
Чем память профиля пользователя отличается от рабочей памяти?Память профиля пользователя постоянна: она переносит подходящие по смыслу личные предпочтения (тема, макет) в новые задачи. Рабочая память ограничена сессией: она отслеживает активные ограничения и состояние правок при многошаговом редактировании текущей презентации.
Работает ли MemSlides с MCP?Да — README рекомендует использовать конфигурацию MCP вместе с публичным CLI, а не импортировать напрямую удалённые внутренние модули инструментов.
Какие есть похожие проекты?mem0, Hy-Memory, EverOS, memoket-kite, VoiceMem, evolver, Recuris, Raven
Автор
huohua325
Размер
6.1 MB
Звёзды
1.1K
Обновлён
КоммитOct 29
Возраст
7 мес
Коммиты · 90 дней