Fix slack bot retrieval

This commit is contained in:
Weves 2023-09-09 12:47:08 -07:00 committed by Chris Weaver
parent 648706d48c
commit eae6f58450

View File

@ -105,7 +105,7 @@ def answer_qa_query(
# types which can't be parsed). These chunks are useful to show in the
# search results, but not for QA.
filtered_ranked_chunks = [
chunk for chunk in ranked_chunks if chunk.metadata.get(IGNORE_FOR_QA)
chunk for chunk in ranked_chunks if not chunk.metadata.get(IGNORE_FOR_QA)
]
# get all chunks that fit into the token limit