mirror of
https://github.com/langchain-ai/langchain-extract.git
synced 2026-07-01 20:24:03 -04:00
[PR #41] [MERGED] Add ability to choose other models #74
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langchain-ai/langchain-extract/pull/41
Author: @ccurme
Created: 3/18/2024
Status: ✅ Merged
Merged: 3/19/2024
Merged by: @ccurme
Base:
main← Head:cc/select_models📝 Commits (10+)
2fbe9easupport multiple models4a0d20bchange to literal71b519badd api endpointf995f86add test69bf7bdfix bug with retrieval implementationabc2ec7format1937f47merge main0e6b188change to configurables1bea75eadd fireworks to dependencies53edadaadd fireworks📊 Changes
13 files changed (+260 additions, -24 deletions)
View changed files
📝
backend/poetry.lock(+136 -2)📝
backend/pyproject.toml(+1 -0)➕
backend/server/api/configurables.py(+20 -0)📝
backend/server/api/extract.py(+3 -2)📝
backend/server/api/suggest.py(+1 -1)📝
backend/server/extraction_runnable.py(+7 -6)📝
backend/server/main.py(+2 -1)➕
backend/server/models.py(+57 -0)📝
backend/server/retrieval.py(+3 -1)📝
backend/server/settings.py(+0 -11)➕
backend/tests/unit_tests/api/test_api_configurables.py(+15 -0)📝
backend/tests/unit_tests/api/test_api_extract.py(+13 -0)📝
backend/tests/unit_tests/conftest.py(+2 -0)📄 Description
https://github.com/langchain-ai/langchain-extract/issues/37
Here we add an argument to ExtractionRequest to specify the underlying chat model.
Alternatively we could add this as a property of an extractor, but I kept them separate so that users could easily experiment with different models for the same underlying schema.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.