Skip to content

Commit 6fe1325

Browse files
fix bug with empty kb (#263)
* fix bug with empty kb * Update llm-service/app/services/query/querier.py Co-authored-by: Copilot <[email protected]> * small tweak --------- Co-authored-by: Copilot <[email protected]>
1 parent a3bf5cc commit 6fe1325

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llm-service/app/services/query/querier.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ def build_retriever(
283283
if data_source_id is None:
284284
continue
285285

286+
chunks = VectorStoreFactory.for_chunks(data_source_id)
287+
if not chunks or not chunks.size():
288+
continue
289+
286290
embedding_model, vector_store = build_datasource_query_components(
287291
data_source_id
288292
)

0 commit comments

Comments
 (0)