We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 016c79a commit fd5ead1Copy full SHA for fd5ead1
backend/requirements.txt
@@ -78,6 +78,8 @@ langchain-text-splitters==0.0.1
78
langdetect==1.0.9
79
langsmith==0.1.31
80
layoutparser==0.3.4
81
+langserve
82
+langchain-cli
83
lxml==5.1.0
84
MarkupSafe==2.1.5
85
marshmallow==3.20.2
backend/score.py
@@ -8,7 +8,8 @@
8
import uvicorn
9
import asyncio
10
import base64
11
-
+from langserve import add_routes
12
+from langchain_google_vertexai import ChatVertexAI
13
14
15
def healthy_condition():
@@ -30,6 +31,9 @@ def sick():
30
31
allow_methods=["*"],
32
allow_headers=["*"],
33
)
34
+
35
+add_routes(app,ChatVertexAI(), path="/vertexai")
36
37
app.add_api_route("/health", health([healthy_condition, healthy]))
38
39
@app.post("/sources")
0 commit comments