Skip to content

Classification model integration - #204

Open
fedorgrab wants to merge 10 commits into
mainfrom
fg-socam-integration
Open

Classification model integration#204
fedorgrab wants to merge 10 commits into
mainfrom
fg-socam-integration

Conversation

@fedorgrab

Copy link
Copy Markdown
Collaborator

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Comment on lines 579 to 583
if embeddings.size == 0:
# No further processing needed if there are no embeddings
return []
knn_response = await self.get_knn_matches_from_embeddings(embeddings=embeddings, model=model)
knn_response = await self.get_knn_matches_from_embeddings(model_output=embeddings, model=model)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Unpack RepresentationModelOutput in search endpoint

The refactor makes get_embeddings return a RepresentationModelOutput, but the search path still unpacks it as query_ids, embeddings and passes embeddings (a RepresentationModelOutput) to get_knn_matches_from_embeddings. At runtime this raises TypeError: cannot unpack non-iterable RepresentationModelOutput and the search endpoint fails before issuing the KNN request. Capture the object returned by get_embeddings and use its sample_ids and embeddings fields when building the response.

Useful? React with 👍 / 👎.

@fedorgrab fedorgrab self-assigned this Oct 15, 2025
@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant