/Chat-with-your-Image-data-using-using-LangChain

Chat with your Image data using using LangChain Framework

Primary LanguagePython

Chat with your Image data using using LangChain Framework.

System Setup:

Step 1. Create a virtual environment

conda create -p myenv python=3.9 -y

step 2. Activate the environment:

conda activate myenv/

step 3. Install all the requirements:

pip install -r requirements.txt

step 4. start writing the code, with standard file name as main.py

Flow

image

High Level Architecture

image

Steps:

  1. Upload the Image
  2. Extract the content from the Image using easyocr (this is a python Library)
  3. Extract the text into raw text variable
  4. Split content into Chunk
  5. Do Embeddings of the data (Download embeddings from the OpenAI)
  6. Store Data into Vector Store (eg: FAISS)
  7. User can pass a Prompt
  8. Get the Output.

Output