File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 53
53
54
54
# Get current user's name & email to ensure each user doesn't over-write other user's outputs
55
55
w = WorkspaceClient ()
56
- user_email = w .current_user .me ().user_name
57
- user_name = user_email .split ("@" )[0 ].replace ("." , "_" )
58
-
59
- print (f"User name: { user_name } " )
60
56
61
57
# COMMAND ----------
62
58
63
59
########################
64
60
# #### ✅✏️ CONFIGURE THE UC MODEL NAME HERE
65
61
########################
66
- #UC_MODEL_NAME = f"<ENTER_YOUR_CATALOG_NAME>.<ENTER_YOUR_SCHEMA_NAME>.db_docs__{user_name}"
67
- UC_MODEL_NAME = f"yz_agent_demo.playground.db_docs__{ user_name } "
62
+ UC_MODEL_NAME = "catalog.schema.my_demo_agent"
68
63
69
64
# COMMAND ----------
70
65
190
185
# MAGIC import json
191
186
# MAGIC
192
187
# MAGIC DEFAULT_CONFIG = {
193
- # MAGIC 'endpoint_name': "agents-demo-gpt4o ",
188
+ # MAGIC 'endpoint_name': "databricks-meta-llama-3-1-70b-instruct ",
194
189
# MAGIC 'temperature': 0.01,
195
190
# MAGIC 'max_tokens': 1000,
196
191
# MAGIC 'system_prompt': """You are a helpful assistant that answers questions about Databricks. Questions unrelated to Databricks are irrelevant.
458
453
fc_agent = FunctionCallingAgent ()
459
454
460
455
dev_config = {
461
- 'endpoint_name' : "agents-demo-gpt4o " ,
456
+ 'endpoint_name' : "databricks-meta-llama-3-1-70b-instruct " ,
462
457
'temperature' : 0.01 ,
463
458
'max_tokens' : 1000 ,
464
459
'system_prompt' : """You are a helpful assistant that answers questions about Databricks. Questions unrelated to Databricks are irrelevant.
You can’t perform that action at this time.
0 commit comments