sync
Browse files- .gitignore +2 -1
- README.md +41 -7
- __pycache__/config.cpython-310.pyc +0 -0
.gitignore
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
.env
|
2 |
-
.conda
|
|
|
|
1 |
.env
|
2 |
+
.conda
|
3 |
+
__pycache__
|
README.md
CHANGED
@@ -11,7 +11,7 @@ license: cc-by-nc-nd-4.0
|
|
11 |
---
|
12 |
# CrewAI Research Tool
|
13 |
|
14 |
-
Welcome to the CrewAI Research Tool on Hugging Face Spaces! This tool employs a combination of Gradio, Cohere, CrewAI, and
|
15 |
|
16 |
## Description
|
17 |
|
@@ -20,22 +20,56 @@ The CrewAI Research Tool leverages advanced AI capabilities to gather, analyze,
|
|
20 |
## Features
|
21 |
|
22 |
- **Web Search Automation**: Utilizes the DuckDuckGo search engine to perform web searches and gather detailed results related to specified topics.
|
23 |
-
- **Data Extraction and Summarization**: Employs web scraping tools and
|
24 |
- **Detailed Report Generation**: Automated agents, defined as 'Researcher' and 'Editor', work sequentially to craft detailed and polished reports based on web findings.
|
25 |
- **Interactive Gradio Interface**: Users can input their research topic directly into the Gradio interface and initiate the research process with a simple button click.
|
26 |
|
27 |
## Tools and Technologies
|
28 |
|
29 |
- **CrewAI**: Integrates agents with specific roles and tasks to automate complex workflows.
|
30 |
-
- **
|
31 |
-
- **Cohere**: Uses advanced NLP models for generating summaries and text analysis.
|
32 |
- **Gradio**: Provides an interactive web interface to facilitate easy user interaction with the CrewAI system.
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
## How to Use
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
## Contributions and Feedback
|
41 |
|
|
|
11 |
---
|
12 |
# CrewAI Research Tool
|
13 |
|
14 |
+
Welcome to the CrewAI Research Tool on Hugging Face Spaces! This tool employs a combination of Gradio, Cohere, CrewAI, and Azure / OpenAI technologies to automate and streamline the process of online research, compiling reports, and extracting data through web crawling.
|
15 |
|
16 |
## Description
|
17 |
|
|
|
20 |
## Features
|
21 |
|
22 |
- **Web Search Automation**: Utilizes the DuckDuckGo search engine to perform web searches and gather detailed results related to specified topics.
|
23 |
+
- **Data Extraction and Summarization**: Employs web scraping tools and LLMs to extract and summarize web content.
|
24 |
- **Detailed Report Generation**: Automated agents, defined as 'Researcher' and 'Editor', work sequentially to craft detailed and polished reports based on web findings.
|
25 |
- **Interactive Gradio Interface**: Users can input their research topic directly into the Gradio interface and initiate the research process with a simple button click.
|
26 |
|
27 |
## Tools and Technologies
|
28 |
|
29 |
- **CrewAI**: Integrates agents with specific roles and tasks to automate complex workflows.
|
30 |
+
- **OpenAI, Azure OpenAI Services and Groq**: Employs large language models for deep understanding and generation of content.
|
|
|
31 |
- **Gradio**: Provides an interactive web interface to facilitate easy user interaction with the CrewAI system.
|
32 |
|
33 |
+
## Utility Functions
|
34 |
+
• setup_logging(): Configures logging to output messages to the console.
|
35 |
+
• export_to_markdown(result): Saves the generated report to a Markdown file.
|
36 |
+
• fetch_content(url): Retrieves content from a given URL, handling both PDFs and standard web articles.
|
37 |
+
|
38 |
+
## Tools
|
39 |
+
|
40 |
+
Custom tools are defined to extend the capabilities of the AI agents:
|
41 |
+
• search_results(search_query: str) -> list: Performs a web search using DuckDuckGo and returns a list of results.
|
42 |
+
• web_scrapper(url: str, topic: str) -> str: Extracts and summarizes content from a specified URL related to a given topic.
|
43 |
+
|
44 |
+
## AI Agents and Tasks
|
45 |
+
|
46 |
+
The application defines two primary agents:
|
47 |
+
1. Researcher: Gathers detailed information on a specified topic using web search and scraping tools.
|
48 |
+
2. Editor: Compiles and refines the gathered information into a comprehensive report.
|
49 |
+
|
50 |
+
Tasks are assigned to these agents to guide their actions:
|
51 |
+
• research_task: Instructs the Researcher to collect and draft information on the topic.
|
52 |
+
• edit_task: Instructs the Editor to refine the draft into a polished report.
|
53 |
+
|
54 |
+
## Crew Orchestration
|
55 |
+
|
56 |
+
The Crew class coordinates the agents and tasks, managing their execution order and interactions.
|
57 |
+
|
58 |
## How to Use
|
59 |
|
60 |
+
The user interface is built using Gradio, providing interactive elements for user input and displaying results.
|
61 |
+
• Model Selection: Users can choose between different AI models (Azure, OpenAI, Groq-Cohere).
|
62 |
+
• API Key Inputs: Depending on the selected model, relevant API key fields are displayed for user input.
|
63 |
+
• Topic Input: Users enter the research topic they are interested in.
|
64 |
+
• Buttons: ‘Start Research’ initiates the process, and ‘Export to Markdown’ allows users to save the report.
|
65 |
+
|
66 |
+
How to Use the Interface:
|
67 |
+
1. Select a Model: Choose the AI model you wish to use from the ‘Choose Model’ radio buttons.
|
68 |
+
2. Enter API Keys: Depending on the selected model, input the required API keys in the provided fields.
|
69 |
+
3. Enter a Topic: Type the research topic into the ‘Enter Topic’ textbox.
|
70 |
+
4. Start Research: Click the ‘Start Research’ button to initiate the automated research process.
|
71 |
+
5. View Results: The generated report will appear in the ‘Result’ section.
|
72 |
+
6. Export Report: To save the report, click the ‘Export to Markdown’ button and download the file.
|
73 |
|
74 |
## Contributions and Feedback
|
75 |
|
__pycache__/config.cpython-310.pyc
DELETED
Binary file (458 Bytes)
|
|