mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-19 12:03:54 +02:00
Enable Surrounding Context (#2210)
This commit is contained in:
@@ -106,8 +106,9 @@ def handle_simplified_chat_message(
|
||||
search_doc_ids=chat_message_req.search_doc_ids,
|
||||
retrieval_options=retrieval_options,
|
||||
query_override=chat_message_req.query_override,
|
||||
chunks_above=chat_message_req.chunks_above,
|
||||
chunks_below=chat_message_req.chunks_below,
|
||||
# Currently only applies to search flow not chat
|
||||
chunks_above=0,
|
||||
chunks_below=0,
|
||||
full_doc=chat_message_req.full_doc,
|
||||
)
|
||||
|
||||
@@ -232,8 +233,8 @@ def handle_send_message_simple_with_history(
|
||||
search_doc_ids=None,
|
||||
retrieval_options=req.retrieval_options,
|
||||
query_override=rephrased_query,
|
||||
chunks_above=req.chunks_above,
|
||||
chunks_below=req.chunks_below,
|
||||
chunks_above=0,
|
||||
chunks_below=0,
|
||||
full_doc=req.full_doc,
|
||||
)
|
||||
|
||||
|
@@ -54,6 +54,7 @@ def handle_search_request(
|
||||
logger.notice(f"Received document search query: {query}")
|
||||
|
||||
llm, fast_llm = get_default_llms()
|
||||
|
||||
search_pipeline = SearchPipeline(
|
||||
search_request=SearchRequest(
|
||||
query=query,
|
||||
|
Reference in New Issue
Block a user