from main import run_query from utils.general_utils import timeit @timeit def test_with_llm_video(): db_path = "data/single_video.db" question = "What are the components of an LLM?" print("Question: ", question) answer = run_query(question, db_path=db_path ) print("Answer: ", answer) @timeit def test_with_subset(): db_path = "data/videos_subset_more_context.db" question = "How should I train for anerobic capacity?" print("Question: ", question) answer = run_query(question, db_path=db_path, num_rel_segments=10, llm_model="gpt-3.5-turbo-0125", llm_temp=0.1 ) print("Answer: ", answer) @timeit def test_with_fullset(): db_path = "data/videos.db" question = "How should I train for anerobic capacity?" print("Question: ", question) answer = run_query(question, db_path=db_path, num_rel_segments=10, llm_model="gpt-3.5-turbo-0125", llm_temp=0.1 ) print("Answer: ", answer) if __name__ == '__main__': choice = input("Test with:\n1. fullset\n2. subset\n3. LLM video\nEnter option number: ") if choice == "1": test_with_fullset() elif choice == "2": test_with_subset() elif choice == "3": test_with_llm_video() else: print("Invalid choice") exit(1)