chore: format

This commit is contained in:
Timothy Jaeryang Baek
2026-04-17 14:28:18 +09:00
parent e8e655d0de
commit 4113b15a60
79 changed files with 501 additions and 117 deletions
+2 -9
View File
@@ -150,15 +150,8 @@ async def query_memory(
# same RELEVANCE_THRESHOLD used by RAG ensures only genuinely matching
# memories are surfaced (distances are normalised to 0→1, higher is
# better).
relevance_threshold = getattr(
request.app.state.config, 'RELEVANCE_THRESHOLD', 0.0
)
if (
results
and relevance_threshold > 0.0
and results.distances
and results.distances[0]
):
relevance_threshold = getattr(request.app.state.config, 'RELEVANCE_THRESHOLD', 0.0)
if results and relevance_threshold > 0.0 and results.distances and results.distances[0]:
from open_webui.retrieval.vector.main import SearchResult
filtered_ids = []
-1
View File
@@ -2365,7 +2365,6 @@ async def _validate_collection_access(collection_names: list[str], user, access_
)
class QueryDocForm(BaseModel):
collection_name: str
query: str