lennys memory improvements: UI/UX overhaul with inline tool result cards#43
Merged
johnymontana merged 19 commits intomainfrom Feb 2, 2026
Merged
lennys memory improvements: UI/UX overhaul with inline tool result cards#43johnymontana merged 19 commits intomainfrom
johnymontana merged 19 commits intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR brings significant improvements to the Lenny's Memory example application and the core
neo4j-agent-memorylibrary, focusing on enhanced graph visualization, relationship extraction, entity enrichment, and a major frontend UI/UX overhaul with rich tool result cards.Changes Overview
18 commits | 55 files changed | +12,823 / -610 lines
🎨 Frontend Improvements
Rich Tool Result Cards (New)
Added a complete card system for displaying tool call results inline in chat:
EntityCard- Wikipedia-style knowledge panels for enriched entities with images, descriptions, and mentionsMapCard- Inline Leaflet maps for location tools, expandable to fullscreenGraphCard- Inline NVL graph visualizations, expandable to fullscreenDataCard- Responsive tables with auto-detected columnsStatsCard- Grid of color-coded metricsRawJsonCard- Collapsible JSON fallback for debuggingtoolCardRegistry.ts- Smart tool-to-card mapping with entity/location detectionGraph Visualization Enhancements
Memory Context Panel
UI/UX Polish
🔧 Backend & Core Library
Centralized Cypher Queries
src/neo4j_agent_memory/graph/queries.pyRelationship Extraction
RELATED_TOstoragebackfill_relationships.pyscript for existing databasesEntity Enrichment
enrich_entities.pyscript with progress bars and rate limitingAPI Improvements
/api/memory/graphnow acceptsepisode_session_idsparameter/api/memory/contextfilters entities by current threadentity_type→entity_typesparameter naming📝 Documentation
🧪 Testing
test_queries.py- Unit tests for centralized query moduletest_queries_neo4j.py- Integration tests for queries against Neo4jtest_relation_storage.py- Unit tests for relationship storage in short-term memory🛠 Scripts (New)
backfill_embeddings.pybackfill_relationships.pyenrich_entities.pyBreaking Changes
None - all changes are backwards compatible.
Testing Checklist
make test-unitpassesmake test-integrationpassesmake test-docspasses