Files
kwcode/pyproject.toml
Val-sss 6489c1c8f7 Add 6-step search pipeline: Intent→Query→DDG→Filter→Fetch→Compress
Replaces the old single-file SearchAugmentor with a modular pipeline:
- IntentClassifier (keyword-based, no LLM)
- QueryGenerator (LLM, intent-aware English queries)
- DuckDuckGo HTML scraper (bs4, zero API key)
- QualityFilter (domain whitelist/blacklist)
- ContentFetcher (trafilatura with httpx timeout control)
- ContextCompressor (LLM, hard-capped at 400 chars)

V4 validation: 4/4 intent, 4/4 DDG, 3/4 fetch, 4/4 compress.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-26 19:55:05 +08:00

30 lines
607 B
TOML

[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "kaiwu"
version = "0.3.0"
description = "Local-model coding agent with MoE expert pipeline"
requires-python = ">=3.10"
dependencies = [
"llama-cpp-python>=0.2.90",
"typer>=0.12.0",
"rich>=13.0.0",
"pydantic>=2.0.0",
"httpx>=0.27.0",
"gitpython>=3.1.0",
"psutil>=5.9.0",
"beautifulsoup4>=4.12.0",
"lxml>=5.0.0",
"trafilatura>=1.12.0",
]
[project.scripts]
kaiwu = "kaiwu.cli.main:app"
[tool.setuptools.packages.find]
where = ["."]
include = ["kaiwu*"]