Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,32 @@ repos:
hooks:
- id: isort
args: ["--filter-files", "--settings-file=./pyproject.toml"]

- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
entry: pflake8
additional_dependencies: [pyproject-flake8]
args: ["--config=./pyproject.toml"]

- repo: https://github.com/google/yapf
rev: v0.43.0
hooks:
- id: yapf
args: ["-i", "--style", "./pyproject.toml"]

- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.6.2
hooks:
- id: uv-lock

- repo: https://github.com/tcort/markdown-link-check
rev: v3.12.2
hooks:
- id: markdown-link-check
args: ["-q", "--config", "ci/markdown-link-check-config.json"]
exclude: "^src/aiq/meta/pypi\\.md$"

default_language_version:
python: python3
10 changes: 10 additions & 0 deletions ci/markdown-link-check-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"ignorePatterns": [
{"pattern": "^https?://localhost:.*$"},
{"pattern": "^https?://$"},
{"pattern": "^https://(platform\\.)?openai\\.com"},
{
"pattern": "^https://code\\.visualstudio\\.com$"
}
]
}
6 changes: 3 additions & 3 deletions docs/source/reference/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ Options:
-f, --fields [all|package|version|component_name|description|developer_notes]
Fields used when applying query.
--help Show this message and exit.
```
```

### Channels Information

Expand All @@ -440,7 +440,7 @@ Usage: aiq info channels [OPTIONS] COMMAND [ARGS]...
Options:
-t, --type TEXT Filter the results by channel type.
--help Show this message and exit.
```
```

## Configuration Commands

Expand Down Expand Up @@ -549,7 +549,7 @@ Commands:
pull Pull AIQ toolkit artifacts from a remote registry by package name.
remove Remove AIQ toolkit artifact from a remote registry by name and version.
search Search for AIQ toolkit artifacts from remote registry.
```
```

#### Publishing AIQ Toolkit Components

Expand Down
2 changes: 1 addition & 1 deletion docs/source/workflows/evaluate.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Evaluation is dependent on the judge LLM's ability to accurately evaluate the ge
3)- meta/llama-3.1-70b-instruct
4)- meta/llama-3.3-70b-instruct
```
For a complete list of up-to-date judge LLMs, refer to the [RAGAS NV metrics leadership board](https://github.com/explodinggradients/ragas/blob/main/src/ragas/metrics/_nv_metrics.py)
For a complete list of up-to-date judge LLMs, refer to the [RAGAS NV metrics leadership board](https://github.com/explodinggradients/ragas/blob/main/ragas/src/ragas/metrics/_nv_metrics.py)

### Trajectory Evaluator
This evaluator uses the intermediate steps generated by the workflow to evaluate the workflow trajectory. The evaluator configuration includes the evaluator type and any additional parameters required by the evaluator.
Expand Down
2 changes: 1 addition & 1 deletion examples/agno_personal_finance/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ curl -X 'POST' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"inputs": "My financial goal is to retire at age 60. I am currently 40 years old, working as a Machine Learning engineer at NVIDIA."}'
```
```

### Expected API Output
The API response should look like this:
Expand Down
2 changes: 1 addition & 1 deletion examples/email_phishing_analyzer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ curl -X 'POST' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"input_message": "Dear [Customer], Thank you for your purchase on [Date]. We have processed a refund of $[Amount] to your account. Please provide your account and routing numbers so we can complete the transaction. Thank you, [Your Company]"}'
```
```

### Expected API Output
The API response should look like this:
Expand Down
5 changes: 3 additions & 2 deletions examples/simple_calculator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ curl -X 'POST' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{"input_message": "Is the product of 2 * 4 greater than the current hour of the day?"}'
```
```

### Expected API Output
The API response should be similar to the following:
Expand All @@ -257,6 +257,7 @@ The API response should be similar to the following:
"output": "No, the product of 2 * 4 (which is 8) is less than the current hour of the day (which is 16)."
}
```

## Accessing Request Metadata
Users can define custom routes that are dynamically added to the API server, and capture HTTP request metadata such
as the method, URL path, URL scheme, headers, query parameters, path parameters, host, port, and cookies.
Expand All @@ -274,7 +275,7 @@ general:
method: POST
description: Gets the request attributes from the request.
function_name: current_request_attributes
```
```

### Access the request metadata
Get the instance of the `aiq.builder.context.AIQContext` object using the `aiq.builder.context.AIQContext.get()` method. This will give you access to the metadata method which holds the request attributes defined by the user on request. A complete example of the function can be found in `src/aiq/tool/server_tools.py.`
Expand Down