Skip to content

Commit

Permalink
more wording changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsBarryZ committed Nov 21, 2024
1 parent 4cce597 commit 0f2fb24
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/memory/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Knowledge Graph Memory Server
A basic MCP server implementation that provides persistent memory using a knowledge graph. The server manages entities, their observations, and the relationships between them using a JSON-based file system.
A basic MCP server that provides persistent memory using a knowledge graph. The server manages entities, observations of them, and the relationships among them using a JSON-based file system.

This lets Claude remember information about the user across chats and projects, and lets them bypass the issues of having super long chats
This lets Claude remember information about the user across chats, and lets them bypass the issues of having super long chats.

# Core Concepts

Expand All @@ -22,6 +22,7 @@ Example:

## Relations
Relations define directed connections between entities. They are always stored in active voice and describe how entities interact or relate to each other.

Example:
```json
{
Expand Down Expand Up @@ -74,7 +75,9 @@ Example:

# Prompt

The prompt for utilizing memory depends on the use case, but here is an example prompt for chat personalization. You could use this prompt in the "Custom Instructions" field of a Project. Changing this prompt will help the model determine the frequency and types of memories created.
The prompt for utilizing memory depends on the use case. Changing the prompt will help the model determine the frequency and types of memories created.

Here is an example prompt for chat personalization. You could use this prompt in the "Custom Instructions" field of a [Claude.ai Project](https://www.anthropic.com/news/projects).

```
Follow these steps for each interaction:
Expand All @@ -85,19 +88,19 @@ Follow these steps for each interaction:
2. Memory Retrieval:
- Always begin your chat by saying only "Remembering..." and retrieve all relevant information from your knowledge graph
- Always refer to your knowledge as your "memory"
- Always refer to your knowledge graph as your "memory"
3. Memory
- While conversing with the user, be attentive to any new information that falls into these categories:
a) Basic Identity (Age, gender, location, Job title, education level, etc.)
a) Basic Identity (age, gender, location, job title, education level, etc.)
b) Behaviors (interests, habits, etc.)
c) Preferences (communication style, preferred language, etc.)
d) Goals/Psychology (Goals, targets, aspirations, etc.)
d) Goals (goals, targets, aspirations, etc.)
e) Relationships (personal and professional relationships up to 3 degrees of separation)
4. Memory Update:
- If any new information was gathered during the interaction, update your memory as follows:
a) Create entities for recurring organizations, people, and significant events, connecting them to the current node using relations
b) Store most facts as observations within these nodes
- Try to perform all updates in one operation using the create and delete functions.
a) Create entities for recurring organizations, people, and significant events
b) Connect them to the current entities using relations
b) Store facts about them as observations
```

0 comments on commit 0f2fb24

Please sign in to comment.