Skip to content

Welcome to the LatestAiDevelopment Crew project, powered by crewAI. This template is designed to help you set up a multi-agent AI system with ease, leveraging the powerful and flexible framework provided by crewAI. Our goal is to enable your agents to collaborate effectively on complex tasks, maximizing their collective intelligence and capabilitie

Notifications You must be signed in to change notification settings

ecodelearn/latest_ai_development

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LatestAiDevelopment Crew

English | Português Brasileiro


LatestAiDevelopment Crew (English)

Welcome to the LatestAiDevelopment Crew project, powered by crewAI. This project now includes enhanced search capabilities with advanced Google search operators.

Installation

Ensure you have Python >=3.11 <3.13 installed on your system. This project uses UV for dependency management and package handling.

First, if you haven't already, install uv:

pip install uv

Then install the required dependencies:

pip install crewai crewai-tools

(Optional) Lock the dependencies using the CLI command:

crewai install

Configuration

Before running the project, set up the necessary API keys:

cp .env_example .env

Add your API keys to the .env file:

  • OPENAI_API_KEY: Your API key for accessing OpenAI models
  • SERPER_API_KEY: Your API key for using the SerperDevTool

Enhanced Search Features

The project includes an advanced search tool with various Google search operators:

  • 🔍 Exact Phrase Matching: Search for exact phrases using quotation marks
  • 📄 File Type Filtering: Limit results to specific file types (PDF, DOC, etc.)
  • 🌐 Site-Specific Search: Search within specific websites or domains
  • 📝 Title Search: Search for keywords in page titles
  • 🔗 URL Search: Search for keywords in URLs
  • 📚 Text Content Search: Search for keywords in page content
  • 📅 Date Range Filtering: Filter results by date

Using the Enhanced Search

from latest_ai_development.tools.enhanced_search_tool import EnhancedSearchTool

# Create and configure the search tool
search_tool = EnhancedSearchTool()
search_config = search_tool.builder("your search topic")
    .with_file_type("pdf")
    .with_site("example.com")
    .with_date_range(after="2024-01-01")
search_tool.configure(search_config)

Search Configuration Options

Method Description Example
with_file_type() Filter by file extension .with_file_type("pdf")
with_site() Search within specific domain .with_site("example.com")
with_title() Search in page titles .with_title("guide")
with_url() Search in URLs .with_url("docs")
with_text() Search in page content .with_text("python")
with_date_range() Filter by date .with_date_range(before="2024-12-31")
with_exact_phrase() Enable exact matching .with_exact_phrase(True)

Project Customization

  • Modify src/latest_ai_development/config/agents.yaml to define your agents
  • Modify src/latest_ai_development/config/tasks.yaml to define your tasks
  • Modify src/latest_ai_development/crew.py to add your own logic and tools
  • Modify src/latest_ai_development/main.py to set the default_topic variable

Running the Project

Execute from the root folder:

$ crewai run

This will create a markdown file with research results on your specified topic.

Understanding Your Crew

The LatestAiDevelopment Crew consists of multiple AI agents collaborating on tasks. Each agent has unique roles and tools, defined in:

  • config/agents.yaml: Agent capabilities and configurations
  • config/tasks.yaml: Task definitions and dependencies

Search Best Practices

  1. Start Broad, Then Refine:

    config = search_tool.builder("AI ethics")
         .with_site("academic-journals.com")
         .with_file_type("pdf")
  2. Use Date Ranges Effectively:

    config.with_date_range(after="2024-01-01", before="2024-12-31")

Support

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.


LatestAiDevelopment Crew (Português Brasileiro)

Bem-vindo ao projeto LatestAiDevelopment Crew, desenvolvido com crewAI. Este projeto agora inclui capacidades avançadas de busca com operadores do Google.

Instalação

Certifique-se de ter o Python >=3.11 <3.13 instalado em seu sistema. Este projeto utiliza UV para gerenciamento de dependências.

