Tribe is a low-code tool designed to help users quickly build and orchestrate multi-agent teams. It is based on the LangGraph framework and allows users to customize and orchestrate multiple agents through a visual interface, splitting complex tasks among agents with different expertise, thereby improving the efficiency and quality of problem-solving.
Main Uses
Tribe is suitable for scenarios that require multiple agents to collaborate on complex tasks. For example: football analysis (one agent searches for the latest Premier League news, another analyzes the data and writes a report), travel planning (one agent recommends local restaurants, another finds highly rated hotels), customer service (one handles IT issues, one manages complaints, one is responsible for product inquiries), etc.
Main Capabilities
- Persistent conversation: Save and maintain chat history, supporting continued conversations.
- Observability: Monitor and trace agent performance and output in real time through LangSmith.
- Tool calling: Enable agents to use external tools and APIs.
- Retrieval-augmented generation (RAG): Enable agents to reason based on internal knowledge bases.
- Human-In-The-Loop: Require human approval before tool calls.
- Open-source models: Support open-source LLM models such as llama, Gemma, and Phi.
- External application integration: Interact with teams through Tribe's public API endpoints.
- Easy deployment: Deploy easily using Docker.
- Multi-tenancy: Manage and support multiple users and teams.
How to Use
Quick Start
- Generate keys: Modify FIRST_SUPERUSER_PASSWORD and POSTGRES_PASSWORD in the environment variables, and use commands to generate secure keys.
- Local deployment (simplest): Use Docker to start on your local machine within minutes.
- Remote server deployment: Deploy Tribe to a remote server.
Workflow Types
- Sequential workflow: Agents execute tasks in order, and each task can depend on the previous task. Suitable for scenarios with clear steps, where results affect the next step, and a deterministic order is required.
- Hierarchical workflow: Agents form a team structure, including a team leader, team members, and sub-team leaders. The leader breaks down tasks and delegates them to members. After members complete them, they return responses to the leader, and the leader decides whether to return to the user or continue delegating. Suitable for complex and multifaceted scenarios that require specialized agents to handle differentsubtasks, where task delegation and reassessment are crucial.
Skills
Skills are the abilities given to agents to interact with the outside world. Tribe provides three skills by default: duckduckgo-search (web search), wikipedia (Wikipedia search), and yahoo-finance (Yahoo Finance news). Users can create custom skills: through skill definitions (suitable for simple HTTP requests) or by writing custom skills in the codebase (using LangChain to develop more complex tools, adding them to the managed_skills dictionary, and taking effect after restarting the application).
Retrieval-Augmented Generation (RAG)
Tribe allows uploading data and selecting the data to include in the agent's knowledge base, enabling agents to reason based on private data. By default, it uses the BAAI/bge-small-en-v1.5 embedding model, which can be changed through DENSE_EMBEDDING_MODEL in the .env file. If the embedding model has a different vector dimension, the Qdrant collection may need to be rebuilt.
Using Open-Source Models
It is recommended to use Ollama to run open-source models. After installing Ollama, download the model, update the provider to ollama in the agent configuration, and fill in the model name (such as llama3.1:8b). By default, it runs on http://host.docker.internal:11434。也可使用兼容 Open-source models for the OpenAI Chat Completion API, select OpenAI as the provider and specify the inference endpoint.
Guide
- Create your first hierarchical team: after logging in, go to the Teams page, add a team, drag the Team Leader node to create members, and after configuration you can ask questions in the Chat tab.
- Equip team members with skills: after adding skills, agents can search the web for the latest information.
- Create your first sequential team: select the Sequential workflow, add members and configure skills (such as wikipedia), and ask questions in Chat.
- Require human approval in a sequential workflow: add a skill and select Require approval; the agent will request approval before executing the skill, and you can reject it with guidance information.
Use Cases
Tribe is suitable for complex tasks that require multi-agent collaboration, such as research and analysis, customer service, travel planning, content creation, and more. It is especially suitable for users who want to quickly build and coordinate agent teams in a low-code way.
Limitations
- The project is currently in intensive development and may undergo major changes.
- The project is not related to any blockchain project; beware of scams.
- Some environment variables default to changethis and must be changed to secure keys.
- Using custom skills requires restarting the application, and created skills are available to all users.
- Changing the embedding model may require rebuilding the Qdrant collection.
- Open-source models need to be installed and configured yourself (such as Ollama).
Contribution and License
Tribe is an open-source project and community contributions are welcome. You can report bugs, improve documentation, suggest or contribute new features. The project uses the MIT License.