Skip to content

Removed faiss dependency (downstream image)#1097

Merged
are-ces merged 1 commit intolightspeed-core:mainfrom
are-ces:remove-faiss-dep
Feb 3, 2026
Merged

Removed faiss dependency (downstream image)#1097
are-ces merged 1 commit intolightspeed-core:mainfrom
are-ces:remove-faiss-dep

Conversation

@are-ces
Copy link
Contributor

@are-ces are-ces commented Feb 3, 2026

Description

Removed the faiss-cpu package which is already included in the downstream image.

Type of change

  • Refactor
  • New feature
  • Bug fix
  • CVE fix
  • Optimization
  • Documentation Update
  • Configuration Update
  • Bump-up service version
  • Bump-up dependent library
  • Bump-up library or tool used for development (does not change the final image)
  • CI configuration change
  • Konflux configuration change
  • Unit tests improvement
  • Integration tests improvement
  • End to end tests improvement

Tools used to create PR

Identify any AI code assistants used in this PR (for transparency and review context)

  • Assisted-by: (e.g., Claude, CodeRabbit, Ollama, etc., N/A if not used)
  • Generated by: (e.g., tool name and version; N/A if not used)

Related Tickets & Documents

  • Related Issue #
  • Closes #

Checklist before requesting a review

  • I have performed a self-review of my code.
  • PR has passed all pre-merge test jobs.
  • If it is a core feature, I have added thorough tests.

Testing

  • Please provide detailed steps to perform tests related to this code change.
  • How were the fix/results from this change verified? Please provide relevant screenshots or results.

Summary by CodeRabbit

  • Chores
    • Removed a package dependency from the container build configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 3, 2026

Walkthrough

A single pip dependency (faiss-cpu==1.11.0) was removed from the Dockerfile's pip install command while retaining azure-identity. The remainder of the build configuration remains unchanged.

Changes

Cohort / File(s) Summary
Dockerfile Configuration
test.containerfile
Removed faiss-cpu==1.11.0 from the pip install dependencies; azure-identity package installation retained.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: removing the faiss-cpu dependency from the Dockerfile, which aligns with the PR's objective.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Important

Action Needed: IP Allowlist Update

If your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:

  • 136.113.208.247/32 (new)
  • 34.170.211.100/32
  • 35.222.179.152/32

Failure to add the new IP will result in interrupted reviews.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@test.containerfile`:
- Line 6: Remove the explicit pip installation of faiss-cpu from the Dockerfile
layer that contains the RUN pip install azure-identity command (look for the RUN
pip install ... line in test.containerfile), since faiss-cpu is provided by the
base image's RHOAI wheels index; ensure the RUN line only installs
azure-identity (or other explicit packages) and delete any reference to
faiss-cpu, and add a short comment noting faiss-cpu is supplied by the base
image (rhoai-3.3) and to verify that rhoai-3.3 includes a compatible faiss-cpu
version.

# Install missing dependencies and create required directories
USER root
RUN pip install faiss-cpu==1.11.0 azure-identity && \
RUN pip install azure-identity && \
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
echo "=== Searching for faiss-cpu references in dependency files ==="
rg "faiss" --type python --type toml --type txt

echo ""
echo "=== Looking for pyproject.toml files ==="
fd -t f "pyproject.toml" -x head -100 {}

echo ""
echo "=== Checking for requirements files ==="
fd -t f "requirements.*" -x head -50 {}

echo ""
echo "=== Checking all Containerfile/Dockerfile files ==="
fd -t f -e Containerfile -e Dockerfile -x cat {}

Repository: lightspeed-core/lightspeed-stack

Length of output: 13900


Faiss-cpu is already managed through the base image's RHOAI wheels index.

The faiss-cpu version is pinned in the RHOAI wheels repository (currently 1.12.0 in requirements.hashes.wheel.txt) and controlled at the base image level (odh-llama-stack-core-rhel9:rhoai-3.3), not as a direct dependency in pyproject.toml. Removing the explicit pip install is consistent with this approach, as the dependency is already supplied by the base image.

Verify that the base image version (rhoai-3.3) includes a compatible faiss-cpu version for the rest of your deployment.

🤖 Prompt for AI Agents
In `@test.containerfile` at line 6, Remove the explicit pip installation of
faiss-cpu from the Dockerfile layer that contains the RUN pip install
azure-identity command (look for the RUN pip install ... line in
test.containerfile), since faiss-cpu is provided by the base image's RHOAI
wheels index; ensure the RUN line only installs azure-identity (or other
explicit packages) and delete any reference to faiss-cpu, and add a short
comment noting faiss-cpu is supplied by the base image (rhoai-3.3) and to verify
that rhoai-3.3 includes a compatible faiss-cpu version.

Copy link
Contributor

@tisnik tisnik left a comment

Choose a reason for hiding this comment

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

LGTM

@are-ces are-ces merged commit 94816ef into lightspeed-core:main Feb 3, 2026
21 of 22 checks passed
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