Daniel Marques commited on
Commit
f65a4f6
1 Parent(s): 1427f9d

feat: add websocket

Browse files
Files changed (1) hide show
  1. main.py +2 -2
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 = DB.as_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 = DB.as_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,