SurfSense/surfsense_backend
DhruvTilva bf805fd81e fix: use token-safe truncation for document embeddings
The document saving logic used a hardcoded character slice ([:4000]) for
the document summary content fed to the embedder. For UTF-8 documents
(e.g., Arabic, Chinese, Japanese), characters above U+007F take multiple
bytes but count as 1 character in a slice, potentially producing text
that exceeds the token limit of the embedding model.

Replaced the arbitrary slice with 	runcate_for_embedding(), which safely
bounds the text using the embedding model's actual tokenizer.
2026-06-26 00:09:11 +05:30
..
alembic feat: add position column to chunks for explicit document order 2026-06-18 08:55:47 -07:00
app fix: use token-safe truncation for document embeddings 2026-06-26 00:09:11 +05:30
scripts refactor(provider-configuration): standardize provider parameter naming across various modules and improve quota error handling in tests 2026-06-13 14:23:32 +05:30
tests feat: add unit tests for LLM bundle streaming functionality 2026-06-18 23:32:36 +05:30
.dockerignore chore(backend): exclude tests/ from production Docker image 2026-05-06 17:16:22 +05:30
.env.example Merge commit '7ce409c580' into dev 2026-06-16 22:48:14 -07:00
.gitignore fix(gitignore): anchor data/ rule; track podcast voice catalogs 2026-06-12 00:06:37 +02:00
.python-version feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
alembic.ini add github connector, add alembic for db migrations, fix bug updating connectors 2025-04-13 13:56:22 -07:00
celery_worker.py fix: celery_app path and gmail indexing 2025-10-21 21:11:41 -07:00
Dockerfile feat(proxy): integrate Scrapling for enhanced web scraping capabilities 2026-06-09 00:15:10 -07:00
main.py feat(observability): add OpenTelemetry process bootstrap 2026-05-21 23:01:54 +05:30
pyproject.toml feat: bumped version to 0.0.29 2026-06-17 22:29:50 -07:00
uv.lock feat: bumped version to 0.0.29 2026-06-17 22:29:50 -07:00