ashish-ninehertz commited on
Commit
66b557a
·
1 Parent(s): 529b5b5

final changes

Browse files
Files changed (1) hide show
  1. src/main.py +3 -2
src/main.py CHANGED
@@ -294,7 +294,7 @@ class RAGSystem:
294
  def __init__(self):
295
  self.session_manager = SessionManager()
296
  self.crawler = WebCrawler()
297
- self.llm = OllamaLLM(base_url="http://localhost:11434", model="mistral")
298
 
299
  def crawl_and_index(self, session_id: str, start_url: str) -> Dict[str, Any]:
300
  """Crawl website and index content in Qdrant"""
@@ -358,8 +358,9 @@ class RAGSystem:
358
 
359
  # Select appropriate LLM
360
  if model == "mistral" and ollama_url:
361
- self.llm = OllamaLLM(base_url=ollama_url, model="mistral")
362
  elif model == "gemini" and gemini_api_key:
 
363
  self.llm = GeminiProvider()
364
 
365
  # Process the query
 
294
  def __init__(self):
295
  self.session_manager = SessionManager()
296
  self.crawler = WebCrawler()
297
+ self.llm = Ollama(base_url="http://localhost:11434", model="mistral")
298
 
299
  def crawl_and_index(self, session_id: str, start_url: str) -> Dict[str, Any]:
300
  """Crawl website and index content in Qdrant"""
 
358
 
359
  # Select appropriate LLM
360
  if model == "mistral" and ollama_url:
361
+ self.llm = Ollama(base_url=ollama_url, model="mistral")
362
  elif model == "gemini" and gemini_api_key:
363
+ from src.llm import GeminiProvider
364
  self.llm = GeminiProvider()
365
 
366
  # Process the query