Skip to content

Repository files navigation

🔧 Hướng dẫn thiết lập Multi-Agent LLM với Gemini

📋 Yêu cầu hệ thống

  • Python 3.8+
  • API key của Google Gemini

🚀 Cài đặt

1. Cài đặt dependencies

pip install -r requirements.txt

2. Lấy API key Gemini

  1. Truy cập: https://makersuite.google.com/app/apikey
  2. Đăng nhập bằng tài khoản Google
  3. Tạo API key mới
  4. Sao chép API key

3. Thiết lập API key

Cách 1: Tạo file .env (Khuyến nghị)

# Tạo file .env trong thư mục dự án
echo GEMINI_API_KEY=your_actual_api_key_here > .env

Cách 2: Thiết lập biến môi trường

# Windows PowerShell
$env:GEMINI_API_KEY="your_actual_api_key_here"

# Windows Command Prompt
set GEMINI_API_KEY=your_actual_api_key_here

4. Chạy ứng dụng

streamlit run main.py

🌐 Truy cập ứng dụng

  • Mở trình duyệt và truy cập: http://localhost:8501
  • Nhập câu hỏi vào ô text
  • Nhấn "Submit" để xử lý

🔍 Cách hoạt động

  1. Task Splitting: Hệ thống chia nhỏ câu hỏi thành các task
  2. Multi-Agent Processing: Mỗi task được xử lý bởi Gemini AI
  3. Memory Storage: Kết quả được lưu vào FAISS vector database
  4. Context Retrieval: Các câu hỏi sau sẽ sử dụng context từ bộ nhớ

⚠️ Lưu ý

  • Không chia sẻ API key của bạn
  • API key có giới hạn sử dụng hàng tháng
  • Đảm bảo kết nối internet ổn định

About

split task

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages