Skip to content

Releases: parkervg/blendsql

v0.0.19

21 Jun 19:51
Compare
Choose a tag to compare

What's Changed

  • mypy fixes, using singledispatch to route model generation behavior by @parkervg in #24
  • Feature/infer options arg by @parkervg in #25
  • TransformersVisionModel, ImageCaption Ingredient, default_model behavior by @parkervg and @zvs08 in #26

Example demonstrating new features:

ingredients = {ImageCaption.from_args(model=vision_model), LLMMap}
res = blend(
    query="""
    SELECT "Name",
    {{ImageCaption('parks::Image')}} as "Image Description", 
    {{
        LLMMap(
            question='Size in km2?',
            context='parks::Area'
        )
    }} as "Size in km" FROM parks
    WHERE "Location" = 'Alaska'
    ORDER BY "Size in km" DESC LIMIT 1
        """,
    db=db,
    default_model=text_model,
    ingredients=ingredients,
)

Full Changelog: v0.0.18...v0.0.19

v0.0.18

07 Jun 14:47
59bb061
Compare
Choose a tag to compare

What's Changed

New Contributors

  • @zvs08 made their first contribution in #18

Full Changelog: v0.0.17...v0.0.18

v0.0.17

24 May 23:06
Compare
Choose a tag to compare

What's Changed

  • Swapped from Guidance to Outlines for constrained decoding functionality (#15)
  • Support for Ollama models! 🎉 (16d0c68)
    • Since these aren't directly supported by Outlines, we treat them as a RemoteModel (8b16767) and use a helper function return_ollama_response() to account for the different inference pattern (40df255)
  • Improved documentation (#15)
    • Simplified the introductory example in the README (1ead608)
  • Fixed a weird pattern in Program where model was being referenced via a class attribute; made this an explicit argument (ccf0ecf)

Full Changelog: v0.0.15...v0.0.17

v0.0.15

13 May 21:39
39086d4
Compare
Choose a tag to compare

What's Changed

  • Support for PostgreSQL! 🎉 (c027388)
    • Enabled via CREATE TEMP TABLE abstraction and Database class built off sqlalchemy (85418e2)
  • LlamaCppLLM class (2283526)
  • Renamed blendsql.py to `blend.py' (670d00e)
  • More test cases (9d19579)

Full Changelog: v0.0.141...v0.0.15

v0.0.14

09 May 19:14
57d68c3
Compare
Choose a tag to compare

Bugfix: enforcing sqlglot==18.13.0

v0.0.13

14 Mar 15:15
Compare
Choose a tag to compare

What's Changed

This release only updates the model caching capability.

  • Close #8, solving some diskcache model caching bugs
  • Add caching boolean argument to Model class (d7deeea)
    • Allows user to toggle caching behavior on/off
  • Test cases for caching (9d15c57)

Full Changelog: v0.0.12...v0.0.13

v0.0.12

29 Feb 22:25
48b8fb8
Compare
Choose a tag to compare

What's Changed

  • Rename LLM to Model (259a32e)
    • Now, import is from blendsql.models import Model
  • Adding disckache cache for Model predictions (3c757a7)
    • If the model class and the arguments passed to predict() are identical to something in cache, just return, don't process it again
  • Better documentation, examples showing new ingredient integration (7a65153)

Full Changelog: v0.0.11...v0.0.12

v0.0.11

22 Feb 17:14
Compare
Choose a tag to compare
Quickstart fix, `env` argument optional