Skip to content

Deploy Hugging Face RAG service - #1

Closed
OMCHOKSI108 wants to merge 1 commit into
mainfrom
deploy/hf-rag-service
Closed

Deploy Hugging Face RAG service#1
OMCHOKSI108 wants to merge 1 commit into
mainfrom
deploy/hf-rag-service

Conversation

@OMCHOKSI108

@OMCHOKSI108 OMCHOKSI108 commented Jun 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • HF Space codereview-agent is live at https://OMCHOKSI108-codereview-agent.hf.space
  • Default compute (CPU basic), Docker SDK, 2,833 chunks indexed via all-MiniLM-L6-v2
  • Supports /health and /rag/search endpoints with optional X-CodeSec-RAG-Key auth
  • Verifies against Secrets: RAG_DATASET_REPO, RAG_CORPUS_FILE, RAG_EMBEDDING_MODEL, RAG_BUILD_ON_START

Verification Results

Check Status
curl /health {"status":"ok","index_loaded":true,"total_chunks":2833}
curl /rag/search Returns 2 results for "SQL injection" (top score 0.704)
check_main_api_remote_rag.py RAG used successfully, verdict=WARNING, risk=35
evaluate_reviewer.py 12/12 golden cases pass with remote RAG

Next Steps

  • Set HF_RAG_SPACE_ID, RAG_API_KEY, CODESEC_RAG_SERVICE_URL, CODESEC_RAG_API_KEY in .env for production
  • Configure CI to use remote RAG when caching is set up

Summary by CodeRabbit

  • Chores
    • Updated deployment verification configuration to confirm service availability.

Copilot AI review requested due to automatic review settings June 22, 2026 07:27

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown

Review Change Stack

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Free

Run ID: 43fba08d-2509-4de2-8739-1149623fde71

📥 Commits

Reviewing files that changed from the base of the PR and between 318a791 and b4dc969.

📒 Files selected for processing (1)
  • .deploy-verified

📝 Walkthrough

Walkthrough

A single Verified: entry is appended to the .deploy-verified file, recording that the remote RAG service is live at the specified hf.space URL.

Changes

Deployment Verification

Layer / File(s) Summary
Add verified deployment entry
.deploy-verified
Appends a Verified: record with the hf.space URL indicating the remote RAG service is live.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~1 minute

Poem

A single line, a hop, a cheer,
The RAG service is live, oh dear!
The rabbit stamps with a tiny paw,
"Verified!" — the best thing I ever saw.
🐇✅


Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

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

@github-actions

Copy link
Copy Markdown

CodeSecAudit AI Review

Verdict: APPROVE

Summary

Reviewed 0 changed code file(s) and found 0 potential issue(s). Highest severity: None.

Risk Score

0/100

Issues Found

No security issues detected.


Notes

  • This is an AI-assisted defensive security review.
  • It does not replace manual review or professional SAST tools.

@OMCHOKSI108
OMCHOKSI108 deleted the deploy/hf-rag-service branch June 22, 2026 09:43
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