Follow these steps to properly set up and run the Colab notebook:
Before running the Colab notebook, replace the existing file located at:
/usr/local/lib/python3.11/dist-packages/pathway/xpacks/llm/vector_store.pywith the provided vector_store.py file.
Upload the following files to the Colab environment:
app_jina.pyapp_raptor.py
Create a folder named JINA inside the /content directory:
mkdir /content/JINAUpload all necessary files required for question-answering into this folder.
Run the notebook from the beginning, executing each cell one by one.
- There is a separate example section for Interleaving and Raptor.
- If needed, you can execute these example cells. Otherwise, you may skip them.
Before creating the vector store or retriever, ensure that app_jina.py is running in the terminal:
python app_jina.pyWhenever the Interleaving agent is retrieving, make sure app_raptor.py is running in the terminal:
python app_raptor.pyThis ensures the required services are available while executing the notebook.
Following these steps will ensure smooth execution of the Colab notebook with proper file dependencies.