[KDD'2026] "VideoRAG: Chat with Your Videos"
Python large-language-modelsllmslong-video-understandingmulti-modal-llmsragretrieval-augmented-generation
Update the jupyter notebook
Gerald Hewesd245ea35a833
diff --git a/notesbooks/videorag.ipynb b/notesbooks/videorag.ipynbindex 582e9b1..5920236 100644--- a/notesbooks/videorag.ipynb+++ b/notesbooks/videorag.ipynb@@ -19,10 +19,8 @@"logging.getLogger(\"httpx\").setLevel(logging.WARNING)\n","os.environ[\"CUDA_VISIBLE_DEVICES\"] = '0'\n","\n",- "from videorag._llm import *\n",- "from videorag import VideoRAG, QueryParam\n",- "\n",- "\n"+ "from videorag._llm import openai_config, azure_openai_config, ollama_config\n",+ "from videorag import VideoRAG, QueryParam\n"]},{@@ -47,6 +45,16 @@"multiprocessing.set_start_method('spawn')"]},+ {+ "cell_type": "code",+ "execution_count": null,+ "id": "62f20b71-3ae4-4db9-9023-cdba818ef5e8",+ "metadata": {},+ "outputs": [],+ "source": [+ "videorag = VideoRAG(llm=ollama_config, working_dir=f\"./videorag-workdir/lexington\")"+ ]+ },{"cell_type": "code","execution_count": null,@@ -54,7 +62,7 @@"metadata": {},"outputs": [],"source": [- "videorag = VideoRAG(cheap_model_func=ollama_mini_complete, best_model_func=ollama_complete, working_dir=f\"./videorag-workdir/lexington\")\n",+ "# To build\n","videorag.insert_video(video_path_list=video_paths)"]},@@ -65,6 +73,7 @@"metadata": {},"outputs": [],"source": [+ "# To query\n","videorag.load_caption_model(debug=False)\n","param = QueryParam(mode=\"videorag\")"]@@ -76,7 +85,7 @@"metadata": {},"outputs": [],"source": [- "query = \"Can you summarize this video?\"\n",+ "query = \"What are the Lexington school construction options\"\n","param.wo_reference = False\n","response = videorag.query(query=query, param=param)\n","print(response)"