-
Notifications
You must be signed in to change notification settings - Fork 309
FinanceAgent - enable on Xeon, remote endpoint, and refactor tests #2032
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
FinanceAgent - enable on Xeon, remote endpoint, and refactor tests #2032
Conversation
Signed-off-by: alexsin368 <alex.sin@intel.com>
Signed-off-by: alexsin368 <alex.sin@intel.com>
Signed-off-by: alexsin368 <alex.sin@intel.com>
Signed-off-by: alexsin368 <alex.sin@intel.com>
Signed-off-by: alexsin368 <alex.sin@intel.com>
Signed-off-by: alexsin368 <alex.sin@intel.com>
Signed-off-by: alexsin368 <alex.sin@intel.com>
Signed-off-by: alexsin368 <alex.sin@intel.com>
Signed-off-by: alexsin368 <alex.sin@intel.com>
Dependency Review✅ No vulnerabilities or license issues found.Scanned FilesNone |
for more information, see https://pre-commit.ci
Signed-off-by: alexsin368 <alex.sin@intel.com>
…m/alexsin368/GenAIExamples into finance-agent-remote-endpoint-new
for more information, see https://pre-commit.ci
Signed-off-by: alexsin368 <alex.sin@intel.com>
…, fix python cmd Signed-off-by: alexsin368 <alex.sin@intel.com>
Signed-off-by: alexsin368 <alex.sin@intel.com>
Signed-off-by: alexsin368 <alex.sin@intel.com>
90d36d5
to
f56df7c
Compare
…m/alexsin368/GenAIExamples into finance-agent-remote-endpoint-new
Signed-off-by: alexsin368 <alex.sin@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Enables FinanceAgent support for Intel® Xeon® processors with OpenAI models and remote endpoints, while reorganizing the test structure for better maintainability across hardware platforms.
- Adds Xeon support with OpenAI model integration and remote endpoint configuration
- Refactors test scripts into modular step-based components for reusability
- Reorganizes environment variables and documentation for clearer configuration
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 6 comments.
Show a summary per file
File | Description |
---|---|
test_compose_on_gaudi.sh | Refactored to use modular step scripts instead of inline functions |
step*.sh | New modular test step scripts extracted from original Gaudi test |
_test_compose_openai_on_xeon.sh | New test script for Xeon platform using OpenAI models |
set_env.sh (gaudi/xeon) | Environment configuration files with proper variable validation |
compose_*.yaml (xeon) | Docker compose files for Xeon deployment with OpenAI and remote endpoints |
README.md files | Updated documentation for Xeon support and corrected typos |
Signed-off-by: alexsin368 <alex.sin@intel.com>
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed all comments
@letonghan @XinyuYe-Intel may I get your review on this PR before the code freeze this Friday? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
Set the following environment variables. | ||
|
||
- `REMOTE_ENDPOINT` is the HTTPS endpoint of the remote server with the model of choice (i.e. https://api.example.com). **Note:** If the API for the models does not use LiteLLM, the second part of the model card needs to be appended to the URL. For example, set `REMOTE_ENDPOINT` to https://api.example.com/Llama-3.3-70B-Instruct if the model card is `meta-llama/Llama-3.3-70B-Instruct`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have instructions how users could figure out API using LiteLLM or not?
|
||
Supervisor Agent multi turn: | ||
|
||
```bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be good to still have port export here.
```bash | |
```bash | |
export agent_port="9090" |
@@ -0,0 +1,18 @@ | |||
# Copyright (C) 2025 Intel Corporation | |||
# SPDX-License-Identifier: Apache-2.0 | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try to use common environment and remove below section?
x-common-environment: | |
&common-env | |
llm_endpoint_url: ${REMOTE_ENDPOINT} | |
api_key: ${OPENAI_API_KEY} |
|
||
services: | ||
worker-finqa-agent: | ||
environment: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
environment: | |
environment: | |
<<: *common-env |
api_key: ${OPENAI_API_KEY} | ||
|
||
worker-research-agent: | ||
environment: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
environment: | |
environment: | |
<<: *common-env |
api_key: ${OPENAI_API_KEY} | ||
|
||
supervisor-react-agent: | ||
environment: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
environment: | |
environment: | |
<<: *common-env |
|
||
echo "=================== #2 Start services ====================" | ||
start_all_services | ||
echo "=================== #2 Endpoints for services started====================" | ||
bash step2_start_services.sh gaudi_vllm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you probably need to change file name when we have new step. I prefer no stepX in file name, but it is ok to keep it this way.
Description
Issues
#1973
Type of change
List the type of change like below. Please delete options that are not relevant.
Dependencies
None
Tests
Added new test script.
Verified FinanceAgent is running on the UI.