Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,6 @@ from langgraph.graph.message import add_messages
|
|
11 |
from typing_extensions import TypedDict, Annotated
|
12 |
from typing import Sequence
|
13 |
import chromadb
|
14 |
-
from chromadb.config import Settings
|
15 |
import re
|
16 |
import os
|
17 |
import streamlit as st
|
@@ -22,15 +21,9 @@ from langchain.tools.retriever import create_retriever_tool
|
|
22 |
os.makedirs("chroma_db", exist_ok=True)
|
23 |
|
24 |
# ------------------------------
|
25 |
-
# ChromaDB Client Configuration
|
26 |
# ------------------------------
|
27 |
-
chroma_client = chromadb.
|
28 |
-
Settings(
|
29 |
-
chroma_db_impl="duckdb+parquet",
|
30 |
-
persist_directory="chroma_db",
|
31 |
-
anonymized_telemetry=False
|
32 |
-
)
|
33 |
-
)
|
34 |
|
35 |
# ------------------------------
|
36 |
# Dummy Data: Research & Development Texts
|
|
|
11 |
from typing_extensions import TypedDict, Annotated
|
12 |
from typing import Sequence
|
13 |
import chromadb
|
|
|
14 |
import re
|
15 |
import os
|
16 |
import streamlit as st
|
|
|
21 |
os.makedirs("chroma_db", exist_ok=True)
|
22 |
|
23 |
# ------------------------------
|
24 |
+
# ChromaDB Client Configuration (Updated)
|
25 |
# ------------------------------
|
26 |
+
chroma_client = chromadb.PersistentClient(path="chroma_db")
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
# ------------------------------
|
29 |
# Dummy Data: Research & Development Texts
|