Commit graph

1075 commits

Author SHA1 Message Date
Anish Sarkar
9d0f5b4249 fix: Ensure notification updates are reliable during error handling
- Added session refresh for notifications to prevent stale data after rollbacks in multiple document processing tasks.
- Wrapped notification update logic in try-except blocks to handle potential failures gracefully and log errors without crashing the process.
- Improved error handling for notification updates in various document processing functions, enhancing overall robustness.
2026-01-14 04:01:20 +05:30
Manoj Aggarwal
514bf28c2f remove gemini specific method 2026-01-13 14:30:48 -08:00
Manoj Aggarwal
de1658cd88 fix: resolve alembic migration conflicts by using unique revision ID for MCP migration 2026-01-13 14:10:59 -08:00
Manoj Aggarwal
0c3e25a07b fix linting issues with ruff 2026-01-13 13:57:04 -08:00
Manoj Aggarwal
063c272b98 remove is_active functionality from MCP connectors 2026-01-13 13:53:18 -08:00
Manoj Aggarwal
305a981d14 feat: add MCP connector backend support 2026-01-13 13:46:01 -08:00
Anish Sarkar
69f46ff3f4 feat: Add notifications API routes and integrate with frontend
- Introduced new notifications API routes for marking notifications as read and marking all as read, with automatic syncing via Electric SQL.
- Updated the frontend hook to utilize the new API for marking notifications as read, enhancing the user experience with real-time updates.
- Included necessary response models for API interactions.
2026-01-14 02:59:58 +05:30
Anish Sarkar
fede7413fb fix: fixed notifications table and Electric SQL replication setup. Removed redirects for upload button 2026-01-14 02:33:43 +05:30
Anish Sarkar
5bd6bd3d67 chore: ran both frontend and backend linting 2026-01-14 02:05:40 +05:30
Anish Sarkar
99bd2df463 Merge remote-tracking branch 'upstream/dev' into feat/replace-logs 2026-01-14 02:04:54 +05:30
Anish Sarkar
48b67d9bc1 fix: remove the document processing UI which used polling 2026-01-13 19:31:31 +05:30
Anish Sarkar
12671ede0e feat: Enhance document processing notifications and refactor related services
- Introduced a new DocumentProcessingNotificationHandler to manage notifications for document processing stages.
- Updated existing notification methods to include detailed progress updates for various stages (queued, parsing, chunking, embedding, storing, completed, failed).
- Refactored NotificationService to support the new document processing notification type and metadata schema.
- Updated multiple document processing tasks to create and manage notifications throughout the processing lifecycle.
- Adjusted UI components to reflect changes in notification types and improve user experience during document uploads and processing.
2026-01-13 19:09:12 +05:30
Anish Sarkar
59a8ef5d64 refactor: Remove deprecated create_connector_indexed_notification method and add notification types
- Removed the deprecated create_connector_indexed_notification method from NotificationService.
- Introduced new notification types and schemas in notification.types.ts to standardize notification handling.
- Updated useNotifications hook to utilize the new notification type definitions.
2026-01-13 17:21:00 +05:30
Anish Sarkar
e38e6d90e0 feat: Add notifications table and integrate Electric SQL for real-time updates
- Introduced a new notifications table in the database schema to manage user notifications.
- Implemented Electric SQL replication setup for the notifications table, ensuring real-time synchronization.
- Updated existing database functions to support real-time updates for connectors and documents using Electric SQL.
- Refactored UI components to utilize new hooks for fetching connectors and documents, enhancing performance and user experience.
2026-01-13 16:54:06 +05:30
DESKTOP-RTLN3BA\$punk
d140f6393e feat: implement leave search space functionality for non-owners and update related UI components 2026-01-13 02:06:35 -08:00
DESKTOP-RTLN3BA\$punk
25b9118306 feat: implement search space deletion and fixed rback issues with shared chats 2026-01-13 01:45:58 -08:00
Rohan Verma
720b339702
Merge branch 'dev' into implement-surfsense-docs-mentions 2026-01-13 00:55:16 -08:00
DESKTOP-RTLN3BA\$punk
f22d649239 feat: added shared chats 2026-01-13 00:17:12 -08:00
CREDO23
5e31a228bc fix: consistent citation numbering during streaming 2026-01-13 09:09:53 +02:00
Anish Sarkar
7a92ecc1ab Merge remote-tracking branch 'upstream/dev' into feat/replace-logs 2026-01-13 11:52:46 +05:30
Anish Sarkar
b0bdbf158b feat: gogole drive custom notification system 2026-01-13 11:39:22 +05:30
Anish Sarkar
271ddffbf5 refactor: Add indexing functions with notification support
- Refactored multiple indexing functions in search_source_connectors_routes to utilize a new helper function for handling notifications.
- Removed redundant error handling and logging from individual indexing tasks, streamlining the code.
2026-01-13 11:30:45 +05:30
CREDO23
cd3677b5fa feat: add SurfSense docs mention support in chat 2026-01-13 06:14:58 +02:00
CREDO23
5ecdfae8a9 add surfsense docs context formatting in stream_new_chat 2026-01-13 02:50:56 +02:00
CREDO23
7e3e784b45 add mentioned_surfsense_doc_ids to NewChatRequest schema 2026-01-13 02:42:59 +02:00
CREDO23
738e23b51a Add SurfSense docs to documents table 2026-01-13 01:15:33 +02:00
DESKTOP-RTLN3BA\$punk
73a57589ac chore: linting 2026-01-12 14:17:15 -08:00
Anish Sarkar
38f907e65b feat: Implement Electric SQL replication setup for notifications table
- Added setup_electric_replication function to handle Electric SQL replication for the notifications table during app startup.
- Updated alembic migration script to remove direct SQL commands for replication, now managed in app/db.py.
- Refactored indexing functions in search_source_connectors_routes to support new start_date and end_date parameters for improved flexibility.
- Enhanced Google Gmail indexing task to utilize new date parameters, ensuring better control over indexing periods.
2026-01-13 03:16:42 +05:30
Rohan Verma
33586f1cb7
Merge pull request #682 from CREDO23/sur-77-impr-add-surfsense-documentation-to-new-default-search
[Feature] Onboarding | Built-in documentation search tool
2026-01-12 12:45:52 -08:00
CREDO23
c0b97fcc68 fix: add doc- prefix examples to citation instructions 2026-01-12 21:00:06 +02:00
CREDO23
842004e617 docs: add tool examples to system prompt 2026-01-12 20:54:00 +02:00
CREDO23
96545056cd refactor: async docs seeding in FastAPI lifespan 2026-01-12 20:15:11 +02:00
Anish Sarkar
93d17b51f5 feat: Implement notification system with real-time updates and Electric SQL integration
- Added notifications table to the database schema with replication support for Electric SQL.
- Developed NotificationService to manage indexing notifications, including creation, updates, and status tracking.
- Introduced NotificationButton and NotificationPopup components for displaying notifications in the UI.
- Enhanced useNotifications hook for real-time notification syncing using PGlite live queries.
- Updated package dependencies for Electric SQL and improved error handling in notification processes.
2026-01-12 22:50:15 +05:30
Anish Sarkar
82c6dd0221 feat: Integrate Electric SQL for real-time notifications and enhance PostgreSQL configuration
- Added Electric SQL service to docker-compose for real-time data synchronization.
- Introduced PostgreSQL configuration for logical replication and performance tuning.
- Created scripts for initializing Electric SQL user and electrifying tables.
- Implemented notification model and service in the backend.
- Developed ElectricProvider and useNotifications hook in the frontend for managing notifications.
- Updated environment variables and package dependencies for Electric SQL integration.
2026-01-12 12:47:00 +05:30
Rohan Verma
383592ce63
Merge pull request #680 from AnishSarkar22/fix/index-future-date
feat: Index future dates for calendar based connectors & bug fixes
2026-01-10 14:00:29 -08:00
Rohan Verma
8492ea3ad1
Merge pull request #671 from CREDO23/sur-70-feature-streamline-onboarding-auto-create-default-workspace
[Feature] Streamline onboarding | Auto create default Search space
2026-01-10 13:59:54 -08:00
Manoj Aggarwal
8b735a492a lint 2026-01-09 13:53:09 -08:00
Manoj Aggarwal
62d0d8b6db ruff lint 2026-01-09 13:38:49 -08:00
Manoj Aggarwal
29dadfd138 nit 2026-01-09 13:34:36 -08:00
Manoj Aggarwal
8b650f4cf4 resolve vercel error 2026-01-09 13:33:28 -08:00
Manoj Aggarwal
36c395ba72 nit 2026-01-09 13:20:54 -08:00
Manoj Aggarwal
18035b3728 Add MS Teams connector 2026-01-09 13:20:47 -08:00
Manoj Aggarwal
fa35b71522 Add teams connector similar to slack 2026-01-09 13:20:30 -08:00
Manoj Aggarwal
786fd63e5b
Revert "Add Microsoft Teams Connector" 2026-01-09 12:33:26 -08:00
CREDO23
2c3d625b35 fix: increase top_k from 5 to 10 to match knowledge base 2026-01-09 20:11:47 +02:00
CREDO23
3539b2a83d feat: add surfsense docs citation endpoint 2026-01-09 18:07:14 +02:00
CREDO23
c4d214baa4 feat: register search_surfsense_docs tool in agent toolkit 2026-01-09 17:58:14 +02:00
CREDO23
1be9de9c24 feat: add search_surfsense_docs tool with vector search 2026-01-09 17:52:31 +02:00
CREDO23
105f4c5c9d feat: add create/update/skip/delete logic to indexer 2026-01-09 15:58:27 +02:00
CREDO23
2e83ed8dcd feat: add chunking and embedding logic to indexer 2026-01-09 15:45:17 +02:00