Replace embedding/DBSCAN aggregation with LLM-based pipeline #12
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/issue-1-llm-aggregation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Replace the embedding + DBSCAN article aggregation pipeline with a single cloud-LLM call per run.
Changes
EmbeddingPipeline,AggregationService,embedder.py,aggregator.py,db/embeddings.pysentence-transformers,scikit-learn,numpy— eliminates ~42 CUDA transitive deps (~1 GB)LlmAggregationServiceusing OpenAI-compatible/chat/completionsendpoint (configured viaYUNJIN_LLM_API_KEY,YUNJIN_LLM_BASE_URL,YUNJIN_LLM_MODEL)embeddingstable, add index onaggregates.updated_at--refresh(was--recalculate),--aggregate-ttl-days; remove--epsand--min-samplesTests
27 unit and integration tests for
LlmAggregationService(all passing, no live API calls).Closes #1
This PR is too large to review automatically (5021 lines; limit is 2000). Please consider splitting it into smaller PRs.
New commits pushed, approval review dismissed automatically according to repository settings
This PR is too large to review automatically (5036 lines; limit is 2000). Please consider splitting it into smaller PRs.
This PR is too large to review automatically (4998 lines; limit is 2000). Please consider splitting it into smaller PRs.