Fix: Fixes graph completion search limit (#839)

<!-- .github/pull_request_template.md -->

## Description
Fixes graph completion limit

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
This commit is contained in:
hajdul88 2025-05-19 13:38:09 +02:00 committed by GitHub
parent a874988db6
commit f8f78773dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -146,7 +146,7 @@ async def brute_force_search(
async def search_in_collection(collection_name: str):
try:
return await vector_engine.search(
collection_name=collection_name, query_text=query, limit=50
collection_name=collection_name, query_text=query, limit=0
)
except CollectionNotFoundError:
return []