Feature/migrate workshop3 notebooks - #4
Conversation
- Copy ragV3 notebooks as w3_01–w3_04, config.py, and data/ - Rename existing ragV2 notebooks with w2_ prefix - Update config.py paths (03_workshop → notebooks) - Merge pyproject.toml: add ragas, langchain, pandas, rapidfuzz - Extend 00_setup.ipynb with API test and data file checks - Update cross-references in w3 notebooks - Update .gitignore and README for both workshops
…puts - Restructure README with jump links for Workshop 2 and Workshop 3 - Add 00_aisc/img/ logo images referenced by w3 notebook headers - Clear stale outputs from w3 notebooks
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR expands workshop infrastructure with centralized configuration, enhanced setup procedures, and two new Workshop 3 notebooks implementing RAG evaluation and document ingestion pipelines. It adds dependencies, configuration module, and cached evaluation metrics for reproducible results. Changes
Sequence Diagram(s)sequenceDiagram
participant NB as Notebook<br/>(w3_01)
participant EMB as Embedding<br/>Service
participant VS as Vector<br/>Store
participant LLM as LLM<br/>Service
participant EVAL as RAGAS<br/>Evaluator
NB->>NB: Load questions & references
NB->>EMB: embed_texts(chunks)
EMB-->>VS: Store vectors in memory
loop For each question
NB->>EMB: Embed question
EMB-->>NB: Question embedding
NB->>VS: Cosine similarity ranking
VS-->>NB: Top-K chunk contexts
NB->>LLM: generate(question, contexts)
LLM-->>NB: Generated answer
NB->>EVAL: Score(contexts, answer,<br/>reference)
EVAL->>EMB: Verify embeddings for<br/>correctness metric
EVAL-->>NB: Precision & correctness<br/>scores
end
NB->>NB: Aggregate metrics<br/>& plot results
sequenceDiagram
participant NB as Notebook<br/>(w3_02)
participant PDF as Docling<br/>PDF Processor
participant EMB as Embedding<br/>Service
participant QD as Qdrant<br/>Vector DB
NB->>PDF: Load & convert PDF
PDF-->>NB: Markdown content
NB->>NB: Chunk by headers<br/>or JSON sections
NB->>NB: Normalize OCR text
loop For each chunk batch
NB->>EMB: Batch embed<br/>(truncated text)
EMB-->>NB: Embedding vectors
end
loop For each collection
NB->>QD: Create collection
NB->>QD: Upload vectors as<br/>PointStruct(metadata)
end
NB->>EMB: Embed test question
NB->>QD: Similarity search
QD-->>NB: Top results with<br/>scores & citations
NB->>NB: Print verification
Estimated code review effort🎯 4 (Complex) | ⏱️ ~75 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Migrate Workshop 3 (RAG Evaluation) notebooks
Summary
Changes
Test plan
Summary by CodeRabbit
Release Notes
New Features
Documentation
Chores