Skip to content

Commit

Permalink
refactor: replace user_id with workspace_id in Brain class
Browse files Browse the repository at this point in the history
  • Loading branch information
StanGirard committed Feb 10, 2025
1 parent ee9b7a5 commit 6ba78e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/quivr_core/brain/brain.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ def __init__(
vector_db: VectorStore | None = None,
embedder: Embeddings | None = None,
storage: StorageBase | None = None,
user_id: UUID | None = None,
workspace_id: int | None = None,
chat_id: UUID | None = None,
):
self.id = id
self.name = name
self.storage = storage
self.user_id = user_id
self.workspace_id = workspace_id
self.chat_id = chat_id
# Chat history
self._chats = self._init_chats()
Expand Down Expand Up @@ -539,7 +539,7 @@ async def ask_streaming(

full_answer = ""
metadata = {
"langfuse_user_id": str(self.user_id),
"langfuse_user_id": str(self.workspace_id),
"langfuse_session_id": str(self.chat_id),
}
async for response in rag_instance.answer_astream(
Expand Down

0 comments on commit 6ba78e7

Please sign in to comment.