Coool2 commited on
Commit
7bbb32d
·
verified ·
1 Parent(s): 4c8cd1a

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +5 -4
agent.py CHANGED
@@ -8,7 +8,6 @@ import torch
8
 
9
  # Third-party imports
10
  import requests
11
- import wandb
12
  from transformers import AutoModelForCausalLM, AutoTokenizer
13
 
14
  # LlamaIndex core imports
@@ -56,10 +55,12 @@ from llama_index.core.query_pipeline import QueryPipeline
56
  import importlib.util
57
  import sys
58
 
59
- wandb.init(project="gaia-llamaindex-agents") # Choisis ton nom de projet
60
- wandb_callback = WandbCallbackHandler(run_args={"project": "gaia-llamaindex-agents"})
 
 
61
  llama_debug = LlamaDebugHandler(print_trace_on_end=True)
62
- callback_manager = CallbackManager([wandb_callback, llama_debug])
63
 
64
  logging.basicConfig(level=logging.INFO)
65
  logging.getLogger("llama_index.core.agent").setLevel(logging.DEBUG)
 
8
 
9
  # Third-party imports
10
  import requests
 
11
  from transformers import AutoModelForCausalLM, AutoTokenizer
12
 
13
  # LlamaIndex core imports
 
55
  import importlib.util
56
  import sys
57
 
58
+ import weave
59
+ weave.init("gaia-llamaindex-agents")
60
+
61
+ # Keep only the debug handler
62
  llama_debug = LlamaDebugHandler(print_trace_on_end=True)
63
+ callback_manager = CallbackManager([llama_debug])
64
 
65
  logging.basicConfig(level=logging.INFO)
66
  logging.getLogger("llama_index.core.agent").setLevel(logging.DEBUG)