New Tool Radar

AI Agents & Automation

How to Set a Kill Phrase on a Langflow Memory Base

Set a kill phrase on a Langflow memory base so chats with nothing worth storing are skipped at ingestion.

Schematic with three steps: Turn on LLM preprocessing; Write the kill phrase rule into the; Run a filler chat and a real.

A Langflow memory base ingests every completed run by default, including greetings and filler that no future conversation needs. A kill phrase gates ingestion: when the preprocessing model’s reply contains the phrase, the batch is skipped and nothing is written to the vector store. The default kill phrase is NO_INGEST, and you can teach the preprocessing model when to return it.

What you need

  • A Langflow memory base with LLM preprocessing enabled
  • An embedding model configured for the memory base
  • A short list of chat types that are not worth storing, such as greetings only

Step 1: Turn on LLM preprocessing

Open the memory base and enable LLM Preprocessing, choosing a preprocessing model. Preprocessing requires an embedding model, and it distills each batch of messages into a compact summary before embedding.

Step 2: Write the kill phrase rule into the prompt

In the preprocessing instructions, tell the model to return exactly NO_INGEST when the conversation contains no meaningful facts, for example only greetings or filler. Use the default phrase unless you have a reason to change it.

Step 3: Run a filler chat and a real chat, then compare

Send a greetings-only chat and a chat with a real question, wait for ingestion, and check the memory base: the filler batch should be skipped and the real chat stored. If the filler chat was stored, the prompt did not trigger the phrase.

Worked example: synthetic ingestion check

The table below is a synthetic example. It shows the expected result of the kill phrase; no chat was run.

Batch Contains Ingested?
Greetings only Filler No – skipped
Real support question Facts Yes
Thanks only Filler No – skipped

Expected result (UNTESTED). the two filler batches are skipped and the real support chat is stored, so the memory base holds facts, not noise. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • The kill phrase only works when LLM preprocessing is on; without it there is no model reply to check.
  • When a batch is skipped the ingestion cursor still advances, so the skipped messages are not re-evaluated later.
  • Auto-capture is on by default, so turn it off first if you want to control ingestion by hand.

Sources

See all