Skip to content

feat: implement course retrieval service with Qdrant integration#114

Merged
mhd-hi merged 6 commits into
devfrom
query-time
Jun 9, 2026
Merged

feat: implement course retrieval service with Qdrant integration#114
mhd-hi merged 6 commits into
devfrom
query-time

Conversation

@mhd-hi

@mhd-hi mhd-hi commented Jun 5, 2026

Copy link
Copy Markdown
Member

⁉️ Related Issue

closes #110

📖 Description

  • Added CourseRetrieverService: embeds a user query with the BGE-M3 prefix and searches Qdrant, returning deduplicated top-K courses sorted by score.
  • Added POST /retrieval/courses endpoint with request/response DTOs and Swagger docs.
  • Extended QdrantCourseIndexService with payload filter support (program IDs, cycle).
  • Fixed worker thread crash on reuse (before onnxruntime-node, after onnxruntime-web redirect)
  • Fixed extractor state not resetting after a failed model load

🧪 How Has This Been Tested?

  • Added integration tests for CourseRetrieverService and extended existing mapper/service tests

☑️ Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.

🖼️ Screenshots (if useful)

image

@mhd-hi mhd-hi changed the base branch from main to dev June 5, 2026 20:33
@mhd-hi mhd-hi changed the title Query time feat: implement course retrieval service with Qdrant integration Jun 5, 2026
@github-actions

github-actions Bot commented Jun 5, 2026

Copy link
Copy Markdown

Test Coverage

Lines Statements Branches Functions
Coverage: 88%
88.45% (4974/5623) 91.78% (816/889) 92.06% (290/315)

@mhd-hi mhd-hi marked this pull request as ready for review June 8, 2026 23:14
@mhd-hi mhd-hi requested a review from Jung500 June 9, 2026 05:15
@sonarqubecloud

sonarqubecloud Bot commented Jun 9, 2026

Copy link
Copy Markdown

@Jung500

Jung500 commented Jun 9, 2026

Copy link
Copy Markdown

Other than the last question, everything else LGTM.

Comment thread src/embedding/embedding-course.mapper.ts
@mhd-hi mhd-hi merged commit 42505a8 into dev Jun 9, 2026
8 checks passed
@mhd-hi mhd-hi deleted the query-time branch June 9, 2026 22:56
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