feat(rag): add claw-rag-service

Adds claw-rag-service for repository indexing and semantic search.
This commit is contained in:
gismo212
2026-05-25 05:25:25 +03:00
committed by GitHub
parent 52572d5883
commit a4efdc43d7
12 changed files with 1510 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# qdrant-client currently requires a fairly recent stable Rust.
# Keep this pinned to avoid surprise breaks from `rust:latest`.
FROM rust:1.91-bookworm AS builder
WORKDIR /repo
COPY . /repo/rust/
WORKDIR /repo/rust
# Sanity check toolchain version (helps debug CI/Docker Desktop issues).
RUN rustc --version && cargo --version
# Build the service with qdrant support enabled (works even if you don't use qdrant).
RUN cargo build -p claw-rag-service --release --features qdrant-index
FROM debian:bookworm-slim
WORKDIR /app
COPY --from=builder /repo/rust/target/release/claw-rag-service /app/claw-rag-service
EXPOSE 8787
ENTRYPOINT ["/app/claw-rag-service"]