Make sure python3-venv is in your machine
sudo apt install python3-venvMake a python virtual environment with the following command:
python3 -m venv .venvactivate the environment
source .venv/bin/activateInstall the required packages with the following command:
pip install -r requirements.txtTo run the backend server, use the following command:
uvicorn app.main:app --reloadThe app will start:
http://127.0.0.1:8000/-
at first we parse down the entire pdf in batch (we get an array of json each contaning page number and page content)
-
then
-
our graph nodes = our vectors
-
each node is a standalone information point
-
we generate metadata for each node
-
Embed (metadata + node content)
-
we retriece candidates as node's parent
-
either we define a new relationship between 2 newly made nodes
-
or link up with an old one
-
node and vector points share