mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-07 11:28:09 +02:00
Handle empty blurb + adjust timeout
This commit is contained in:
parent
99df68f5ac
commit
7c2c5563e3
@ -412,7 +412,7 @@ def _vespa_hit_to_inference_chunk(hit: dict[str, Any]) -> InferenceChunk:
|
||||
|
||||
return InferenceChunk(
|
||||
chunk_id=fields[CHUNK_ID],
|
||||
blurb=fields[BLURB],
|
||||
blurb=fields.get(BLURB, ""),
|
||||
content=fields[CONTENT],
|
||||
source_links=source_links_dict,
|
||||
section_continuation=fields[SECTION_CONTINUATION],
|
||||
@ -695,6 +695,7 @@ class VespaIndex(DocumentIndex):
|
||||
"hits": num_to_retrieve,
|
||||
"offset": 0,
|
||||
"ranking.profile": "hybrid_search",
|
||||
"timeout": "10s",
|
||||
}
|
||||
|
||||
return _query_vespa(params)
|
||||
|
Loading…
x
Reference in New Issue
Block a user