Skip to content

fix: update embedding extraction to use appropriate async method #2068

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ahgraber
Copy link
Contributor

@ahgraber ahgraber commented Jun 9, 2025

Embedding extraction should be async and use langchain's embed_text method rather than embed_query

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 9, 2025
jjmachan and others added 3 commits June 12, 2025 09:57
- Fixed path filters to use correct directory structure (ragas/src/ragas/** instead of src/ragas/**)
- Updated installation commands to install from ./ragas subdirectory
- Fixed test path to use ragas/tests/unit
- Corrected workflow filename reference from ci.yml to ci.yaml
- Updated experimental path filter to use experimental/ragas_experimental/**

This should resolve the issue where Python tests were being skipped in PRs.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Jun 12, 2025
- Fix E402 import order errors in cost.ipynb notebooks by moving imports to top of cells
- Fix F821 undefined name error in helicone.ipynb by defining HELICONE_API_KEY variable
- Fix F821 undefined name error in openlayer.ipynb by importing openlayer module

This resolves the codestyle_check CI failures.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Jun 12, 2025
jjmachan and others added 4 commits June 12, 2025 10:31
- Fix Haystack import paths to use correct module structure for newer versions
- Fix circular import between metrics/base.py and utils.py by using string annotation
- Add type cast for optimizer.metric assignment to resolve Self type issue

This resolves all pyright type errors in the CI.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Fix pyright working directory: run from ragas/ subdirectory so it correctly resolves module paths
- This resolves the module path conflict: ragas.src.ragas.* vs ragas.*
- Complete Haystack import fixes in __repr__ methods that were missed earlier
- Remove the type cast workaround that's no longer needed

Root cause: pyright was scanning ragas/src/ragas from wrong working directory,
causing incorrect module path resolution in monorepo structure.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
This file is auto-generated by setuptools-scm and should not be committed.
It's already in .gitignore but was accidentally committed.
The path was missing the ragas/ prefix. Should be:
- ragas/src/ragas/_version.py (fixed)
- experimental/ragas_experimental/_version.py (was already correct)

This ensures the auto-generated version files are properly ignored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants