From 8e81b935d12ba9beaf611573bcc140c7e9472cbf Mon Sep 17 00:00:00 2001 From: Weves Date: Thu, 2 Nov 2023 13:07:56 -0700 Subject: [PATCH] Fix --- backend/danswer/document_index/vespa/index.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/danswer/document_index/vespa/index.py b/backend/danswer/document_index/vespa/index.py index f9f8cb906..61fa6f8b7 100644 --- a/backend/danswer/document_index/vespa/index.py +++ b/backend/danswer/document_index/vespa/index.py @@ -464,9 +464,8 @@ def _query_vespa(query_params: Mapping[str, str | int]) -> list[InferenceChunk]: ) filtered_hits = [hit for hit in hits if hit["fields"].get(CONTENT) is not None] - return filtered_hits - # inference_chunks = [_vespa_hit_to_inference_chunk(hit) for hit in filtered_hits] - # return inference_chunks + inference_chunks = [_vespa_hit_to_inference_chunk(hit) for hit in filtered_hits] + return inference_chunks class VespaIndex(DocumentIndex):