Skip to content

Conversation

@TecSong
Copy link
Owner

@TecSong TecSong commented Feb 3, 2026

  • Add retrieve_iterative method that uses generators to reduce memory footprint
  • Implement iterative retrieval with optional batching
  • Add answer_stream_iterative method that leverages the new retrieval approach
  • Maintain backward compatibility with existing methods

- Add retrieve_iterative method that uses generators to reduce memory footprint
- Implement iterative retrieval with optional batching
- Add answer_stream_iterative method that leverages the new retrieval approach
- Maintain backward compatibility with existing methods
Copy link

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

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.

Reviewed commit: a864e9f95c

ℹ️ 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +174 to +176
fused_score = (
settings.vector_weight * vector_norm.get(chunk_id, 0.0)
+ settings.bm25_weight * bm2_norm.get(chunk_id, 0.0)

Choose a reason for hiding this comment

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

P1 Badge Fix undefined bm2_norm in iterative fusion score

Calling retrieve_iterative will raise a NameError because the fusion score uses bm2_norm, which is never defined in this method. This means any caller of the new iterative retrieval path will crash before yielding results. It looks like a typo for bm25_norm, which is what the non-iterative path uses for BM25 normalization.

Useful? React with 👍 / 👎.

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