Skip to content

Repository files navigation

RadCrew Unveiled

Monorepo: Vite React site (frontend) and FAQ chatbot API (backend, FastAPI + Uvicorn).

For a system overview and cross-cutting docs, see docs/ (start with docs/architecture.md).

Prerequisites

Install

From the repository root:

yarn install

This repo is Yarn 1 only. Do not run npm install or pnpm install; yarn.lock is the only lockfile, and the Yarn version is pinned by the packageManager field in the root package.json.

Dev (frontend + API)

From the repo root, one command starts both the Vite app and the chat API:

yarn dev
  • Frontend only: yarn dev:frontend
  • API only: yarn dev:backend (runs Uvicorn with reload on backend)

Environment files live in frontend/.env and backend/.env (copy from each package’s .env.example). Details: frontend/README.md, backend/README.md.

Chatbot flow

  • Browser calls POST /chat on the backend URL (VITE_CHATBOT_API_BASE_URL, default http://localhost:8787) and reads a Server-Sent Events stream
  • Guardrails screen the message, then a router sends it to feedback submission or the RAG path
  • RAG retrieves snippets from static site copy and optional GitHub Markdown
  • The configured provider streams a grounded answer: OpenRouter when OPENROUTER_API_KEY is set, otherwise Hugging Face when HF_TOKEN is set (see backend/README.md)
  • Weak retrieval (with no prior conversation history) returns a safe fallback with contact guidance

Tests

yarn test
yarn test:backend

Lint

yarn lint

See frontend/README.md.

Production

yarn build:backend runs compileall on backend/app as a quick syntax check only.

Community

About

RadCrew.org website with LLM-powered chatbot

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

21 stars

Watchers

0 watching

Forks

Contributors

Languages