Spaces:
Paused
Paused
Daniel Marques
commited on
Commit
•
f65a4f6
1
Parent(s):
1427f9d
feat: add websocket
Browse files
main.py
CHANGED
@@ -220,7 +220,7 @@ async def websocket_endpoint_student(websocket: WebSocket, user_id: str):
|
|
220 |
client_settings=CHROMA_SETTINGS,
|
221 |
)
|
222 |
|
223 |
-
RETRIEVER =
|
224 |
|
225 |
QA = RetrievalQA.from_chain_type(
|
226 |
llm=LLM,
|
@@ -267,7 +267,7 @@ async def websocket_endpoint_room(websocket: WebSocket, room_id: str, user_id: s
|
|
267 |
client_settings=CHROMA_SETTINGS,
|
268 |
)
|
269 |
|
270 |
-
RETRIEVER =
|
271 |
|
272 |
QA = RetrievalQA.from_chain_type(
|
273 |
llm=LLM,
|
|
|
220 |
client_settings=CHROMA_SETTINGS,
|
221 |
)
|
222 |
|
223 |
+
RETRIEVER = DB_USER.as_retriever()
|
224 |
|
225 |
QA = RetrievalQA.from_chain_type(
|
226 |
llm=LLM,
|
|
|
267 |
client_settings=CHROMA_SETTINGS,
|
268 |
)
|
269 |
|
270 |
+
RETRIEVER = DB_ROOM.as_retriever()
|
271 |
|
272 |
QA = RetrievalQA.from_chain_type(
|
273 |
llm=LLM,
|