opea-project / GenAIComps

GenAI components at micro-service level; GenAI service composer to create mega-service
Apache License 2.0
22 stars 54 forks source link

Initiate Agent component #228

Open xuechendi opened 2 weeks ago

xuechendi commented 2 weeks ago

Description

add a new component called "Agent", first PR only include agent impl based on 'Langchain'. Default tools are provided while we also expect user to add their own tools through customer_tool.py file through cmdline.

Issues

n/a.

Type of change

List the type of change like below. Please delete options that are not relevant.

Dependencies

List the newly introduced 3rd party dependency if exists.

Tests

cd comps/agent/langchain/; python test.py --endpoint_test --ip_addr=${endpoint_ip_addr}

{"query": "What is the weather today in Austin?"}
data: 'The temperature in Austin today is 78°F.</s>'

data: [DONE]
xuechendi commented 2 weeks ago

Architecture design as below

image

xuechendi commented 2 weeks ago

@lvliang-intel @minmin-intel

hshen14 commented 1 week ago

Link to RFC: https://github.com/opea-project/docs/pull/26

xuechendi commented 1 week ago

Link to RFC: opea-project/docs#26

Link to RFC: https://github.com/opea-project/docs/pull/29