LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
PythonlangsmithclientClientremove_feedback_categories
Method●Since v0.15

remove_feedback_categories

Copy
remove_feedback_categories(
  self,
  feedback_key: str,
  values: Sequence[float],
  *,
  config_id:
View source on GitHub
Optional
[
ID_TYPE
]
=
None
)
->
ls_schemas
.
FeedbackConfigSchema

Parameters

NameTypeDescription
feedback_key*str

The feedback key of the configuration to update.

values*Sequence[float]

The values (not labels) of the categories to remove.

config_idOptional[Union[UUID, str]]
Default:None

Remove categories from a categorical feedback configuration.

Feedback already written with a removed value is unchanged. The other categories and allows_multiple_categories are kept. Self-hosted deployments need LangSmith v0.18 or later; older versions ignore the change and return the configuration unchanged.

Example:

.. code-block:: python

from langsmith import Client

client = Client() client.remove_feedback_categories("topics", [2])

The configuration to update, for keys with more than one. When omitted, the key's enforced configuration is updated, or else its first one, or else its most recently modified one.