google / google/langextract

Feature suggestion

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

Description

It would be great to be able to create an extraction pipeline based on examples and prompt once...
`my_custom_extractor = lx.extract(prompt=prompt, examples=examples)`

And then reuse that pipeline across multiple input texts...
```text1 = "The person's name is Anne Teak, and they are 45."
result1 = my_custom_extractor.extract(text1)
print(result1)
```

and then...
```text2 = "The person's name is Scott Chegg, and they are 61."
result2 = my_custom_extractor.extract(text2)
print(result2)
```

I would imagine this would reduce the work required / speed up each separate extraction?

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.