Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,7 +30,6 @@ rag_llm.verbose = True
|
|
| 30 |
# Clear ChromaDB cache to fix tenant issue
|
| 31 |
chromadb.api.client.SharedSystemClient.clear_system_cache()
|
| 32 |
|
| 33 |
-
# st.title("Blah")
|
| 34 |
|
| 35 |
# ----------------- ChromaDB Persistent Directory -----------------
|
| 36 |
CHROMA_DB_DIR = "/mnt/data/chroma_db"
|
|
@@ -48,7 +47,7 @@ if "processed_chunks" not in st.session_state:
|
|
| 48 |
if "vector_store" not in st.session_state:
|
| 49 |
st.session_state.vector_store = None
|
| 50 |
|
| 51 |
-
|
| 52 |
# ----------------- Metadata Extraction -----------------
|
| 53 |
def extract_metadata_llm(pdf_path):
|
| 54 |
"""Extracts metadata using LLM instead of regex and logs progress in Streamlit UI."""
|
|
|
|
| 30 |
# Clear ChromaDB cache to fix tenant issue
|
| 31 |
chromadb.api.client.SharedSystemClient.clear_system_cache()
|
| 32 |
|
|
|
|
| 33 |
|
| 34 |
# ----------------- ChromaDB Persistent Directory -----------------
|
| 35 |
CHROMA_DB_DIR = "/mnt/data/chroma_db"
|
|
|
|
| 47 |
if "vector_store" not in st.session_state:
|
| 48 |
st.session_state.vector_store = None
|
| 49 |
|
| 50 |
+
|
| 51 |
# ----------------- Metadata Extraction -----------------
|
| 52 |
def extract_metadata_llm(pdf_path):
|
| 53 |
"""Extracts metadata using LLM instead of regex and logs progress in Streamlit UI."""
|