Install UpTrain and LlamaIndex
Import required libraries
Setup UpTrain Open-Source Software (OSS)
key_type
=“openai”api_key
=“OPENAI_API_KEY”project_name_prefix
=“PROJECT_NAME_PREFIX”Load and Parse Documents
Re-ranking
Re-ranking (With same number of nodes)
If the number of nodes returned after re-ranking is the same as the original number of nodes, the following evaluation will be performed:Re-ranking (With different number of nodes)
If the number of nodes returned after re-ranking is the lesser as the original number of nodes, the following evaluation will be performed: