google / google/langextract

Fuzzy Alignment Threshold Setting not Working

Open
#245 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
38.6k
Forks
2.7k
Avg merge
3d 15h
Merged PRs (30d)
3

Description

I was testing the extract function with a different fuzzy threshold and it seems it is not being unpacked in the resolver function:
**Code:**
result = lx.extract(
text_or_documents=input_transcript,
prompt_description=PROMPT_SOP,
examples=EXAMPLES_SOP,
model=model,
extraction_passes=1,
max_char_buffer=5000,
fetch_urls=False,
resolver_params={'fuzzy_alignment_threshold': 0.5},
)

**Error:**

Image

**resolver.py constructor:**
https://github.com/google/langextract/blob/278de1b0cd44c97fe26680be87008e20b1c290ed/langextract/resolver.py#L169

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.