extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Memory] ...Add Observations doesn't always work

Open BellalaK opened this issue 1 year ago • 3 comments

Extension

https://www.raycast.com/EvanZhouDev/memory

Raycast Version

1.103.3

macOS Version

26.0.1

Description

When I use the "@memory" AI extension to add or update the memory, whenever it tries to "Add Observations" to an entry, it fails.

Steps To Reproduce

  1. Type @memory into Raycast
  2. Input a simple command for memory to remember (e.g., Remember I am 5 feet tall)
  3. It sometimes fails to "Add Observation" to the memory logs

Here is the Log from a failed attempt: { "additional_system_instructions" : "\n The user has the following system preferences:\n - Language: English\n - Region: United States\n - Timezone: America/Chicago\n - Current Date: 2025-10-10\n - Unit Currency: $\n - Unit Temperature: °F\n - Unit Length: ft\n - Unit Mass: lb\n - Decimal Separator: .\n - Grouping Separator: ,\n Use the system preferences to format your answers accordingly.\n\n\n\n The following extensions have some extra instructions:\n - "@memory": Follow these steps for each interaction:\n 1. User Identification:\n - You should assume that you are interacting with default_user\n - If you have not identified default_user, proactively try to do so.\n 2. Memory Retrieval:\n - Always begin your chat by retrieving all relevant information from your knowledge graph\n - Always refer to your knowledge graph as your "memory"\n 3. Memory\n - While conversing with the user, be attentive to any new information that falls into these categories:\n a) Basic Identity (age, gender, location, job title, education level, etc.)\n b) Behaviors (interests, habits, etc.)\n c) Preferences (communication style, preferred language, etc.)\n d) Goals (goals, targets, aspirations, etc.)\n e) Relationships (personal and professional relationships up to 3 degrees of separation)\n 4. Memory Update:\n - If any new information was gathered during the interaction, update your memory as follows:\n a) Always create new entities for recurring organizations, people, and significant events\n b) Then, connect them to the current entities using relations\n c) Store facts about them as observations\n d) Always use the correct category of tool (Observation, Relation, Entity) for each task. Never create one category in another.\n - tool named "memory-delete-relations": Delete multiple relations from the knowledge graph.\n - tool named "memory-delete-observations": Delete specific observations from existing entities.\n - tool named "memory-read-graph": Read the entire knowledge graph and return it.\n - tool named "memory-open-nodes": Open specific entities in the knowledge graph by their names.\n - tool named "memory-create-entities": Create multiple new entities in the knowledge graph.\n - tool named "memory-search-nodes": Search the knowledge graph by matching a query to entity names, types, or observations.\n - tool named "memory-create-relations": Create relations between existing entities in the knowledge graph.\n - tool named "memory-delete-entities": Delete entities from the knowledge graph along with their related relations.\n - tool named "memory-add-observations": Add new observations to existing entities in the knowledge graph.\n Follow the instructions whenever you use a tool of the extension.\n\n", "current_date" : "2025-10-10T12:38:00Z", "debug" : false, "locale" : "en-US", "messages" : [ { "author" : "user", "content" : { "text" : "@memory remember that i am 5 feet tall" } }, { "author" : "assistant", "content" : { "text" : "" }, "tool_calls" : [ { "function" : { "arguments" : { "entityName" : "default_user", "observations" : [ "Height: 5 feet" ] }, "name" : "memory-add-observations" }, "id" : "call_ilGVhAJl9o5MSpxXPq3kGiGD", "type" : "function" } ] }, { "author" : "tool", "content" : { "text" : "Error: Expected an Object but got something else" }, "name" : "memory-add-observations", "tool_call_id" : "call_ilGVhAJl9o5MSpxXPq3kGiGD" }, { "author" : "assistant", "content" : { "text" : "It seems there was an issue with adding the memory entry. Please try again." } } ], "model" : "ray1", "provider" : "raycast", "source" : "quick_ai", "system_instruction" : "markdown", "thread_id" : "8451269E-C593-41C2-AEA3-1FAADF3ED920", "tool_choice" : "required", "tools" : [ { "name" : "web_search", "type" : "remote_tool" }, { "name" : "search_images", "type" : "remote_tool" }, { "name" : "read_page", "type" : "remote_tool" }, { "function" : { "description" : "Remove specific relations from the graph\n\nDelete multiple relations from the knowledge graph.", "name" : "memory-delete-relations", "parameters" : { "properties" : { "relations" : { "description" : "A list of relations to delete from the knowledge graph.", "items" : { "properties" : { "from" : { "description" : "The source entity name.", "type" : "string" }, "relationType" : { "description" : "The relationship type (in active voice).", "type" : "string" }, "to" : { "description" : "The target entity name.", "type" : "string" } }, "required" : [ "from", "to", "relationType" ], "type" : "object" }, "type" : "array" } }, "required" : [ "relations" ], "type" : "object" } }, "type" : "local_tool" }, { "function" : { "description" : "Remove specific observations from entities\n\nDelete specific observations from existing entities.", "name" : "memory-delete-observations", "parameters" : { "properties" : { "deletions" : { "description" : "A list of deletions describing which observations to remove.", "items" : { "properties" : { "entityName" : { "description" : "The name of the entity from which observations will be removed.", "type" : "string" }, "observations" : { "description" : "The observations to delete from the entity.", "items" : { "type" : "string" }, "type" : "array" } }, "required" : [ "entityName", "observations" ], "type" : "object" }, "type" : "array" } }, "required" : [ "deletions" ], "type" : "object" } }, "type" : "local_tool" }, { "function" : { "description" : "Read the entire knowledge graph\n\nRead the entire knowledge graph and return it.", "name" : "memory-read-graph", "parameters" : {

    }
  },
  "type" : "local_tool"
},
{
  "function" : {
    "description" : "Retrieve specific nodes by name\n\nOpen specific entities in the knowledge graph by their names.",
    "name" : "memory-open-nodes",
    "parameters" : {
      "properties" : {
        "names" : {
          "description" : "The list of entity names to open.",
          "items" : {
            "type" : "string"
          },
          "type" : "array"
        }
      },
      "required" : [
        "names"
      ],
      "type" : "object"
    }
  },
  "type" : "local_tool"
},
{
  "function" : {
    "description" : "Create new entities in the knowledge graph.\n\nCreate multiple new entities in the knowledge graph.",
    "name" : "memory-create-entities",
    "parameters" : {
      "properties" : {
        "entities" : {
          "description" : "A list of new entities to create in the knowledge graph.",
          "items" : {
            "properties" : {
              "entityType" : {
                "description" : "The type or classification of the entity.",
                "type" : "string"
              },
              "name" : {
                "description" : "The unique name of the entity to create.",
                "type" : "string"
              },
              "observations" : {
                "description" : "Array of initial observations about the entity.",
                "items" : {
                  "type" : "string"
                },
                "type" : "array"
              }
            },
            "required" : [
              "name",
              "entityType",
              "observations"
            ],
            "type" : "object"
          },
          "type" : "array"
        }
      },
      "required" : [
        "entities"
      ],
      "type" : "object"
    }
  },
  "type" : "local_tool"
},
{
  "function" : {
    "description" : "Search for nodes based on query\n\nSearch the knowledge graph by matching a query to entity names, types, or observations.",
    "name" : "memory-search-nodes",
    "parameters" : {
      "properties" : {
        "query" : {
          "description" : "A query string used to search entity names, types, or observations.",
          "type" : "string"
        }
      },
      "required" : [
        "query"
      ],
      "type" : "object"
    }
  },
  "type" : "local_tool"
},
{
  "function" : {
    "description" : "Create new relations between entities\n\nCreate relations between existing entities in the knowledge graph.",
    "name" : "memory-create-relations",
    "parameters" : {
      "properties" : {
        "relations" : {
          "description" : "A list of new relations to create between entities.",
          "items" : {
            "properties" : {
              "from" : {
                "description" : "The source entity name.",
                "type" : "string"
              },
              "relationType" : {
                "description" : "The relationship type (in active voice).",
                "type" : "string"
              },
              "to" : {
                "description" : "The target entity name.",
                "type" : "string"
              }
            },
            "required" : [
              "from",
              "to",
              "relationType"
            ],
            "type" : "object"
          },
          "type" : "array"
        }
      },
      "required" : [
        "relations"
      ],
      "type" : "object"
    }
  },
  "type" : "local_tool"
},
{
  "function" : {
    "description" : "Remove entities and their relations\n\nDelete entities from the knowledge graph along with their related relations.",
    "name" : "memory-delete-entities",
    "parameters" : {
      "properties" : {
        "entityNames" : {
          "description" : "Names of the entities to delete from the graph.",
          "items" : {
            "type" : "string"
          },
          "type" : "array"
        }
      },
      "required" : [
        "entityNames"
      ],
      "type" : "object"
    }
  },
  "type" : "local_tool"
},
{
  "function" : {
    "description" : "Add new observations to existing entities\n\nAdd new observations to existing entities in the knowledge graph.",
    "name" : "memory-add-observations",
    "parameters" : {
      "properties" : {
        "observations" : {
          "description" : "A list of observations to add to existing entities.",
          "items" : {
            "properties" : {
              "contents" : {
                "description" : "The new observations to add.",
                "items" : {
                  "type" : "string"
                },
                "type" : "array"
              },
              "entityName" : {
                "description" : "The name of the entity to which observations will be added.",
                "type" : "string"
              }
            },
            "required" : [
              "entityName",
              "contents"
            ],
            "type" : "object"
          },
          "type" : "array"
        }
      },
      "required" : [
        "observations"
      ],
      "type" : "object"
    }
  },
  "type" : "local_tool"
},
{
  "function" : {
    "description" : "Gets the user's current location. Use this tool for location-based tasks, such as for weather, geocoding, or others.",
    "name" : "location-get-current-location",
    "parameters" : {

    }
  },
  "type" : "local_tool"
}

] }

Current Behaviour

No response

Expected Behaviour

No response

BellalaK avatar Oct 10 '25 12:10 BellalaK

Thank you for opening this issue!

🔔 @EvanZhouDev you might want to have a look.

💡 Author and Contributors commands

The author and contributors of EvanZhouDev/memory can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot close as duplicate Closes the issue as duplicate.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

raycastbot avatar Oct 10 '25 12:10 raycastbot

This issue has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 10 days to keep our backlog clean 😊

raycastbot avatar Nov 29 '25 13:11 raycastbot

This issue has been automatically closed due to inactivity.

Feel free to comment in the thread when you're ready to continue working on it 🙂

You can also catch us in Slack if you want to discuss this.

raycastbot avatar Dec 09 '25 13:12 raycastbot