SurfSense/surfsense_backend/app
CREDO23 4fa85a9a94 perf(kb-search): offload sync embed_texts to thread
embed_texts holds a threading.Lock and runs a sync embedding call inside
search_knowledge_base, an async coroutine on the KB priority middleware
critical path. Blocking the event loop here stalls every other coroutine
on the worker (SSE keepalives, concurrent chat requests, background
tasks). Wrap in asyncio.to_thread so the embed runs on the default
executor pool while the loop keeps serving.
2026-05-20 10:02:38 +02:00
..
agents perf(kb-search): offload sync embed_texts to thread 2026-05-20 10:02:38 +02:00
config chore: fix linting 2026-05-12 04:00:04 +05:30
connectors chore: linting 2026-04-27 14:04:50 -07:00
etl_pipeline chore: linting 2026-05-15 17:33:44 -07:00
indexing_pipeline feat(chunker): add table-aware chunk_text_hybrid to prevent mid-row table splits 2026-05-05 12:48:04 +08:00
observability chore: cleaned comments slop 2026-04-28 23:52:37 -07:00
prompts feat: add PDF preview and export functionality for Typst-based reports, enhance report content handling 2026-04-15 21:11:27 +05:30
retriever feat: made agent file sytem optimized 2026-03-28 16:39:46 -07:00
routes user_tool_allowlist: extract trust-tool storage into reusable service 2026-05-14 21:20:30 +02:00
schemas schemas/new_chat: accept 'approve_always' on the resume HTTP boundary 2026-05-15 15:23:39 +02:00
services fix(tokens): use canonical prompt_tokens_details path for cache fields 2026-05-20 09:55:39 +02:00
tasks Merge remote-tracking branch 'upstream/dev' into fix/zero-cache-stale-replica-1355 2026-05-16 19:30:09 +05:30
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 chore: linting 2026-04-28 21:37:51 -07:00
__init__.py feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
app.py feat: add CORS preflight response caching for 24 hours 2026-05-04 19:55:19 -07:00
celery_app.py feat: unified credits and its cost calculations 2026-05-02 14:34:23 -07:00
db.py feat: moved chat persistance to Server Side 2026-05-04 03:06:15 -07:00
exceptions.py feat: add processing mode support for document uploads and ETL pipeline, improded error handling ux 2026-04-14 21:26:00 -07:00
rate_limiter.py try: ip fix for cludflare 2026-04-16 02:13:52 -07:00
users.py Seed default prompts on registration and for existing users 2026-03-31 18:12:09 +02:00