You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-3Lines changed: 25 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
# Competitor Analysis
2
2
3
-
This repository contains a system for analyzing competitors using data from various sources like Google, Wikipedia, and Reddit. It dynamically generates SWOT analyses and PDF reports using advanced AI-driven techniques.
3
+
This repository contains a system for analyzing competitors using data from various sources like Google, Wikipedia, LinkedIn and Reddit. It dynamically generates SWOT analyses and PDF reports using advanced AI-driven techniques.
4
4
5
5
## Features
6
6
7
7
-**Multi-Source Data Integration**:
8
-
Aggregates data from Google Search, Wikipedia, and Reddit.
8
+
Aggregates data from Google Search, Wikipedia, LinkedIn and Reddit.
9
9
-**AI-Driven SWOT Analysis**:
10
10
Uses state-of-the-art LLMs (e.g., [Llama-2](https://github.com/FardinHash/competitor-analysis/tree/llama2), [Gemma 2](https://github.com/FardinHash/competitor-analysis/tree/gemma-27b)) to extract insights and generate SWOT analyses.
11
11
-**Automated PDF Reporting**:
@@ -15,6 +15,17 @@ This repository contains a system for analyzing competitors using data from vari
15
15
16
16
---
17
17
18
+
## Architecture
19
+
20
+
The system follows a modular, multi-agent architecture:
21
+
1.**Data Retrieval Agent**: Aggregates data from multiple external sources.
22
+
2.**NLP Processing Agent**: Normalizes and preprocesses raw data for downstream tasks.
23
+
3.**SWOT Analysis Agent**: Uses an LLM to generate Strengths, Weaknesses, Opportunities, and Threats.
24
+
4.**Report Generator**: Creates a polished PDF report for the final analysis.
25
+
5.**Orchestrator**: Manages the workflow between agents.
26
+
27
+
---
28
+
18
29
## Setup
19
30
20
31
### 1. Clone the Repository
@@ -33,6 +44,17 @@ source venv/bin/activate # On Windows: .\venv\Scripts\activate
33
44
```bash
34
45
pip install -r requirements.txt
35
46
```
47
+
48
+
#### 4. Set Up Environment Variables
49
+
Create a `.env` file in the root directory and populate it with the following variables:
50
+
```env
51
+
OPENAI_API_KEY=your-openai-api-key
52
+
CRUNCHBASE_API_KEY=your-crunchbase-api-key
53
+
REDDIT_CLIENT_ID=your-reddit-client-id
54
+
REDDIT_CLIENT_SECRET=your-reddit-client-secret
55
+
REDDIT_USER_AGENT=your-reddit-user-agent
56
+
HUGGINGFACE_HUB_TOKEN=your-huggingface-hub-token
57
+
```
36
58
---
37
59
38
60
## Usage
@@ -50,7 +72,7 @@ python src/main.py
50
72
51
73
---
52
74
53
-
## Test Cases
75
+
## Test Cases (Development)
54
76
55
77
To ensure the system works as expected, use the following example test cases:
0 commit comments