Skip to content

Add Document Ingestion module for curated docs and web search - #48

Open
ParamThakkar123 wants to merge 21 commits into
mainfrom
ingestion
Open

Add Document Ingestion module for curated docs and web search#48
ParamThakkar123 wants to merge 21 commits into
mainfrom
ingestion

Conversation

@ParamThakkar123

Copy link
Copy Markdown
Collaborator

Summary

Adds a new HealthLLM.Ingestion module for pulling documentation into a RAG index from curated sources (JuliaHealth, OMOP CDM, OHDSI, FunSQL.jl) and live web search via a pluggable provider (DuckDuckGo).

New files

  • src/ingestion.jl — module entry point
  • src/ingestion/types.jl — SourceDocument, SearchResult types
  • src/ingestion/curated.jl — CURATED_SOURCES registry
  • src/ingestion/fetch.jl — fetch_url, html_to_text, fetch_curated
  • src/ingestion/search.jl — AbstractSearchProvider, DuckDuckGoProvider
  • src/ingestion/pipeline.jl — ingest, ingest_to_index orchestration
  • test/IngestionTest.jl — offline unit tests
  • docs/src/ingestion.md — full documentation

Dependencies added

  • HTTP, URIs

Modified files

  • Project.toml, src/HealthLLM.jl, docs/make.jl, docs/src/index.md, test/runtests.jl

ParamThakkar123 and others added 21 commits February 27, 2026 12:52
- Resolved merge conflicts in .gitignore, Project.toml, docs/src/index.md,
  src/HealthLLM.jl, src/database.jl, src/query.jl, src/utils.jl, test/runtests.jl
- Removed src/embedding.jl and src/pgvector.jl (deleted by other branch;
  functionality inlined into utils.jl and database.jl respectively)
- Added missing  imports to HealthLLM module
- Added docstrings with arguments, returns, and examples to public functions
- Updated docs example to show full pipeline
- docs/src/index.md: Full pipeline guide covering file collection,
  model registration, embedding building/validation/storage, RAG querying,
  and database query usage
- src/utils.jl: Add docstrings to build_index_rag, get_schema,
  HuggingFaceLoadResult, load_huggingface_model, register_models
- test/: Fix UtilsTest, DatabaseTest, QueryTest with proper module imports;
  remove stale PgvectorTest/EmbeddingTest; add pipeline tests;
  remove DrWatson dependency; fix test/Project.toml deps
- Project.toml: Add DrWatson compat entry for Aqua compliance
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Introduces a new Ingestion module that pulls documentation into a RAG index
from two kinds of sources: curated docs (JuliaHealth, OMOP CDM, OHDSI,
FunSQL.jl) and live web search via a pluggable provider (DuckDuckGo).
Includes HTTP/S fetch with HTML-to-text cleaning, a search provider
interface, and an orchestration pipeline (ingest/ingest_to_index) that
feeds directly into RAGTools for indexing.

New files:
- src/ingestion.jl — module entry point
- src/ingestion/types.jl — SourceDocument, SearchResult
- src/ingestion/curated.jl — CURATED_SOURCES registry
- src/ingestion/fetch.jl — fetch_url, html_to_text, fetch_curated
- src/ingestion/search.jl — AbstractSearchProvider, DuckDuckGoProvider
- src/ingestion/pipeline.jl — ingest, ingest_to_index
- test/IngestionTest.jl — unit tests for offline logic
- docs/src/ingestion.md — full user-facing documentation

Dependencies added: HTTP, URIs
@codecov

codecov Bot commented Jul 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 36.44068% with 75 lines in your changes missing coverage. Please review.
✅ Project coverage is 47.64%. Comparing base (8c40129) to head (22c9403).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/ingestion/fetch.jl 51.06% 23 Missing ⚠️
src/ingestion/pipeline.jl 0.00% 21 Missing ⚠️
src/ingestion/search.jl 11.11% 16 Missing ⚠️
src/database.jl 25.00% 15 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #48       +/-   ##
===========================================
+ Coverage   27.27%   47.64%   +20.37%     
===========================================
  Files           4        9        +5     
  Lines          88      191      +103     
===========================================
+ Hits           24       91       +67     
- Misses         64      100       +36     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant