Commit graph

4080 commits

Author SHA1 Message Date
google-labs-jules[bot]
299bb35d8c Hi there, it's Jules! I've just finished making some improvements.
Here's a rundown of what I did:

Fix: Robust Slack rate limiting, error handling & GitHub org repos

This update delivers comprehensive improvements to Slack connector stability and enhances the GitHub connector.

**Slack Connector (`slack_history.py`, `connectors_indexing_tasks.py`):**
- I've implemented proactive delays (1.2s for `conversations.history`, 3s for `conversations.list` pagination) and `Retry-After` header handling for 429 rate limit errors across `conversations.list`, `conversations.history`, and `users.info` API calls.
- I'll now gracefully handle `not_in_channel` errors when fetching conversation history by logging a warning and skipping the channel.
- I've refactored channel info fetching: `get_all_channels` now returns richer channel data (including `is_member`, `is_private`).
- I've removed direct calls to `conversations.info` from `connectors_indexing_tasks.py`, using the richer data from `get_all_channels` instead, to prevent associated rate limits.
- I corrected a `SyntaxError` (non-printable character) in `slack_history.py`.
- I've enhanced logging for rate limit actions, delays, and errors.
- I've updated unit tests in `test_slack_history.py` to cover all new logic.

**GitHub Connector (`github_connector.py`):**
- I've modified `get_user_repositories` to fetch all repositories accessible by you (owned, collaborated, organization) by changing the API call parameter from `type='owner'` to `type='all'`.
- I've included unit tests in `test_github_connector.py` for this change.
2025-05-27 13:39:42 +00:00
google-labs-jules[bot]
ce1014c8c2 Fix: Handle Slack rate limits and add GitHub org repo support
This commit includes two main improvements:

1. Slack Connector (`slack_history.py`):
   - Addresses API rate limiting for `conversations.list` by introducing a 3-second delay between paginated calls.
   - Implements handling for the `Retry-After` header when HTTP 429 errors occur.
   - Fixes a `SyntaxError` caused by a non-printable character accidentally introduced in a previous modification.
   - Adds comprehensive unit tests for the rate limiting and retry logic in `test_slack_history.py`.

2. GitHub Connector (`github_connector.py`):
   - Modifies `get_user_repositories` to fetch all repositories accessible by you (including organization repositories) by changing the API call parameter from `type='owner'` to `type='all'`.
   - Adds unit tests in `test_github_connector.py` to verify this change and other connector functionalities.
2025-05-27 13:27:10 +00:00
google-labs-jules[bot]
807c83b2f6 Fix: Handle Slack API rate limiting for conversations.list
The `get_all_channels` method in `slack_history.py` was making paginated
requests to `conversations.list` without any delay, leading to HTTP 429
errors when fetching channels from large Slack workspaces.

This commit introduces the following changes:
- Adds a 3-second delay between paginated calls to `conversations.list`
  to comply with Slack's Tier 2 rate limits (approx. 20 requests/minute).
- Implements handling for the `Retry-After` header when a 429 error is
  received. The system will wait for the specified duration before
  retrying. If the header is missing or invalid, a default of 60 seconds
  is used.
- Adds comprehensive unit tests to verify the new delay and retry logic,
  covering scenarios with and without the `Retry-After` header, as well
  as other API errors.
