Commit graph

3401 commits

Author SHA1 Message Date
Rohan Verma
d2e06583ca
Merge pull request #851 from MODSetter/dev
refactor: improve session management and cleanup in chat streaming
2026-02-28 23:18:11 -08:00
DESKTOP-RTLN3BA\$punk
dd3da2bc36 refactor: improve session management and cleanup in chat streaming
- Added proper session closure to prevent connection leaks during streaming.
- Implemented a fresh session for cleanup tasks to ensure data integrity.
- Enhanced error handling during session operations to improve robustness.
- Removed unnecessary session parameters from function signatures for clarity.
2026-02-28 23:17:11 -08:00
Rohan Verma
cbf9bc6bc9
Merge pull request #850 from MODSetter/dev
feat: enhance knowledge base search and document retrieval
2026-02-28 19:41:45 -08:00
DESKTOP-RTLN3BA\$punk
283f97dafb Merge commit '42982578ed' into dev 2026-02-28 19:41:06 -08:00
DESKTOP-RTLN3BA\$punk
40a091f8cc feat: enhance knowledge base search and document retrieval
- Introduced a mechanism to identify degenerate queries that lack meaningful search signals, improving search accuracy.
- Implemented a fallback method for browsing recent documents when queries are degenerate, ensuring relevant results are returned.
- Added limits on the number of chunks fetched per document to optimize performance and prevent excessive data loading.
- Updated the ConnectorService to allow for reusable query embeddings, enhancing efficiency in search operations.
- Enhanced LLM router service to support context window fallbacks, improving robustness during context window limitations.
2026-02-28 19:40:24 -08:00
Rohan Verma
42982578ed
Merge pull request #849 from MODSetter/dev
feat: optimize document upload process and enhance memory management
2026-02-28 17:28:24 -08:00
DESKTOP-RTLN3BA\$punk
b08e8da40c Merge commit 'f2f15f64e6' into dev 2026-02-28 17:25:34 -08:00
DESKTOP-RTLN3BA\$punk
d959a6a6c8 feat: optimize document upload process and enhance memory management
- Increased maximum file upload limit from 10 to 50 to improve user experience.
- Implemented batch processing for document uploads to avoid proxy timeouts, splitting files into manageable chunks.
- Enhanced garbage collection in chat streaming functions to prevent memory leaks and improve performance.
- Added memory delta tracking in system snapshots for better monitoring of resource usage.
- Updated LLM router and service configurations to prevent unbounded internal accumulation and improve efficiency.
2026-02-28 17:22:34 -08:00
Rohan Verma
f2f15f64e6
Merge pull request #848 from MODSetter/dev
feat: refactor document fetching and improve comment batching
2026-02-28 01:57:06 -08:00
DESKTOP-RTLN3BA\$punk
cc64e18501 Merge commit '0a280149d9' into dev 2026-02-28 01:55:26 -08:00
DESKTOP-RTLN3BA\$punk
1bb9f479e1 feat: refactor document fetching and improve comment batching
- Replaced the useDocuments hook with React Query for better caching and deduplication of document requests.
- Updated the ConnectorIndicator component to fetch document type counts using a new atom for real-time updates.
- Enhanced the useComments hook to manage batch requests more effectively, reducing race conditions and improving performance.
- Set default query options in the query client to optimize stale time and refetch behavior.
2026-02-28 01:54:54 -08:00
Rohan Verma
0a280149d9
Merge pull request #847 from MODSetter/dev
feat: enhance caching mechanisms to prevent memory leaks
2026-02-27 17:57:26 -08:00
DESKTOP-RTLN3BA\$punk
cc0d8ad4d7 Merge commit '4105bd0d7a' into dev 2026-02-27 17:56:19 -08:00
DESKTOP-RTLN3BA\$punk
f4b2ab0899 feat: enhance caching mechanisms to prevent memory leaks
- Improved in-memory rate limiting by evicting timestamps outside the current window and cleaning up empty keys.
- Updated LLM router service to cache context profiles and avoid redundant computations.
- Introduced cache eviction logic for MCP tools and sandbox instances to manage memory usage effectively.
- Added garbage collection triggers in chat streaming functions to reclaim resources promptly.
2026-02-27 17:56:00 -08:00
Rohan Verma
4105bd0d7a
Merge pull request #846 from MODSetter/dev
feat: perf optimizations
2026-02-27 17:24:20 -08:00
DESKTOP-RTLN3BA\$punk
08829c110c Merge commit '11a38a28a5' into dev 2026-02-27 17:21:52 -08:00
DESKTOP-RTLN3BA\$punk
0e723a5b8b feat: perf optimizations
- improved search_knowledgebase_tool
- Added new endpoint to batch-fetch comments for multiple messages, reducing the number of API calls.
- Introduced CommentBatchRequest and CommentBatchResponse schemas for handling batch requests and responses.
- Updated chat_comments_service to validate message existence and permissions before fetching comments.
- Enhanced frontend with useBatchCommentsPreload hook to optimize comment loading for assistant messages.
2026-02-27 17:19:25 -08:00
Rohan Verma
11a38a28a5
Merge pull request #845 from MODSetter/dev
feat: added perf logs and removed managed google connectors
2026-02-27 16:34:40 -08:00
DESKTOP-RTLN3BA\$punk
a43956bdce Merge commit 'f1f100bb52' into dev 2026-02-27 16:33:06 -08:00
DESKTOP-RTLN3BA\$punk
664c43ca13 feat: add performance logging middleware and enhance performance tracking across services
- Introduced RequestPerfMiddleware to log request performance metrics, including slow request thresholds.
- Updated various services and retrievers to utilize the new performance logging utility for better tracking of execution times.
- Enhanced existing methods with detailed performance logs for operations such as embedding, searching, and indexing.
- Removed deprecated logging setup in stream_new_chat and replaced it with the new performance logger.
2026-02-27 16:32:30 -08:00
Rohan Verma
f1f100bb52
Merge pull request #844 from MODSetter/dev
chore: removed announcements from navbar and rewrote tagline
2026-02-27 15:47:07 -08:00
DESKTOP-RTLN3BA\$punk
68bb196d45 Merge commit 'd6ae201403' into dev 2026-02-27 15:46:25 -08:00
DESKTOP-RTLN3BA\$punk
fa51ec42c6 chore: removed announcements from navbar and rewrote tagline 2026-02-27 15:45:48 -08:00
Rohan Verma
d6ae201403
Merge pull request #843 from MODSetter/dev
feat: update pricing
2026-02-27 15:37:39 -08:00
DESKTOP-RTLN3BA\$punk
37a0bd4533 feat: update contact information and meeting links across components
- Changed meeting link from Calendly to Cal.com for scheduling.
- Updated email contact from eric@surfsense.com to rohan@surfsense.com in multiple components.
- Revised text in the contact form to reflect the new scheduling options.
2026-02-27 15:31:31 -08:00
Rohan Verma
3ca401cb2c
Merge pull request #840 from MODSetter/dev
feat: Google Drive HITL tools, team management UI, Daytona sandboxes, indexing pipeline hardening & test infrastructure
2026-02-26 20:49:50 -08:00
DESKTOP-RTLN3BA\$punk
1e4b8d3e89 feat: enhance document formatting and context management for LLM tools
- Introduced dynamic character budget calculation for document formatting based on model's context window.
- Updated `format_documents_for_context` to respect character limits and improve output quality.
- Added `max_input_tokens` parameter to various functions to facilitate context-aware processing.
- Enhanced error handling for context overflow in LLM router service.
2026-02-26 20:47:19 -08:00
DESKTOP-RTLN3BA\$punk
a4dc84d1ab feat: add should_summarize parameter to task dispatchers
- Introduced should_summarize parameter in TaskDispatcher and CeleryTaskDispatcher to control summary generation.
- Updated InlineTaskDispatcher to support the new parameter for document processing.
2026-02-26 19:12:37 -08:00
DESKTOP-RTLN3BA\$punk
6f4bf11a32 Merge branch 'dev' of https://github.com/MODSetter/SurfSense into dev 2026-02-26 18:25:05 -08:00
DESKTOP-RTLN3BA\$punk
e9892c8fe9 feat: added configable summary calculation and various improvements
- Replaced direct embedding calls with a utility function across various components to streamline embedding logic.
- Added enable_summary flag to several models and routes to control summary generation behavior.
2026-02-26 18:24:57 -08:00
Rohan Verma
2f08dc9cf4
Merge pull request #839 from AnishSarkar22/feat/document-test
fix: enhanced document upload, page limit, upload limit tests
2026-02-26 13:48:45 -08:00
Anish Sarkar
2468cc2a4a feat: add SidebarSeparator component and integrate into documentation layout
- Introduced SidebarSeparator component for improved sidebar organization.
- Updated layout configuration to utilize the new SidebarSeparator in the documentation layout.
2026-02-27 02:38:52 +05:30
Anish Sarkar
394a37576c refactor: update layout configuration and enhance documentation layout 2026-02-27 02:36:18 +05:30
DESKTOP-RTLN3BA\$punk
dc33a4a68f Merge commit 'af3810b7c4' into dev 2026-02-26 13:05:02 -08:00
DESKTOP-RTLN3BA\$punk
23f553ef84 Merge branch 'dev' of https://github.com/MODSetter/SurfSense into dev 2026-02-26 13:01:24 -08:00
DESKTOP-RTLN3BA\$punk
aabc24f82c feat: enhance performance logging and caching in various components
- Introduced slow callback logging in FastAPI to identify blocking calls.
- Added performance logging for agent creation and tool loading processes.
- Implemented caching for MCP tools to reduce redundant server calls.
- Enhanced sandbox management with in-process caching for improved efficiency.
- Refactored several functions for better readability and performance tracking.
- Updated tests to ensure proper functionality of new features and optimizations.
2026-02-26 13:00:31 -08:00
Anish Sarkar
20ebb0703f chore: add icons to documentation metadata for improved visual representation 2026-02-27 02:15:21 +05:30
Anish Sarkar
78dcce3e06 refactor: update testing documentation for clarity and structure 2026-02-27 02:07:14 +05:30
Anish Sarkar
836d5293df refactor: remove unused TestStatusPolling class from document upload integration tests 2026-02-27 01:52:35 +05:30
Anish Sarkar
fd032f3709 refactor: simplify and clarify documentation in document upload integration tests 2026-02-27 01:48:25 +05:30
Anish Sarkar
7c09958ddc refactor: enhance document upload integration tests for API contract validation 2026-02-27 01:24:20 +05:30
Anish Sarkar
1068ea25a7 refactor: standardize test database configuration across test files 2026-02-27 00:45:51 +05:30
Anish Sarkar
f09b5b0ea4 refactor: replace hardcoded embedding dimension with dynamic configuration
- Updated the embedding dimension in test configurations to use the value from the application config, enhancing maintainability and consistency across tests.
2026-02-27 00:17:39 +05:30
Anish Sarkar
223c2de0d2 refactor: update database connection handling in test configurations 2026-02-27 00:05:21 +05:30
Anish Sarkar
87711ee381 chore: clean up .env.example and pyproject.toml
- Removed commented-out testing configuration from .env.example to streamline the file.
- Updated markers in pyproject.toml to remove the e2e test marker, clarifying the purpose of the remaining markers.
2026-02-26 23:56:01 +05:30
Anish Sarkar
3393e435f9 feat: implement task dispatcher for document processing
- Introduced a TaskDispatcher abstraction to decouple the upload endpoint from Celery, allowing for easier testing with synchronous implementations.
- Updated the create_documents_file_upload function to utilize the new dispatcher for task management.
- Removed direct Celery task imports from the upload function, enhancing modularity.
- Added integration tests for document upload, including page limit enforcement and file size restrictions.
2026-02-26 23:55:47 +05:30
Rohan Verma
30617c6e54
Merge pull request #836 from AnishSarkar22/feat/document-test
feat: add document upload E2E tests
2026-02-25 14:22:07 -08:00
Anish Sarkar
bf60a5049f feat: add end-to-end test for document searchability after upload
- Introduced a new test class to verify that uploaded documents appear in search results once their status is ready.
- Implemented assertions to ensure the uploaded document's ID is present in the search response.
2026-02-26 03:33:37 +05:30
Anish Sarkar
9ccee054a5 chore: ran linting 2026-02-26 03:05:20 +05:30
Anish Sarkar
7332be956e refactor: reorganize test fixtures and helpers for improved clarity and maintainability 2026-02-26 03:04:56 +05:30