Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
push:
branches: [main]
pull_request:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true

- name: Set up Python
run: uv python install 3.11

- name: Install dependencies
run: uv sync

- name: Lint (ruff)
run: uv run ruff check .

- name: Tests (pytest)
run: uv run pytest -q
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# RAG Article Query Filter

[![CI](https://github.com/filippopellizzari/RAG-ArticleQueryFilter/actions/workflows/ci.yml/badge.svg)](https://github.com/filippopellizzari/RAG-ArticleQueryFilter/actions/workflows/ci.yml)

A hybrid retrieval system for news articles that combines dense vector search and BM25 keyword matching, with a BERT-based toxicity gate on incoming queries.

Built as a self-contained ML engineering project to demonstrate systematic retrieval experimentation, modular Python packaging, and production-ready API design.
Expand Down
1 change: 0 additions & 1 deletion tests/test_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from unittest.mock import MagicMock

import pytest
from llama_index.core.schema import NodeWithScore, TextNode

from src.retrieval import make_hybrid_retrieval_fn, reciprocal_rank_fusion
Expand Down
Loading