Skip to content

Commit 24ac3e2

Browse files
Add a separate config file for easy weave testing.
Signed-off-by: Anuradha Karuppiah <[email protected]>
1 parent 9312d0a commit 24ac3e2

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed

docs/source/guides/fine-grained-tracing-with-weave.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ uv pip install -e examples/simple_calculator
3939

4040
### Step 3: Modify Workflow Configuration
4141

42-
Update your workflow configuration file (`examples/simple_calculator/configs/config.yml`) to include the weave telemetry settings as follows:
42+
Update your workflow configuration file to include the weave telemetry settings. For example, `examples/simple_calculator/configs/config-weave.yml` has the following weave settings:
4343

4444
```bash
4545
general:
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# SPDX-FileCopyrightText: Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
general:
17+
use_uvloop: true
18+
telemetry:
19+
tracing:
20+
weave:
21+
_type: weave
22+
project: "aiqtoolkit-demo"
23+
24+
functions:
25+
calculator_multiply:
26+
_type: calculator_multiply
27+
calculator_inequality:
28+
_type: calculator_inequality
29+
calculator_divide:
30+
_type: aiq_simple_calculator/calculator_divide
31+
current_datetime:
32+
_type: current_datetime
33+
calculator_subtract:
34+
_type: calculator_subtract
35+
36+
llms:
37+
nim_llm:
38+
_type: nim
39+
model_name: meta/llama-3.1-70b-instruct
40+
temperature: 0.0
41+
max_tokens: 1024
42+
openai_llm:
43+
_type: openai
44+
model_name: gpt-3.5-turbo
45+
max_tokens: 2000
46+
47+
workflow:
48+
_type: react_agent
49+
tool_names:
50+
- calculator_multiply
51+
- calculator_inequality
52+
- current_datetime
53+
- calculator_divide
54+
- calculator_subtract
55+
llm_name: nim_llm
56+
verbose: true
57+
retry_parsing_errors: true
58+
max_retries: 3

0 commit comments

Comments
 (0)