[KDD'2026] "VideoRAG: Chat with Your Videos"
Python large-language-modelsllmslong-video-understandingmulti-modal-llmsragretrieval-augmented-generation
fix retry position
Re-bind9f4897d3f16
diff --git a/videorag/_llm.py b/videorag/_llm.pyindex b164b17..a8ff0df 100755--- a/videorag/_llm.py+++ b/videorag/_llm.py@@ -40,12 +40,6 @@ def get_ollama_async_client_instance():global_ollama_client = AsyncClient() # Adjust base URL if necessaryreturn global_ollama_client-@retry(- stop=stop_after_attempt(5),- wait=wait_exponential(multiplier=1, min=4, max=10),- retry=retry_if_exception_type((RateLimitError, APIConnectionError)),-)-# Setup LLM Configuration.@dataclassclass LLMConfig:@@ -89,6 +83,11 @@ class LLMConfig:)##### OpenAI Configuration+@retry(+ stop=stop_after_attempt(5),+ wait=wait_exponential(multiplier=1, min=4, max=10),+ retry=retry_if_exception_type((RateLimitError, APIConnectionError)),+)async def openai_complete_if_cache(model, prompt, system_prompt=None, history_messages=[], **kwargs) -> str: