SurfSense/surfsense_backend/app
Tim Ren 0269900c60 fix: use asyncio.to_thread for embedding calls in search endpoints
Wrap synchronous embedding_model.embed() calls with asyncio.to_thread()
in both vector_search and hybrid_search methods. This prevents blocking
the asyncio event loop during embedding computation, improving server
responsiveness under concurrent load.

Fixes #794

Signed-off-by: Tim Ren <137012659+xr843@users.noreply.github.com>
2026-03-15 16:21:19 +08:00
..
agents feat: complete MiniMax LLM provider integration 2026-03-13 07:27:47 +08:00
config feat: complete MiniMax LLM provider integration 2026-03-13 07:27:47 +08:00
connectors refactor: update safe_set_chunks function to be asynchronous and modify all connector and document processor files to use the new async implementation 2026-03-15 00:44:27 -07:00
indexing_pipeline feat: refactor agent tools management and add UI integration 2026-03-10 17:36:26 -07:00
prompts refactor: update title generation logic to improve user experience by generating titles in parallel with assistant responses 2026-03-09 01:28:53 +05:30
retriever fix: use asyncio.to_thread for embedding calls in search endpoints 2026-03-15 16:21:19 +08:00
routes feat: fixed connectors dialog navigation, Implement bulk document deletion and improve search space filtering 2026-03-11 15:09:10 -07:00
schemas feat: refactor agent tools management and add UI integration 2026-03-10 17:36:26 -07:00
services Merge pull request #883 from octo-patch/feat/complete-minimax-provider-support 2026-03-15 00:45:16 -07:00
tasks refactor: update safe_set_chunks function to be asynchronous and modify all connector and document processor files to use the new async implementation 2026-03-15 00:44:27 -07:00
templates feat: update report generation and export capabilities to support multiple formats (PDF, DOCX, HTML, LaTeX, EPUB, ODT, plain text) across documentation and backend 2026-03-09 18:41:21 -07:00
utils feat: refactor agent tools management and add UI integration 2026-03-10 17:36:26 -07:00
__init__.py feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
app.py feat: optimize document upload process and enhance memory management 2026-02-28 17:22:34 -08:00
celery_app.py feat: add source_markdown column to documents and implement migration logic for existing records using a pure-Python BlockNote JSON to Markdown converter 2026-02-17 11:34:11 +05:30
db.py feat: complete MiniMax LLM provider integration 2026-03-13 07:27:47 +08:00
users.py feat: add last_login column to user table and update user login tracking 2026-03-08 18:24:29 +05:30