You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/user_guide/langchain/deploy.rst
+11-20Lines changed: 11 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,10 @@
1
-
################################
2
-
LangChain Application Deployment
3
-
################################
1
+
#########
2
+
LangChain
3
+
#########
4
4
5
5
Oracle ADS SDK now supports the deployment of LangChain application to OCI data science model deployment and you can easily do so just by writing a couple lines of code.
6
6
7
-
Installation
8
-
************
9
-
10
-
Before you start, install the ``oracle-ads >= 2.9.1`` package following the command below.
11
-
The Oracle ADS SDK has all of the required tools needed for the deployment.
12
-
13
-
.. code-block:: shell
14
-
15
-
pip install oracle-ads —-upgrade
7
+
.. versionadded:: 2.9.1
16
8
17
9
Configuration
18
10
*************
@@ -24,13 +16,6 @@ Here we're using the ``resource_principal`` as auth type and you can configure t
24
16
25
17
allow dynamic-group <dynamic-group-name> to manage data-science-model-deployments in compartment <compartment-name>
26
18
27
-
Set auth for ADS SDK to access the OCI data science model deployment resources.
28
-
29
-
.. code-block:: python3
30
-
31
-
import ads
32
-
ads.set_auth(auth="resource_principal")
33
-
34
19
Create LangChain Application
35
20
****************************
36
21
@@ -153,8 +138,14 @@ Now the OCI data science model deployment endpoint is ready and you can invoke i
Alternatively, you can use OCI CLI to invoke the model deployment. Remember to replace the ``langchain_application_model_deployment_url`` with the actual model deployment url which you can find in the output from deploy step.
0 commit comments