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 d41cfe9 commit fa29529Copy full SHA for fa29529
ads/llm/templates/score_chain.jinja2
@@ -6,11 +6,15 @@ from functools import lru_cache
6
from langchain.chains import LLMChain
7
from ads import set_auth
8
from ads.llm.deploy import ChainDeployment
9
+from ads.llm.chain import LOG_ADS_GUARDRAIL_INFO
10
from ads.config import OCI_RESOURCE_PRINCIPAL_VERSION
11
12
if OCI_RESOURCE_PRINCIPAL_VERSION:
13
set_auth("resource_principal")
14
15
+if LOG_ADS_GUARDRAIL_INFO not in os.environ:
16
+ os.environ[LOG_ADS_GUARDRAIL_INFO] = "1"
17
+
18
19
"""
20
Inference script. This script is used for prediction by scoring server when schema is known.
0 commit comments