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.
-
Clone the repository:
git clone https://github.com/younis-ali/market-research-agent.git
-
Setup environment
python3 -m venv .venv source .venv/bin/activate pip install --upgrade pip setup OPEN_AI_KEY as enivironment variable
-
Install the required dependencies:
pip install -r requirements.txt
-
Locate
/resources/config.json
and setup postgress database configuration."host": "your_host" "port": "your_port" "database": "your_database" "user": "your_username" "password": "your_password"
-
What is in database and its purpose?. The schema of the
orginization
relation isorganization (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 comapnysector
to get the compitators using openAI text generation.
- Execute the command
uvicorn main:app --port 8001
- Visit
http://127.0.0.1:8001/
- Integration with external databases.
- Use langchain for prompt engineering.
- Integration with ERP Systems