Skip to content

Latest commit

 

History

History

opencsg

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Agentic OpenCSG Demo

Quick Start

First, follow the instructions in Prerequisites and Installation.

Run the Triage agent

Run the OpenCSG triage agent:

export AZURE_MODEL=csg-gpt4
export AZURE_API_BASE=https://opencsg-us.openai.azure.com
export AZURE_API_VERSION=2024-02-15-preview
export AZURE_API_KEY=<YOUR API KEY>

python examples/opencsg/opencsg.py team1

Then start a client in another terminal:

python examples/rich_client.py opencsg
Input: Search wukong-1b model

You will not get any useful information since the triage agent itself has no knowledge of the OpenCSG's models.

Add the CSGHub agent

Run the CSGHub agent:

export AZURE_MODEL=csg-gpt4
export AZURE_API_BASE=https://opencsg-us.openai.azure.com
export AZURE_API_VERSION=2024-02-15-preview
export AZURE_API_KEY=<YOUR API KEY>

python examples/opencsg/csghub.py team1.csghub

Then search in the client terminal, then you will get a professional answer from CSGHub:

python examples/rich_client.py opencsg
Input: Search wukong-1b model