A Cognitive Profile is an AI-generated system prompt that summarizes everything Mengram knows about a user: identity, preferences, communication style, current projects, and key relationships. Insert it into any LLM’s system prompt for instant personalization.
from mengram import Mengramm = Mengram()profile = m.get_profile()print(profile["system_prompt"])# "You are talking to Ali, a software engineer based in ...# He prefers concise responses, uses Python and Railway..."print(profile["facts_used"]) # 47 — number of facts used
from langchain_mengram import get_mengram_profile# Returns a string you can use as system promptprompt = get_mengram_profile(api_key="om-...", user_id="alice")