gabrielaltay commited on
Commit
2681dfc
·
1 Parent(s): 817a769

move import os to top

Browse files
src/legisqa_local/core/vectorstore.py CHANGED
@@ -1,6 +1,7 @@
1
  """Vector store operations for LegisQA"""
2
 
3
  import logging
 
4
  import streamlit as st
5
  from langchain_chroma import Chroma
6
  from legisqa_local.core.embeddings import load_embeddings
@@ -30,7 +31,6 @@ def load_vectorstore():
30
  logger.info(f" {key}={value}")
31
 
32
  # Check if the directory actually exists
33
- import os
34
  if not os.path.exists(config["persist_directory"]):
35
  logger.error(f"❌ ChromaDB directory does not exist: {config['persist_directory']}")
36
  # Try to find the correct path
 
1
  """Vector store operations for LegisQA"""
2
 
3
  import logging
4
+ import os
5
  import streamlit as st
6
  from langchain_chroma import Chroma
7
  from legisqa_local.core.embeddings import load_embeddings
 
31
  logger.info(f" {key}={value}")
32
 
33
  # Check if the directory actually exists
 
34
  if not os.path.exists(config["persist_directory"]):
35
  logger.error(f"❌ ChromaDB directory does not exist: {config['persist_directory']}")
36
  # Try to find the correct path