Repository navigation
Local RAG lab, web IDE image and Modal rag-ide pack - #4
Merged
Merged
Conversation
labagent.ai.rag: RAGLabClient with Chroma, Qdrant and in-memory stores, local MiniLM embeddings, a Groq/OpenAI/Anthropic/Ollama gateway that falls back to a marked mock answer, metadata filters, hybrid keyword rerank and an evaluator. labagent rag init / ide / playground. Dockerfile.lab and a Codespaces devcontainer ship code-server pinned by SHA-256. Workspace includes a starter notebook and an SEC 10-K tutorial notebook built on the pinned dataset. Groq calls send an explicit User-Agent (its gateway returns 403 1010 to Python's default). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
labagent launch rag-ide starts one Modal Sandbox per learner with its own volume, a random password written to a 0600 credentials file, an idle shutdown and a hard time cap. code-server runs as an unprivileged user. labagent destroy rag-ide stops every sandbox (also orphans found by tag) and deletes the volumes. The Modal calls sit behind a gateway interface so another platform can be added. Requires the modal extra. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
Local RAG lab (
labagent.ai.rag, extrarag-local)RAGLabClient: ingest files or pre-chunked rows, hybrid retrieval (vector + keyword rerank), metadata filters, citations,evaluate()with a pass mark.labagent rag init | ide | playground.Web IDE image:
Dockerfile.lab(code-server pinned by SHA-256, model pre-cached, non-root) and a Codespaces devcontainer.rag-idepack (extramodal):labagent launch rag-idestarts a private browser VS Code per learner as a Modal Sandbox with its own volume, random password in a 0600 CSV, idle shutdown and a hard time cap;destroyremoves sandboxes and volumes. Modal calls sit behind a gateway interface so another platform (EC2) can be added.Verified
rag init,packs,launch rag-ide --dry-runwork; a missingmodalpackage gives an install hint, not a traceback.Not verified
image=pypineeds a release containinglabagent.ai.rag(not yet cut).Not included
Docs for these features (follow-up) and the throwaway Modal spike.
🤖 Generated with Claude Code