Skip to content

[LCORE-1342] OKP Solr documentation#1169

Merged
tisnik merged 1 commit intolightspeed-core:mainfrom
Anxhela21:anx/solr-documentation
Feb 17, 2026
Merged

[LCORE-1342] OKP Solr documentation#1169
tisnik merged 1 commit intolightspeed-core:mainfrom
Anxhela21:anx/solr-documentation

Conversation

@Anxhela21
Copy link
Contributor

@Anxhela21 Anxhela21 commented Feb 17, 2026

Description

Initial documentation to help users onboard to using OKP Solr in lightspeed-core. Also, set Solr disabled by default.

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
  • Benchmarks 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

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

  • Documentation

    • Added comprehensive documentation for Solr Vector IO, describing its functionality as a read-only vector search provider. Includes detailed configuration examples, query processing information, system prerequisites, and known limitations for various deployment scenarios.
  • Chores

    • Modified default stack configuration to disable Solr integration.

Signed-off-by: Anxhela Coba <acoba@redhat.com>
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 17, 2026

Walkthrough

This PR adds comprehensive documentation for Solr Vector IO as a read-only vector search provider to the RAG guide, including configuration examples and operational details, while disabling Solr in the default lightspeed-stack.yaml configuration.

Changes

Cohort / File(s) Summary
Documentation
docs/rag_guide.md
Adds Solr Vector IO documentation covering configuration examples for run.yaml and lightspeed-stack.yaml, query processing details, prerequisites, and limitations.
Configuration
lightspeed-stack.yaml
Disables Solr by changing solr.enabled from true to false and adds section comment header for clarity.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • tisnik
  • matysek
  • umago
🚥 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 reflects the main changes: adding documentation for OKP Solr and disabling it by default in the configuration.
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

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


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: 2

🧹 Nitpick comments (1)
docs/rag_guide.md (1)

297-304: Documentation example shows enabled: true while the default config sets it to false — add a note for clarity.

