mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-08-03 05:34:03 +02:00
Quick fix (#1919)
This commit is contained in:
@@ -271,12 +271,6 @@ def stream_answer_objects(
|
|||||||
)
|
)
|
||||||
|
|
||||||
yield LLMRelevanceFilterResponse(relevant_chunk_indices=packet.response)
|
yield LLMRelevanceFilterResponse(relevant_chunk_indices=packet.response)
|
||||||
if query_req.skip_gen_ai_answer_generation:
|
|
||||||
# Exit early if only source docs + contexts are requested
|
|
||||||
# Putting exit here assumes that a packet with the ID
|
|
||||||
# SECTION_RELEVANCE_LIST_ID is the last one yielded before
|
|
||||||
# calling the LLM
|
|
||||||
return
|
|
||||||
|
|
||||||
elif packet.id == SEARCH_EVALUATION_ID:
|
elif packet.id == SEARCH_EVALUATION_ID:
|
||||||
evaluation_response = LLMRelevanceSummaryResponse(
|
evaluation_response = LLMRelevanceSummaryResponse(
|
||||||
|
Reference in New Issue
Block a user