> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-docs-1778-mysql-updates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# feedback

> Python SDK reference for weave.trace.feedback

# API Overview

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L20">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

## <kbd>class</kbd> `Feedbacks`

A collection of Feedback objects with utilities.

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L25">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `__init__`

```python theme={null}
__init__(
    show_refs: 'bool',
    feedbacks: 'Iterable[Feedback] | None' = None
) → None
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L31">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `refs`

```python theme={null}
refs() → Refs
```

Return the unique refs associated with these feedbacks.

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L83">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

## <kbd>class</kbd> `FeedbackQuery`

Lazy-loading object for fetching feedback from the server.

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L96">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `__init__`

```python theme={null}
__init__(
    entity: 'str',
    project: 'str',
    query: 'Query',
    offset: 'int | None' = None,
    limit: 'int | None' = None,
    show_refs: 'bool' = False
)
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L144">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `execute`

```python theme={null}
execute() → Feedbacks
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L125">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `refresh`

```python theme={null}
refresh() → Feedbacks
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L150">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `refs`

```python theme={null}
refs() → Refs
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L167">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

## <kbd>class</kbd> `RefFeedbackQuery`

Object for interacting with feedback associated with a particular ref.

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L172">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `__init__`

```python theme={null}
__init__(ref: 'str') → None
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L218">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `add`

```python theme={null}
add(
    feedback_type: 'str',
    payload: 'dict[str, Any] | None' = None,
    creator: 'str | None' = None,
    annotation_ref: 'str | None' = None,
    **kwargs: 'dict[str, Any]'
) → str
```

Add feedback to the ref.

feedback\_type: A string identifying the type of feedback. The "wandb." prefix is reserved. creator: The name to display for the originator of the feedback.

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L246">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `add_note`

```python theme={null}
add_note(note: 'str', creator: 'str | None' = None) → str
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L237">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `add_reaction`

```python theme={null}
add_reaction(emoji: 'str', creator: 'str | None' = None) → str
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L144">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `execute`

```python theme={null}
execute() → Feedbacks
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L255">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `purge`

```python theme={null}
purge(feedback_id: 'str') → None
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L125">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `refresh`

```python theme={null}
refresh() → Feedbacks
```

***

<a href="https://github.com/wandb/weave/blob/0.52.10/weave/trace/feedback.py#L150">
  <img align="right" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" />
</a>

### <kbd>method</kbd> `refs`

```python theme={null}
refs() → Refs
```
