Update handler.py
Browse files- handler.py +2 -6
handler.py
CHANGED
@@ -46,17 +46,13 @@ MARKDOWN_SEPARATORS = [
|
|
46 |
|
47 |
class EndpointHandler():
|
48 |
|
49 |
-
def __init__(self, path=""):
|
50 |
-
# Config LangChain
|
51 |
-
os.environ["LANGCHAIN_TRACING_V2"] = "true"
|
52 |
-
os.environ["LANGCHAIN_API_KEY"] = "ls__9834e6b2ff094d43a28418c9ecea2fd5"
|
53 |
-
|
54 |
# Load Vector db
|
55 |
urls = [
|
56 |
"https://scholars.cityu.edu.hk/en/persons/man-hon-michael-cheung(0f913a96-a28d-47ea-848c-f444804c16f2).html",
|
57 |
"https://scholars.cityu.edu.hk/en/persons/man-hon-michael-cheung(0f913a96-a28d-47ea-848c-f444804c16f2)/publications.html",
|
58 |
"https://www.cityu.edu.hk/media/press-release/2022/05/17/cityu-council-announces-appointment-professor-freddy-boey-next-president",
|
59 |
-
"https://www.cityu.edu.hk/media/press-release/2023/05/18/professor-freddy-boey-installed-5th-president-cityu"
|
60 |
]
|
61 |
|
62 |
loader = WebBaseLoader(urls)
|
|
|
46 |
|
47 |
class EndpointHandler():
|
48 |
|
49 |
+
def __init__(self, path=""):
|
|
|
|
|
|
|
|
|
50 |
# Load Vector db
|
51 |
urls = [
|
52 |
"https://scholars.cityu.edu.hk/en/persons/man-hon-michael-cheung(0f913a96-a28d-47ea-848c-f444804c16f2).html",
|
53 |
"https://scholars.cityu.edu.hk/en/persons/man-hon-michael-cheung(0f913a96-a28d-47ea-848c-f444804c16f2)/publications.html",
|
54 |
"https://www.cityu.edu.hk/media/press-release/2022/05/17/cityu-council-announces-appointment-professor-freddy-boey-next-president",
|
55 |
+
"https://www.cityu.edu.hk/media/press-release/2023/05/18/professor-freddy-boey-installed-5th-president-cityu"
|
56 |
]
|
57 |
|
58 |
loader = WebBaseLoader(urls)
|