Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introducelf.structured.complete with enhanced Python schema support. #7

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Sep 19, 2023

Introducelf.structured.complete with enhanced Python schema support.

Usage:

class Person:
  name: str
  birth_place: str
  birth_year: int
  
lf.complete(Person.partial('Larry Page'), lm=lf.llms.Gpt35())

This CL also:

  • Update the default LM timeout from 30 to 120 seconds.
  • lf.MISSING and lf.UNKNOWN for representing missing and unknown fields.

@copybara-service copybara-service bot changed the title Introduce lf.structured.complete with enhanced Python schema support. Introducelf.structured.complete with enhanced Python schema support. Sep 19, 2023
@codecov-commenter
Copy link

codecov-commenter commented Sep 19, 2023

Codecov Report

Merging #7 (6a46e99) into main (03643b4) will increase coverage by 0.22%.
The diff coverage is 97.98%.

@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
+ Coverage   96.57%   96.80%   +0.22%     
==========================================
  Files          33       34       +1     
  Lines        2305     2470     +165     
  Branches      490      516      +26     
==========================================
+ Hits         2226     2391     +165     
  Misses         33       33              
  Partials       46       46              
Files Changed Coverage Δ
langfun/core/language_model.py 96.87% <ø> (ø)
langfun/core/structured/nl2structure.py 88.23% <ø> (ø)
langfun/core/structured/schema.py 95.92% <97.64%> (+1.09%) ⬆️
langfun/core/structured/structure2structure.py 98.46% <98.46%> (ø)
langfun/__init__.py 100.00% <100.00%> (ø)
langfun/core/structured/__init__.py 100.00% <100.00%> (ø)
langfun/core/structured/mapping.py 97.72% <100.00%> (-0.06%) ⬇️

... and 1 file with indirect coverage changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant