Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -40,7 +40,7 @@ with open("src/sermons_tgp/kv_store_text_chunks_with_timestamps.json", "r", enco
|
|
| 40 |
# ---------------------- Streamlit UI ----------------------
|
| 41 |
|
| 42 |
async def main():
|
| 43 |
-
st.title("LightRAG: Sermons Video Chat Bot
|
| 44 |
|
| 45 |
# Safe initialization of LightRAG (without saving to session_state)
|
| 46 |
rag = LightRAG(
|
|
@@ -83,7 +83,7 @@ async def main():
|
|
| 83 |
st.session_state.messages.append({"role": "assistant", "content": answer})
|
| 84 |
|
| 85 |
# Source search
|
| 86 |
-
dc_chunks = extract_dc_chunks(context_chunks)
|
| 87 |
matched_sources = find_matches(dc_chunks, FULL_CHUNKS_DICT)
|
| 88 |
if matched_sources:
|
| 89 |
sources_md = "#### 📚 Sources:\n" + "\n".join(
|
|
|
|
| 40 |
# ---------------------- Streamlit UI ----------------------
|
| 41 |
|
| 42 |
async def main():
|
| 43 |
+
st.title("LightRAG: Sermons Video Chat Bot TGP")
|
| 44 |
|
| 45 |
# Safe initialization of LightRAG (without saving to session_state)
|
| 46 |
rag = LightRAG(
|
|
|
|
| 83 |
st.session_state.messages.append({"role": "assistant", "content": answer})
|
| 84 |
|
| 85 |
# Source search
|
| 86 |
+
dc_chunks = extract_dc_chunks(context_chunks)[:3]
|
| 87 |
matched_sources = find_matches(dc_chunks, FULL_CHUNKS_DICT)
|
| 88 |
if matched_sources:
|
| 89 |
sources_md = "#### 📚 Sources:\n" + "\n".join(
|