RSS Feed Subscribe to RSS Feed

 

Improve your AI Assistants with persistent context

LLM-based assistants, such as Claude, Gemini, ChatGPT and Microsoft Copilot, are wonderful tools and bring a huge amount of utility straight out of the box.

But what if you want the guidance and responses you receive from your AI, to be more customized? To be aware of your specific details and context?

You can give AI context in your prompt, for example:

Assume the role of an expert tax accountant specializing in small business deductions. Answer all my questions concisely, cite relevant IRS rules where applicable, and flag anything I should verify with a professional.

That is a good start. But what if you want such context to persist across multiple conversations? Tools such as Gemini Gems, Claude Projects, Copilot Agents, and ChatGPT GPTs can all help.

It can be a pain to repeat context in every conversation, and by default, most of the main LLMs are stateless. Some context may be maintained from question to question in a given session, but state is usually not maintained across sessions*, e.g. between the questions you asked yesterday and today. 

Still, nuances aside, one thing is for sure: If you want important context to persist across your AI chats and to allow AI to better understand your specific needs, you should take explicit steps to make sure that happens. That is what the rest of this article covers. 

 

Google Gemini Gems

According to Google’s own “Build custom experts with Gems” page, Gems allow you to specify “detailed prompt instructions for your repeatable tasks”, whether you need “a specific tone and style, or expert knowledge on a niche topic”.

You can specify persistent instructions and upload (again, persistent) context files. (There is currently a 10 file limit, per this google support page, but you can work around that to a certain extent by combining multiple documents into one, or using ZIP archives for example).

As a Google user, one of the things I like best about Gems is that you can point them to files on your Google Drive, and it will use the latest versions, rather than having to re-upload each time the file changes. Just click “Add from Drive” instead of uploading. For more, see Use Gems in Gemini Apps.

You can also avail of several pre-made Gems, including Brainstormer, Career guide, Coding partner, Learning coach, Writing editor and Chess champ. See more at https://gemini.google.com/gems/view.

 

Claude Projects

Claude Projects streamline your workflow in Claude for more organized and efficient conversations. They allow you to ground Claude’s outputs with custom knowledge, bringing together curated sets of knowledge and chat activity in one place, and allow you to define custom instructions for each Project.

Unlike Gemini Gems, there is no limit on the number of files you can upload. Each file is capped at 30MB, and there is a limit in the total content fitting the context window though.

When you create a project, you can specify both a description and instructions.

  • The description is for you, not something Claude reads or acts on.
  • The instructions are actual guidance that Claude reads and follows in every chat. You tell Claude how you’d like it to behave and respond within that project. Essentially a project-scoped system prompt.

Sources:

Microsoft Copilot

Microsoft’s equivalent is Copilot Agents, built with Copilot Studio, or the lighter weight “Copilot GPTs”.

I haven’t used these myself yet, but if you are deeply embedded in the Microsoft ecosystem, using they Office suite and OneDrive for storage, for example, they are worth exploring more.

 

ChatGPT’s Custom GPTs

From Introducing GPTs, GPTs are custom versions of ChatGPT that combine instructions, extra knowledge, and any combination of skills.

GPTs are similar to Gems in that you can specify instructions and upload files. It also has the same file limit of 10.

On a side note, I always found the name a little confusing. GPTs from ChatGPT? I feel like they could have worked on the branding a little more.

 

Footnote:

* How state is stored between sessions is nuanced since various LLMs handle this differently. For example Claude now does have the ability to use memory across sessions; this article from support.claude.com explains how to use Claude’s memory to build on previous context, but it is limited, needs to be enabled, and is not available on all plans.

 

 

Tags: , , , ,

Leave a Reply