Primeiro, se você ainda não instalou, instale o uv:

pip install uv

Em seguida, instale as dependências necessárias:

pip install crewai crewai-tools

(Opcional) Bloqueie as dependências usando o comando CLI:

crewai install

Configuração

Antes de executar o projeto, configure as chaves de API necessárias:

cp .env_example .env

Adicione suas chaves de API ao arquivo .env:

  • OPENAI_API_KEY: Sua chave de API para acessar os modelos OpenAI
  • SERPER_API_KEY: Sua chave de API para usar o SerperDevTool

Recursos de Busca Avançada

O projeto inclui uma ferramenta de busca avançada com vários operadores do Google:

  • 🔍 Correspondência Exata de Frases: Busca por frases exatas usando aspas
  • 📄 Filtro por Tipo de Arquivo: Limita resultados a tipos específicos (PDF, DOC, etc.)
  • 🌐 Busca em Sites Específicos: Pesquisa dentro de websites ou domínios específicos
  • 📝 Busca em Títulos: Pesquisa por palavras-chave em títulos de páginas
  • 🔗 Busca em URLs: Pesquisa por palavras-chave em URLs
  • 📚 Busca em Conteúdo: Pesquisa por palavras-chave no conteúdo das páginas
  • 📅 Filtro por Data: Filtra resultados por data

Usando a Busca Avançada.

from latest_ai_development.tools.enhanced_search_tool import EnhancedSearchTool

# Cria e configura a ferramenta de busca
search_tool = EnhancedSearchTool()
search_config = search_tool.builder("seu tópico de busca")
    .with_file_type("pdf")
    .with_site("example.com")
    .with_date_range(after="2024-01-01")
search_tool.configure(search_config)

Opções de Configuração de Busca

Método Descrição Exemplo
with_file_type() Filtra por extensão de arquivo .with_file_type("pdf")
with_site() Busca em domínio específico .with_site("example.com")
with_title() Busca em títulos .with_title("guia")
with_url() Busca em URLs .with_url("docs")
with_text() Busca no conteúdo .with_text("python")
with_date_range() Filtra por data .with_date_range(before="2024-12-31")
with_exact_phrase() Ativa correspondência exata .with_exact_phrase(True)

Personalização do Projeto

  • Modifique src/latest_ai_development/config/agents.yaml para definir seus agentes
  • Modifique src/latest_ai_development/config/tasks.yaml para definir suas tarefas
  • Modifique src/latest_ai_development/crew.py para adicionar sua própria lógica
  • Modifique src/latest_ai_development/main.py para definir a variável default_topic

Executando o Projeto

Execute a partir da pasta raiz:

$ crewai run

Isso criará um arquivo markdown com os resultados da pesquisa sobre o tópico especificado.

Entendendo Sua Crew

A LatestAiDevelopment Crew consiste em múltiplos agentes de IA colaborando em tarefas. Cada agente tem funções e ferramentas únicas, definidas em:

  • config/agents.yaml: Capacidades e configurações dos agentes
  • config/tasks.yaml: Definições e dependências das tarefas

Melhores Práticas de Busca

  1. Comece Amplo, Depois Refine:

    config = search_tool.builder("ética em IA")
         .with_site("journals-academicos.com")
         .with_file_type("pdf")
  2. Use Intervalos de Data Efetivamente:

    config.with_date_range(after="2024-01-01", before="2024-12-31")

Suporte

Contribuindo

Contribuições são bem-vindas! Sinta-se à vontade para enviar issues e pull requests.

Licença

Este projeto está licenciado sob a Licença MIT - veja o arquivo LICENSE para detalhes.

About

Welcome to the LatestAiDevelopment Crew project, powered by crewAI. This template is designed to help you set up a multi-agent AI system with ease, leveraging the powerful and flexible framework provided by crewAI. Our goal is to enable your agents to collaborate effectively on complex tasks, maximizing their collective intelligence and capabilitie

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published