Skip to content

Commit

Permalink
feat: Initial template for Langchain on Vertex.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 622468677
  • Loading branch information
yeesian authored and Copybara-Service committed Apr 6, 2024
1 parent 765d60d commit 0752a29
Show file tree
Hide file tree
Showing 4 changed files with 430 additions and 10 deletions.
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@
"pandas >= 1.0.0, < 2.2.0",
]

langchain_extra_require = [
"langchain >= 0.1.13, < 0.2",
"langchain-core < 0.2",
"langchain-google-vertexai < 0.2",
]

full_extra_require = list(
set(
tensorboard_extra_require
Expand Down Expand Up @@ -253,6 +259,7 @@
"ray_testing": ray_testing_extra_require,
"reasoningengine": reasoning_engine_extra_require,
"rapid_evaluation": rapid_evaluation_extra_require,
"langchain": langchain_extra_require,
},
python_requires=">=3.8",
classifiers=[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@
Queryable,
ReasoningEngine,
)
from vertexai.preview.reasoning_engines.templates.langchain import (
LangchainAgent
)

__all__ = (
"LangchainAgent",
"Queryable",
"ReasoningEngine",
)
Loading

0 comments on commit 0752a29

Please sign in to comment.