Skip to content
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

WIP: AI Agent v0 #145

Draft
wants to merge 28 commits into
base: staging
Choose a base branch
from
Draft

WIP: AI Agent v0 #145

wants to merge 28 commits into from

Conversation

mvanniasingheTT
Copy link
Contributor

@mvanniasingheTT mvanniasingheTT commented Jan 21, 2025

Description

This PR adds support for the search agent using the Llama 70B Instruct model. Using the ChatUI, a user is able to switch between using their standard LLM of choice and using the search agent to access real time information from the web.

Instructions to Setup Agent

Build Docker Image

Once you have done the typical setups with the weights and persistent volume, follow the below:

Visit https://tavily.com/ to generate an API key to use the search tool. Update the tt-studio/app/.env.default with the API key

TAVILY_API_KEY=<your-tavily-api-key>
cd tt-studio/app/api/agent_control
docker build -t agent_image:v1 .
cd tt-studio/app
docker compose up --build

Refer to the below video for an example of what the agent can be used to do:

SearchAgent_Demo.mov

To Do:

  • Add generalizable support for all llm models
  • Add in loading bar to show search is taking place
  • Add agent image to GHCR (?)
  • Parse agent output so use only the final answer in the response (intermediate step will correspond to the loading bar)
  • Thread id of agent should by dynamic based on which chat being used in ChatUI

Copy link

Our automated SPDX license verification process has discovered that the following files are missing a license header:

./app/api/agent_control/agent.py
./app/api/agent_control/code_tool.py
./app/api/agent_control/custom_llm.py
./app/api/agent_control/utils.py

Please ensure each indicated file includes a valid SPDX license identifier. This is essential for maintaining licensing compliance. Your attention and cooperation in updating these files are greatly appreciated. Thank you.

Copy link

Our automated SPDX license verification process has discovered that the following files are missing a license header:

./app/api/agent_control/agent.py
./app/api/agent_control/code_tool.py
./app/api/agent_control/custom_llm.py
./app/api/agent_control/utils.py

Please ensure each indicated file includes a valid SPDX license identifier. This is essential for maintaining licensing compliance. Your attention and cooperation in updating these files are greatly appreciated. Thank you.

Copy link

Our automated SPDX license verification process has discovered that the following files are missing a license header:

./app/api/agent_control/agent.py
./app/api/agent_control/code_tool.py
./app/api/agent_control/custom_llm.py
./app/api/agent_control/utils.py

Please ensure each indicated file includes a valid SPDX license identifier. This is essential for maintaining licensing compliance. Your attention and cooperation in updating these files are greatly appreciated. Thank you.

Copy link

Our automated SPDX license verification process has discovered that the following files are missing a license header:

./app/api/agent_control/agent.py
./app/api/agent_control/code_tool.py
./app/api/agent_control/custom_llm.py
./app/api/agent_control/utils.py

Please ensure each indicated file includes a valid SPDX license identifier. This is essential for maintaining licensing compliance. Your attention and cooperation in updating these files are greatly appreciated. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant