Skip to content

Conversation

@ankitpasayat
Copy link
Contributor

@ankitpasayat ankitpasayat commented Dec 6, 2025

Fixes typo in directory name and updates all import paths:

  • Renamed surfsense_backend/app/retriver/ to surfsense_backend/app/retriever/
  • Updated imports in db.py
  • Updated imports in connector_service.py

Description

Motivation and Context

FIX #

Screenshots

API Changes

  • This PR includes API changes

Change Type

  • Bug fix
  • New feature
  • Performance improvement
  • Refactoring
  • Documentation
  • Dependency/Build system
  • Breaking change
  • Other (specify):

Testing Performed

  • Tested locally
  • Manual/QA verification

Checklist

  • Follows project coding standards and conventions
  • Documentation updated as needed
  • Dependencies updated as needed
  • No lint/build errors or new warnings
  • All relevant tests are passing

High-level PR Summary

This pull request fixes a typo in the directory name by renaming retriver to retriever and updates all corresponding import paths across the backend codebase. The change involves renaming three files in the retriever module and updating the import statements in two files (db.py and connector_service.py) that reference these modules.

⏱️ Estimated Review Time: 5-15 minutes

💡 Review Order Suggestion
Order File Path
1 surfsense_backend/app/retriever/__init__.py
2 surfsense_backend/app/retriever/chunks_hybrid_search.py
3 surfsense_backend/app/retriever/documents_hybrid_search.py
4 surfsense_backend/app/db.py
5 surfsense_backend/app/services/connector_service.py

Need help? Join our Discord

Analyze latest changes

Fixes typo in directory name and updates all import paths:
- Renamed surfsense_backend/app/retriver/ to surfsense_backend/app/retriever/
- Updated imports in db.py
- Updated imports in connector_service.py
Copilot AI review requested due to automatic review settings December 6, 2025 16:53
@vercel
Copy link

vercel bot commented Dec 6, 2025

@ankitpasayat is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a typo in the directory name from retriver to retriever and updates all import paths accordingly.

  • Renamed directory: surfsense_backend/app/retriver/surfsense_backend/app/retriever/
  • Updated import statements in db.py and connector_service.py to use the corrected path
  • Moved retriever implementation files to the corrected directory structure

Reviewed changes

Copilot reviewed 2 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
surfsense_backend/app/services/connector_service.py Updated imports from app.retriver to app.retriever
surfsense_backend/app/db.py Updated imports from app.retriver to app.retriever
surfsense_backend/app/retriever/chunks_hybrid_search.py Moved file with chunk-based hybrid search implementation
surfsense_backend/app/retriever/documents_hybrid_search.py Moved file with document-based hybrid search implementation
surfsense_backend/app/retriever/init.py Added package initializer for retriever module

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

)
from app.retriver.chunks_hybrid_search import ChucksHybridSearchRetriever
from app.retriver.documents_hybrid_search import DocumentHybridSearchRetriever
from app.retriever.chunks_hybrid_search import ChucksHybridSearchRetriever
Copy link

Copilot AI Dec 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The imported class name ChucksHybridSearchRetriever contains a spelling error. It should be ChunksHybridSearchRetriever (Chunks, not Chucks). This import should reference the correctly spelled class name.

Copilot uses AI. Check for mistakes.
from app.config import config
from app.retriver.chunks_hybrid_search import ChucksHybridSearchRetriever
from app.retriver.documents_hybrid_search import DocumentHybridSearchRetriever
from app.retriever.chunks_hybrid_search import ChucksHybridSearchRetriever
Copy link

Copilot AI Dec 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The imported class name ChucksHybridSearchRetriever contains a spelling error. It should be ChunksHybridSearchRetriever (Chunks, not Chucks). This import should reference the correctly spelled class name.

Suggested change
from app.retriever.chunks_hybrid_search import ChucksHybridSearchRetriever
from app.retriever.chunks_hybrid_search import ChunksHybridSearchRetriever

Copilot uses AI. Check for mistakes.
Copy link

@recurseml recurseml bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review by RecurseML

🔍 Review performed on 601489b..b30f53b

✨ No bugs found, your code is sparkling clean

✅ Files analyzed, no issues (2)

surfsense_backend/app/db.py
surfsense_backend/app/services/connector_service.py

⏭️ Files skipped (3)
  Locations  
surfsense_backend/app/retriever/__init__.py
surfsense_backend/app/retriever/chunks_hybrid_search.py
surfsense_backend/app/retriever/documents_hybrid_search.py

@ankitpasayat ankitpasayat mentioned this pull request Dec 6, 2025
16 tasks
@MODSetter
Copy link
Owner

@ankitpasayat Thanks 👍

@MODSetter MODSetter merged commit e1e14c7 into MODSetter:main Dec 7, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants