Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/younis-ali/market-research-agent
Market Research Agent app, with a focus on opposition research (competitor analysis).
https://github.com/younis-ali/market-research-agent
fastapi jinja2-templates openai postgressql
Last synced: about 2 months ago
JSON representation
Market Research Agent app, with a focus on opposition research (competitor analysis).
- Host: GitHub
- URL: https://github.com/younis-ali/market-research-agent
- Owner: younis-ali
- License: mit
- Created: 2024-02-20T11:08:15.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-03-21T10:28:06.000Z (11 months ago)
- Last Synced: 2024-11-01T13:05:36.368Z (3 months ago)
- Topics: fastapi, jinja2-templates, openai, postgressql
- Language: Python
- Homepage:
- Size: 56.6 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Market Compitator Analysis
The Market Compitator Research Analysis uses fastAPI and leverages openAI to get the compitators of perticular company based on the sector it belongs.
We use fastAPI to doploy the apis and postgress sql to store the database. We initilally store some records of some dummy companies into a relation, then uses the information to promt openAI model to get the compitators based on sector and address information.
## Installation1. Clone the repository:
```bash
git clone https://github.com/younis-ali/market-research-agent.git2. Setup environment
```bash
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
setup OPEN_AI_KEY as enivironment variable3. Install the required dependencies:
```bash
pip install -r requirements.txt4. Locate `/resources/config.json` and setup postgress database configuration.
```bash
"host": "your_host"
"port": "your_port"
"database": "your_database"
"user": "your_username"
"password": "your_password"5. What is in database and its purpose?.
The schema of the `orginization` relation is
`organization (id SERIAL PRIMARY KEY, name VARCHAR(255), sector VARCHAR(255), address TEXT)`.
We are using this relation to store the companies. Later we are using the comapny `sector` to get the compitators using openAI text generation.## Usage
1. Execute the command
1. `uvicorn main:app --port 8001`
2. Visit `http://127.0.0.1:8001/`## Future Scope
1. Integration with external databases.
2. Use langchain for prompt engineering.
3. Integration with ERP Systems## Screen Shots
1. Database snapshots
![image](https://github.com/younis-ali/market-research-agent/assets/32736581/a08a86a1-9c17-4d61-9c8f-9608cdf764cf)2. User Interface
![alt text]()
![image](https://github.com/younis-ali/market-research-agent/assets/32736581/e8390c5f-119d-4ff1-8b4b-f3308684b53b)