mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 20:08:36 +02:00
Fix bypass_acl support for Slack bot
This commit is contained in:
parent
4b0ff95b26
commit
03105ad551
@ -174,6 +174,7 @@ def stream_answer_objects(
|
||||
prompt_config=prompt_config,
|
||||
llm=llm,
|
||||
pruning_config=document_pruning_config,
|
||||
bypass_acl=bypass_acl,
|
||||
)
|
||||
|
||||
answer_config = AnswerStyleConfig(
|
||||
|
@ -70,6 +70,7 @@ class SearchTool(Tool):
|
||||
chunks_above: int = 0,
|
||||
chunks_below: int = 0,
|
||||
full_doc: bool = False,
|
||||
bypass_acl: bool = False,
|
||||
) -> None:
|
||||
self.user = user
|
||||
self.persona = persona
|
||||
@ -83,6 +84,7 @@ class SearchTool(Tool):
|
||||
self.chunks_above = chunks_above
|
||||
self.chunks_below = chunks_below
|
||||
self.full_doc = full_doc
|
||||
self.bypass_acl = bypass_acl
|
||||
self.db_session = db_session
|
||||
|
||||
@classmethod
|
||||
@ -204,6 +206,7 @@ class SearchTool(Tool):
|
||||
),
|
||||
user=self.user,
|
||||
llm=self.llm,
|
||||
bypass_acl=self.bypass_acl,
|
||||
db_session=self.db_session,
|
||||
)
|
||||
yield ToolResponse(
|
||||
|
Loading…
x
Reference in New Issue
Block a user