The lightspeed-stack.yaml default now ships with enabled: false. The example here correctly shows enabled: true (since this is the "how to enable" section), but a brief sentence noting that Solr is disabled by default and must be explicitly enabled would help users avoid confusion.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/rag_guide.md` around lines 297 - 304, Add a brief clarifying sentence
under the lightspeed-stack.yaml Solr example stating that Solr is disabled by
default in the shipped configuration and must be explicitly enabled (set
solr.enabled: true) to use Solr vector IO or offline mode; reference the
lightspeed-stack.yaml example block and the solr.enabled field when inserting
the note so readers understand this is an intentional override.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/rag_guide.md`:
- Around line 264-266: The Table of Contents is missing an entry for the new
"Solr Vector IO" subsection; update the existing ToC by adding a bullet like "*
[Solr Vector IO](`#solr-vector-io`)" under the other items so the "Solr Vector IO"
header links from the ToC and navigation stays consistent with the new section.
- Around line 320-321: The GitHub link in the Solr instruction is missing the
required ref segment (e.g., /blob/main/) and is therefore invalid; update the
URL string (the one pointing to lightspeed-providers ... README.md) to include
/blob/main/ between the repository and path so it matches the corrected form
(https://github.com/lightspeed-core/lightspeed-providers/blob/main/lightspeed_stack_providers/providers/remote/solr_vector_io/solr_vector_io/README.md).

---

Nitpick comments:
In `@docs/rag_guide.md`:
- Around line 297-304: Add a brief clarifying sentence under the
lightspeed-stack.yaml Solr example stating that Solr is disabled by default in
the shipped configuration and must be explicitly enabled (set solr.enabled:
true) to use Solr vector IO or offline mode; reference the lightspeed-stack.yaml
example block and the solr.enabled field when inserting the note so readers
understand this is an intentional override.

Comment on lines +264 to +266
### Solr Vector IO

The OKP (Offline Knowledge Portal) Solr Vector IO is a read-only vector search provider that integrates with Apache Solr for enhanced vector search capabilities. It enables retrieving contextual information from Solr-indexed Red Hat documents to enhance query responses with support for hybrid search and chunk window expansion.
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

Table of Contents is missing an entry for the new Solr Vector IO section.

The ToC (lines 12–22) doesn't link to this new subsection. Consider adding an entry like * [Solr Vector IO](#solr-vector-io) under the existing items to keep navigation consistent.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/rag_guide.md` around lines 264 - 266, The Table of Contents is missing
an entry for the new "Solr Vector IO" subsection; update the existing ToC by
adding a bullet like "* [Solr Vector IO](`#solr-vector-io`)" under the other items
so the "Solr Vector IO" header links from the ToC and navigation stays
consistent with the new section.

Comment on lines +320 to +321
- Solr must be running and accessible at the configured URL
for instructions on how to pull and run the OKP Solr image visit: https://github.com/lightspeed-core/lightspeed-providers/lightspeed_stack_providers/providers/remote/solr_vector_io/solr_vector_io/README.md
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:

# First, check if docs/rag_guide.md exists and read the relevant lines
if [ -f "docs/rag_guide.md" ]; then
  echo "=== Lines 320-321 from docs/rag_guide.md ==="
  sed -n '320,321p' docs/rag_guide.md
  echo ""
  echo "=== Context (lines 315-325) ==="
  sed -n '315,325p' docs/rag_guide.md
else
  echo "File docs/rag_guide.md not found"
fi

Repository: lightspeed-core/lightspeed-stack

Length of output: 856


🏁 Script executed:

# Check if the solr_vector_io directory exists
fd -t d "solr_vector_io" . 2>/dev/null || echo "Directory not found via fd"

# Also check git ls-files for README files
echo "=== Searching for README files in lightspeed_stack_providers ==="
git ls-files | grep -i "lightspeed_stack_providers.*solr.*README" || echo "No matches found"

# List directory structure if it exists
if [ -d "lightspeed_stack_providers" ]; then
  echo "=== lightspeed_stack_providers structure ==="
  find lightspeed_stack_providers -type f -name "README*" 2>/dev/null | head -20
fi

Repository: lightspeed-core/lightspeed-stack

Length of output: 157


🏁 Script executed:

# Test the corrected URL format
echo "=== Testing corrected GitHub URL format ==="
curl -s -I "https://github.com/lightspeed-core/lightspeed-providers/blob/main/lightspeed_stack_providers/providers/remote/solr_vector_io/solr_vector_io/README.md" | head -1

echo ""
echo "=== Testing original malformed URL ==="
curl -s -I "https://github.com/lightspeed-core/lightspeed-providers/lightspeed_stack_providers/providers/remote/solr_vector_io/solr_vector_io/README.md" | head -1

# Also check if the lightspeed-providers repo exists
echo ""
echo "=== Testing if lightspeed-providers repo exists ==="
curl -s -I "https://github.com/lightspeed-core/lightspeed-providers" | head -1

Repository: lightspeed-core/lightspeed-stack

Length of output: 250


Broken GitHub URL — missing /blob/main/ segment.

The link in line 321 is syntactically invalid. GitHub URLs require a ref segment (/blob/main/, /blob/branch/, etc.) between the repository name and the file path. The current URL concatenates them directly.

Correct the URL to:

https://github.com/lightspeed-core/lightspeed-providers/blob/main/lightspeed_stack_providers/providers/remote/solr_vector_io/solr_vector_io/README.md
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/rag_guide.md` around lines 320 - 321, The GitHub link in the Solr
instruction is missing the required ref segment (e.g., /blob/main/) and is
therefore invalid; update the URL string (the one pointing to
lightspeed-providers ... README.md) to include /blob/main/ between the
repository and path so it matches the corrected form
(https://github.com/lightspeed-core/lightspeed-providers/blob/main/lightspeed_stack_providers/providers/remote/solr_vector_io/solr_vector_io/README.md).

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

@tisnik tisnik merged commit be812e7 into lightspeed-core:main Feb 17, 2026
19 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

Comments