2025-05-27 12:56:26 +00:00
Rohan Verma
5fef58bdf9
Merge pull request #112 from MODSetter/dev
Version Bump beta-v0.0.7
2025-05-22 00:16:27 -07:00
DESKTOP-RTLN3BA\$punk
38516e74f9 Version Bump 2025-05-22 00:11:57 -07:00
Rohan Verma
be8cbbe7b6
Merge pull request #111 from MODSetter/dev
fix: Added Suspense boundary in Login Page
2025-05-21 21:16:55 -07:00
DESKTOP-RTLN3BA\$punk
604791e6c5 fix: Added Suspense boundary in Login Page 2025-05-21 21:13:56 -07:00
Rohan Verma
94c79130f1
Merge pull request #110 from MODSetter/dev
feat: Removed Hard Dependency on Google Auth
2025-05-21 21:05:19 -07:00
DESKTOP-RTLN3BA\$punk
521ee4a1c4 feat: Removed Hard Dependecy on Google Auth
- Introduced LOCAL auth mode
2025-05-21 20:56:23 -07:00
Rohan Verma
c290146a8d
Merge pull request #109 from MODSetter/dev
feat: Code Block Syntax Highlighting & Copy Func
2025-05-19 23:29:43 -07:00
DESKTOP-RTLN3BA\$punk
4c8b03ce2b feat: Code Block Syntax Highlighting & Copy Func 2025-05-19 23:19:20 -07:00
Rohan Verma
8c58fc417e
Merge pull request #108 from MODSetter/dev
feat: Improved prompt for personalised responses
2025-05-19 20:56:13 -07:00
DESKTOP-RTLN3BA\$punk
33f7860969 Merge branch 'dev' of https://github.com/MODSetter/SurfSense into dev 2025-05-19 20:49:50 -07:00
DESKTOP-RTLN3BA\$punk
ad13d815a5 refactor: Improved prompt for personalization. 2025-05-19 20:49:47 -07:00
DESKTOP-RTLN3BA\$punk
f824842ec3 refactor: Improved prompt for personalization. 2025-05-19 20:48:48 -07:00
Rohan Verma
23b48e5945
Merge pull request #107 from MODSetter/dev
feat: Basic sub_writer_graph streaming
2025-05-16 01:57:52 -07:00
DESKTOP-RTLN3BA\$punk
8a23d43e8a Merge branch 'dev' of https://github.com/MODSetter/SurfSense into dev 2025-05-16 01:51:59 -07:00
DESKTOP-RTLN3BA\$punk
c7a173456a feat: Basic Streaming 2025-05-16 01:51:55 -07:00
DESKTOP-RTLN3BA\$punk
0bf43571ba feat: Basic Streaming 2025-05-16 01:51:03 -07:00
Rohan Verma
2a269e901b
Merge pull request #103 from cubxxw/feat/add-pr-template
Add PR template with enhanced checklist for SurfSense
2025-05-14 10:45:30 -07:00
Xinwei Xiong
aadd9e20e5 Add PR template with enhanced checklist for SurfSense 2025-05-14 16:40:28 +08:00
Rohan Verma
f291f441c0
Merge pull request #96 from cubxxw/feat/optimize-docker-compose
refactor: remove frontend and backend services
2025-05-13 23:19:12 -07:00
Xinwei Xiong
e8eac2deb0 docs: update deployment guide and Docker setup documentation to use 'docker compose' syntax 2025-05-14 14:00:30 +08:00
Xinwei Xiong
6d591094cc docs: update Docker setup documentation with deployment options and configuration details 2025-05-14 13:18:51 +08:00
Xinwei Xiong
bfeae0cb67 refactor: remove frontend and backend services from docker-compose.yml 2025-05-14 13:12:22 +08:00
Rohan Verma
e3d8e8a75d
Merge pull request #94 from MODSetter/dev
feat: Added Speech to Text support.
2025-05-13 21:21:32 -07:00
DESKTOP-RTLN3BA\$punk
0885f39feb Merge branch 'dev' of https://github.com/MODSetter/SurfSense into dev 2025-05-13 21:13:58 -07:00
DESKTOP-RTLN3BA\$punk
a8080d2dc7 feat: Added Speech to Text support.
- Supports audio & video files.
- Will be useful for Youtube vids which dont have transcripts.
2025-05-13 21:13:53 -07:00
DESKTOP-RTLN3BA\$punk
4d5fb212df feat: Added Speech to Text support.
- Supports audio & video files.
- Will be useful for Youtube vids which dont have transcripts.
2025-05-13 21:13:11 -07:00
Rohan Verma
57987ecc76
Merge pull request #93 from mpawank/main
seo optimization
2025-05-13 20:30:07 -07:00
mpawank
445e02b71b removed changes from readme 2025-05-14 08:54:40 +05:30
mpawank
9d5dd56306 removed change from r 2025-05-14 08:49:52 +05:30
mpawank
288798ade4 updated seo 2025-05-14 01:22:25 +05:30
mpawank
9ccbf848e8 updated layout.tsx for better seo 2025-05-14 00:55:22 +05:30
mpawank
6e6bb3972f mpawanl 2025-05-13 15:19:00 +05:30
Rohan Verma
1d1523a891
Merge pull request #88 from ritikprajapat21/main
Fix #33: Refactored code
2025-05-11 23:59:17 -07:00
Rohan Verma
29f4d90a0a
Merge pull request #90 from MODSetter/dev
feat: Introduce RAPTOR Search Mode
2025-05-11 23:15:39 -07:00
DESKTOP-RTLN3BA\$punk
9284e93a33 Merge branch 'dev' of https://github.com/MODSetter/SurfSense into dev 2025-05-11 23:06:11 -07:00
DESKTOP-RTLN3BA\$punk
a9db0a8ceb feat: Introduce the RAPTOR Search. 2025-05-11 23:05:56 -07:00
DESKTOP-RTLN3BA\$punk
fbbb3294f4 feat: Introduce the RAPTOR Search. 2025-05-11 23:04:48 -07:00
ritikprajapat21
16867b4bed Changes updated 2025-05-12 09:37:37 +05:30
Ritik Prajapat
c1acd9cfaf
Merge branch 'MODSetter:main' into main 2025-05-12 09:36:47 +05:30
Rohan Verma
fc937edf03
Merge pull request #89 from MODSetter/dev
feat: Added chat_history to researcher agent
2025-05-10 20:20:51 -07:00
DESKTOP-RTLN3BA\$punk
d3540d8cc5 chore: more context to reranker 2025-05-10 20:19:08 -07:00
DESKTOP-RTLN3BA\$punk
a58550818b feat: Added chat_history to researcher agent 2025-05-10 20:06:19 -07:00
ritikprajapat21
ccd12d3ad2 Fix #33: Refactored code 2025-05-10 17:11:51 +05:30
Rohan Verma
eda1d43935
Merge pull request #83 from cubxxw/feat/optimize-docker
feat: enhance Docker setup documentation and configuration options
2025-05-09 22:39:14 -07:00
Rohan Verma
7498c1e6fd
Merge pull request #84 from ritikprajapat21/main
Fix #45: Added connector icon
2025-05-09 22:32:15 -07:00
Rohan Verma
f4897a7908
Merge pull request #85 from MODSetter/dev
feat: Improved sub section writer agent & Chat UI
2025-05-09 22:26:59 -07:00
Xinwei Xiong
7a21282064 enhance Docker installation documentation with environment variable details and pgAdmin usage instructions 2025-05-10 13:19:18 +08:00