LangChain Support
Back to LangSmith Observability

Why am I getting service interruption errors when using text search filters?

LangSmith Observability·1 min read·Oct 30, 2025··

Context

When using text search filters, particularly with the 'like' (contains) operator, users may encounter intermittent service interruption errors. This can occur when performing searches across their data.

Answer

The service interruption errors occur because the 'like' operator for text searching is less performant than using Key-Value (KV) search filters. To resolve this issue and improve search performance:

  1. Replace the 'like' or 'contains' operator in your search query with KV search filters

  2. Use the input_key and input_value parameters instead of the 'like' operator on inputs

For example, instead of using:

like(inputs, "%domain%")

Use:

and(eq(input_key, "record.domain"), eq(input_value, "domain"))

Using KV search filters will not only prevent the service interruption errors but will also provide faster search performance.