English | Português Brasileiro
Welcome to the LatestAiDevelopment Crew project, powered by crewAI. This project now includes enhanced search capabilities with advanced Google search operators.
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
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 modelsSERPER_API_KEY
: Your API key for using the SerperDevTool
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
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)
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) |
- 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 thedefault_topic
variable
Execute from the root folder:
$ crewai run
This will create a markdown file with research results on your specified topic.
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 configurationsconfig/tasks.yaml
: Task definitions and dependencies
-
Start Broad, Then Refine:
config = search_tool.builder("AI ethics") .with_site("academic-journals.com") .with_file_type("pdf")
-
Use Date Ranges Effectively:
config.with_date_range(after="2024-01-01", before="2024-12-31")
- Visit our documentation
- Join our Discord
- Check our GitHub repository
Contributions are welcome! Please feel free to submit issues and pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
Bem-vindo ao projeto LatestAiDevelopment Crew, desenvolvido com crewAI. Este projeto agora inclui capacidades avançadas de busca com operadores do Google.
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
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 OpenAISERPER_API_KEY
: Sua chave de API para usar o SerperDevTool
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
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)
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) |
- 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áveldefault_topic
Execute a partir da pasta raiz:
$ crewai run
Isso criará um arquivo markdown com os resultados da pesquisa sobre o tópico especificado.
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 agentesconfig/tasks.yaml
: Definições e dependências das tarefas
-
Comece Amplo, Depois Refine:
config = search_tool.builder("ética em IA") .with_site("journals-academicos.com") .with_file_type("pdf")
-
Use Intervalos de Data Efetivamente:
config.with_date_range(after="2024-01-01", before="2024-12-31")
- Visite nossa documentação
- Entre no nosso Discord
- Confira nosso repositório GitHub
Contribuições são bem-vindas! Sinta-se à vontade para enviar issues e pull requests.
Este projeto está licenciado sob a Licença MIT - veja o arquivo LICENSE para detalhes.