> For the complete documentation index, see [llms.txt](https://docs.sov.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sov.ai/api-reference/extensions/ask-df-llm.md).

# Ask Df Llm

**Module:** `sovai.extensions.ask_df_llm`

## Functions

### `sample_unique_values()`

```python
def sample_unique_values(df, max_samples = 5)
```

***

### `format_sample_data()`

```python
def format_sample_data(sample_data)
```

***

### `find_best_match()`

```python
def find_best_match(
    query: str,
    choices: List[str],
    threshold: int = 80,
) -> Union[str, None]
```

**Returns:** `Union[str, None]`

***

### `parse_value()`

```python
def parse_value(value: str) -> Union[float, int]
```

**Returns:** `Union[float, int]`

***

### `create_standard_query()`

```python
def create_standard_query(condition: str, df: pd.DataFrame) -> Tuple[str, str]
```

**Returns:** `Tuple[str, str]`

***

### `is_simple_condition()`

```python
def is_simple_condition(condition: str) -> bool
```

**Returns:** `bool`

***

### `split_conditions()`

```python
def split_conditions(condition: str) -> List[str]
```

**Returns:** `List[str]`

***
