{"id":186021,"date":"2026-09-26T00:05:13","date_gmt":"2026-09-26T00:05:13","guid":{"rendered":"https:\/\/www.europesays.com\/ai\/186021\/"},"modified":"2026-09-26T00:05:13","modified_gmt":"2026-09-26T00:05:13","slug":"long-term-memory-in-oci-generative-ai-context-that-flows-across-conversations","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/ai\/186021\/","title":{"rendered":"Long-term memory in OCI Generative AI: Context that flows across conversations"},"content":{"rendered":"<p>Long-term memory in\u00a0Oracle Cloud Infrastructure (OCI)\u00a0Generative AI carries selected context across conversations,\u00a0helping\u00a0agents\u00a0continue\u00a0without asking users to repeat the same background\u00a0information.\u00a0<\/p>\n<p>An AI agent can handle every turn in a conversation and still\u00a0create a disconnected experience when\u00a0the\u00a0user\u00a0starts\u00a0a new\u00a0conversation.\u00a0<\/p>\n<p>The reason is simple: a new conversation is usually a new context.\u00a0Preferences, constraints, and background\u00a0established\u00a0in an earlier conversation are not available automatically.\u00a0Without a deliberate way to carry selected context forward, users may need to repeat\u00a0information,\u00a0agents may ask familiar questions, and an ongoing workflow can feel fragmented.\u00a0<\/p>\n<p>The cross-conversation problem\u00a0<\/p>\n<p>Without durable context, agent applications often face three practical issues:\u00a0<\/p>\n<p>Repeated setup.\u00a0Users may need to restate stable preferences and recurring background when they open a new conversation.\u00a0<\/p>\n<p>Inconsistent experiences.\u00a0Separate conversations for the same user or workflow can begin with different assumptions, even when the underlying task is part of an ongoing process.\u00a0<\/p>\n<p>Application complexity.\u00a0Developers must decide what history to\u00a0retain, how to find the relevant parts, and how to inject them into future requests without replaying every prior transcript.\u00a0<\/p>\n<p>A larger context window can hold more information in a single request, but it does not, by itself, make context persistent across separate conversations. The application still needs a deliberate way to carry useful context forward.\u00a0<\/p>\n<p>Long-term memory: selected context that can cross conversations\u00a0<\/p>\n<p><a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/generative-ai\/projects.htm\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Long-term memory in OCI Generative AI<\/a>\u00a0provides persistent context across conversations within a project. When the feature is enabled, the service extracts key information from conversations,\u00a0stores that information as searchable embeddings,\u00a0and can retrieve\u00a0matching\u00a0context in later conversations.\u00a0<\/p>\n<p>Long-term memory can support use cases such as remembering stable user preferences,\u00a0retaining\u00a0recurring background, and helping\u00a0maintain\u00a0continuity across interactions.\u00a0The important word is\u00a0selected: long-term memory is not a promise to record every statement or replay a complete transcript.\u00a0<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" width=\"936\" height=\"574\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/09\/1790381113_793_image.png\" alt=\"Diagram showing how conversations within the same project and using the same memory_subject_id share long-term memory. Conversation 1 provides preferences for the Chicago region and concise Python examples. Three steps show how this information is processed: extract and condense useful context, create embeddings and store searchable vectors, and retrieve relevant memory. When Conversation 2 asks how to call the Responses API, retrieval returns the stored preferences to inform the response. New context from Conversation 2 can also update the shared memory when writing is enabled.\" class=\"wp-image-4484\"  \/>A write-enabled conversation contributes selected information that is extracted, embedded, and stored in project-scoped long-term memory. A later conversation can retrieve relevant memory to inform its response and, when write-enabled, contribute\u00a0new information\u00a0back to the same shared memory.\u00a0<\/p>\n<p>The\u00a0memory_subject_id\u00a0metadata field\u00a0identifies\u00a0a long-term-memory\u00a0subject within a project.\u00a0Conversations created with the same value share the same long-term-memory\u00a0space. A new conversation can therefore begin with a different conversation ID while still using relevant context associated with that subject.\u00a0<\/p>\n<p>A practical example\u00a0<\/p>\n<p>Consider an internal\u00a0developer-support\u00a0agent. During one conversation, a user says:\u00a0<\/p>\n<p>My preferred OCI region is US Midwest (Chicago), and I\u00a0prefer\u00a0concise Python examples.\u00a0<\/p>\n<p>Days later, the user opens a new conversation and asks:\u00a0<\/p>\n<p>Show me how to call the OCI Responses API.\u00a0<\/p>\n<p>If both conversations use the same\u00a0memory_subject_id\u00a0and the second\u00a0conversation\u2019s\u00a0access policy\u00a0permits\u00a0recall,\u00a0long-term memory can make the stored preference available as context. The agent can use that context when generating a concise Python example and, when relevant, reference the preferred region.\u00a0<\/p>\n<p>The application assigns the subject identifier and memory access policy. OCI Generative AI processes extraction and recall within the project according to those settings.\u00a0A compact implementation pattern looks like this:\u00a0<\/p>\n<p>subject = &#8220;user_123456&#8221;\u00a0 #\u00a0Use a pseudonymous application identifier.\u00a0<br \/>\n\u00a0<br \/>\nfirst =\u00a0client.conversations.create(\u00a0<br \/>\n\u00a0\u00a0\u00a0 metadata={\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;memory_subject_id&#8221;: subject,\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;memory_access_policy&#8221;: &#8220;recall_and_store&#8221;,\u00a0<br \/>\n\u00a0\u00a0\u00a0 }\u00a0<br \/>\n)\u00a0<br \/>\n\u00a0<br \/>\nclient.responses.create(\u00a0<br \/>\n\u00a0\u00a0\u00a0 model=&#8221;&#8221;,\u00a0<br \/>\n\u00a0\u00a0\u00a0 conversation=first.id,\u00a0<br \/>\n\u00a0\u00a0\u00a0 input=&#8221;My preferred OCI region is Chicago, and I prefer concise Python examples.&#8221;,\u00a0<br \/>\n)\u00a0<br \/>\n\u00a0<br \/>\n# Memory extraction is asynchronous; allow processing before a later recall.\u00a0<\/p>\n<p>later =\u00a0client.conversations.create(\u00a0<br \/>\n\u00a0\u00a0\u00a0 metadata={\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;memory_subject_id&#8221;: subject,\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8220;memory_access_policy&#8221;: &#8220;recall_only&#8221;,\u00a0<br \/>\n\u00a0\u00a0\u00a0 }\u00a0<br \/>\n)\u00a0<br \/>\n\u00a0<br \/>\nresponse =\u00a0client.responses.create(\u00a0<br \/>\n\u00a0\u00a0\u00a0 model=&#8221;&#8221;,\u00a0<br \/>\n\u00a0\u00a0\u00a0 conversation=later.id,\u00a0<br \/>\n\u00a0\u00a0\u00a0 input=&#8221;Show me how to call the OCI Responses API.&#8221;,\u00a0<br \/>\n)\u00a0<br \/>\n\u00a0<br \/>\nprint(response.output_text)<\/p>\n<p>The snippet focuses on memory metadata. The\u00a0<a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/generative-ai\/responses-api.htm\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">OCI Responses API documentation<\/a>\u00a0covers client configuration, regional endpoints, authentication, project OCIDs, and supported models.\u00a0<\/p>\n<p>Memory with explicit boundaries\u00a0<\/p>\n<p>Persistent context is most useful when applications can control where it applies. OCI provides two boundaries.\u00a0<\/p>\n<p>First,\u00a0<a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/generative-ai\/projects.htm\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">projects<\/a>\u00a0isolate conversations, responses, files, containers, and memory settings. A\u00a0memory_subject_id\u00a0is scoped to its project; using the same text in another project does not join those memory spaces.\u00a0<\/p>\n<p>Second, each conversation can set a\u00a0<a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/generative-ai\/memory-access.htm\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">memory_access_policy<\/a>:\u00a0<\/p>\n<p>recall_and_store\u00a0recalls existing context and allows\u00a0new information\u00a0to be stored. This is the default.\u00a0<\/p>\n<p>recall_only\u00a0can use existing memory without adding\u00a0new information\u00a0from that conversation.\u00a0<\/p>\n<p>store_only\u00a0can contribute information without recalling existing memory.\u00a0<\/p>\n<p>none\u00a0neither\u00a0recalls nor stores memory.\u00a0<\/p>\n<p>These controls allow an application to distinguish, for example, between a personalized conversation, a conversation that should only use existing context, and a conversation that should not\u00a0participate\u00a0in long-term memory.\u00a0<\/p>\n<p>How long-term memory differs from short-term memory and RAG\u00a0<\/p>\n<p>Long-term memory is complementary to other context mechanisms.\u00a0<\/p>\n<p>Short-term memory\u00a0carries context within an ongoing conversation. Short-term-memory\u00a0compaction can reduce the amount of earlier conversation history sent to the model while preserving key details.\u00a0Long-term memory\u00a0carries selected\u00a0context\u00a0across separate conversations associated with the same subject.\u00a0<\/p>\n<p>File Search and retrieval-augmented generation (RAG)\u00a0retrieve information from documents or other curated knowledge sources. They are a natural fit for policies, product documentation, contracts, and other authoritative content. Long-term memory derives reusable context from prior interactions, such as preferences and recurring background.\u00a0<\/p>\n<p>An enterprise agent can use both: RAG for the source of truth and long-term memory for continuity. Memory should inform the interaction, but\u00a0fast-changing\u00a0or consequential business facts should still be verified against the\u00a0appropriate system\u00a0of record.\u00a0<\/p>\n<p>Design for remembered context\u00a0<\/p>\n<p>Long-term memory changes an agent from a sequence of isolated chats into a more continuous experience. That makes several design decisions important:\u00a0<\/p>\n<p>Choose a stable, pseudonymous\u00a0memory_subject_id\u00a0that matches the continuity boundary in your application.\u00a0<\/p>\n<p>Apply\u00a0memory_access_policy\u00a0deliberately instead of treating every conversation the same.\u00a0<\/p>\n<p>Plan the project lifecycle before enabling the feature. Extraction and embedding model availability varies by region. Under current documentation, the selected models cannot be changed after configuration, and long-term memory cannot be disabled or\u00a0deleted\u00a0unless the project is\u00a0deleted.\u00a0<\/p>\n<p>Set response and conversation retention according to your data-handling\u00a0requirements, and\u00a0account separately for the project-level lifecycle of long-term memory.\u00a0<\/p>\n<p>Evaluate extraction and recall with representative conversations. The service extracts key information; applications should not assume that every detail will be stored or recalled.\u00a0<\/p>\n<p>Long-term memory is now part of\u00a0<a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/releasenotes\/generative-ai\/enterprise-ai.htm\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Enterprise AI Agents in OCI Generative AI<\/a>. Combined with the OCI Responses API, Conversations API, project\u00a0scoping, and per-conversation access policies, it\u00a0provides\u00a0a managed\u00a0capability that can help applications carry selected context across conversations.\u00a0<\/p>\n<p>Get started\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"Long-term memory in\u00a0Oracle Cloud Infrastructure (OCI)\u00a0Generative AI carries selected context across conversations,\u00a0helping\u00a0agents\u00a0continue\u00a0without asking users to repeat the same&hellip;\n","protected":false},"author":2,"featured_media":186022,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[405,7537,7342,7343,7344],"class_list":["post-186021","post","type-post","status-publish","format-standard","has-post-thumbnail","category-agentic-ai","tag-ai-agents","tag-artificial-intelligence-agents","tag-oracle-ai","tag-oracle-cloud-infrastructure-oci","tag-technical-solutions"],"_links":{"self":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/186021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/comments?post=186021"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/186021\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media\/186022"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media?parent=186021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/categories?post=186021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/tags?post=186021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}