An open API service indexing awesome lists of open source software.

https://github.com/paulchworks/autogen-app


https://github.com/paulchworks/autogen-app

agentic-ai aisearch autogen azure bing openai

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

![image](https://github.com/user-attachments/assets/2927a644-0fac-46f1-8662-be2827156a92)

# Autogen app for web search and document search built on FastApi backend and React frontend

This is a simple implementation of Autogen Agents using FastApi as backend and a frontend client using React

1. **FastApi Backend**: A FastApi application running autogen.
2. **Webapp**: React webapp using websocket to communicate with FastApi.

## Running demo

1. **Clone this repo**
```
git clone
cd autogen-app
```
2. **Configure backend**

Configure python deps
```
cd backend
pip install -r ./requirements.txt
```

Add your Openai key to .env inside src folder
```
cd backend/src (edit .env and add your key)
```

Start backend server inside src folder
```
python main.py
```
You should see

```
INFO: Started server process [85614]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
```

2. **Configure frontend**

Open a new terminal and go to the react-frontend folder (you need to have nodejs installed and npm >= v14 )
```
cd autogenwebdemo/react-frontend
npm install
npm run dev
```
Open you browser on http://localhost:5173/ or the port shown

**Web Search:** Try doing a web search by typing "What are the top news in AI today?"

**Groupchat:** if you want to use Groupchat take a look at autogen_group_chat.py