more wording changes

This commit is contained in:
Barry Zhang
2024-11-21 11:16:33 -05:00
parent 4cce597253
commit 0f2fb24d7c

View File

@@ -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
@@ -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
{
@@ -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:
@@ -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
```