Merchent Data API

This repository contains an experimental API for LangChain, integrating OpenAI's language model for advanced linguistic applications. The API is built using Flask and leverages the capabilities of both LangChain and OpenAI.

Installation

To set up the project, follow these steps:

Install required Python packages using pip:

pip install langchain_experimental==0.0.49 langchain_openai pandas flask tabulate python-dotenv

Create a .env file in the project root directory and set your OpenAI API key:

OPENAI_API_KEY=sk-...

Set up a virtual environment named api-venv:

python -m venv api-venv

Activate venv:

api-venv\Scripts\Activate.ps1

Run the API using the following command:

python app.py

This will start the Flask server, and the API will be accessible at http://localhost:5000.