Total session time
The following code measures the time between the beginning of the session and immediately after the Installing the environment section:
end_time = time.time() - session_start_time # Measure response time
print(f"Session preparation time: {response_time:.2f} seconds") # Print response time
The output can have two meanings:
- It can measure the time we worked on the preparation of the dynamic RAG scenario with the daily dataset for the Chroma collection, querying, and summarizing by Llama.
- It can measure the time it took to run the whole notebook without intervening at all.
In this case, the session time is the result of a full run with no human intervention:
Session preparation time: 780.35 seconds
The whole process takes less than 15 minutes, which fits the constraints of the preparation time in a dynamic RAG scenario. It leaves room for a few runs to tweak the system before the meeting. With that, we have successfully...