Skip to content

[DS-4136] Replace websocket w/ REST in Search RAG #1596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2025

Conversation

marc-ckl
Copy link

Description

This PR introduces a dedicated view to replace the existing WebSocket implementation with a REST-based approach.

A new view, DetailSearchRagView, has been added. It accepts the same parameters that were previously handled via the WebSocket and returns a response with the same structure to ensure backward compatibility:

{
"message": str
}

Additionally, a new file search_rag.py was created to encapsulate a simplified version of the logic that was previously implemented inconsumer.py.

Testing and Validation

This functionality was tested locally. I verified that the new REST endpoint behaves as expected, returning the correct structure and handling inputs consistently with the previous WebSocket-based implementation.

Type of Change

[x] New Feature / Enhancement (non-breaking change that add or improves functionality)

@marc-ckl marc-ckl requested review from dnicodemus and erikspears May 27, 2025 18:54
@marc-ckl marc-ckl self-assigned this May 27, 2025
@marc-ckl marc-ckl added the enhancement New feature or request label May 27, 2025
Copy link

Test Results

67 tests   67 ✅  32s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 9e22cb3.

@dnicodemus dnicodemus merged commit 4f8181e into develop May 30, 2025
3 checks passed
@dnicodemus dnicodemus deleted the ds-4136-replace-websocket-with-rest branch May 30, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants