LOT 1 - Optimizare script build -Instalare mono comanda

This commit is contained in:
Dezvoltari Evotech 2026-06-27 06:42:02 -07:00
parent 5380c3fc63
commit 42ff22bf85
127 changed files with 16163 additions and 532 deletions

View file

@ -14,7 +14,7 @@ This module is designed for **fact-checking pipelines**. Given a claim, it:
**Required:**
- All global prerequisites (see main [README.md](../../README.md))
- SearXNG instance (deploy with `cd deploy/metasearch && docker compose up -d`)
- SearXNG instance. The delivered deployment runs a **single** SearXNG container (`didiAI-web-searxng`, internal `:8080`) wired via `local_gpu_stack`. The `deploy/metasearch` cluster (multiple replicas) is an **optional** scaling variant, not the default.
- LLM Inference server (llm-inference module at port 14011)
**Optional:**
@ -66,7 +66,7 @@ cd deploy/
# Configure environment
cat > .env << 'EOF'
WEB_SEARXNG_BASE_URL=http://localhost:55100
WEB_SEARXNG_BASE_URL=http://didiAI-web-searxng:8080
WEB_LLM_BASE_URL=http://didiAI-llm-api:14011
WEB_LLM_API_KEY=your-llm-api-key
WEB_VISION_MODEL=qwen-vl
@ -133,12 +133,12 @@ curl -X POST http://localhost:51100/v1/gather \
{
"claim": "The claim to verify",
"search_queries": ["optional", "custom", "queries"],
"max_search_results": 20,
"max_search_results": 10,
"site_allowlist": ["reuters.com", "bbc.com"],
"site_blocklist": ["spam-site.com"],
"fetch_method": "auto",
"auto_fallback": true,
"extract_snippets": true,
"extract_snippets": false,
"max_evidence_items": 15,
"dedupe": true
}
@ -148,12 +148,12 @@ curl -X POST http://localhost:51100/v1/gather \
|-------|------|---------|-------------|
| `claim` | string | required | The claim to gather evidence for |
| `search_queries` | array | null | Custom search queries (auto-generated if not provided) |
| `max_search_results` | int | 20 | Max search results (5-50) |
| `max_search_results` | int | 10 | Max search results (5-50) |
| `site_allowlist` | array | null | Only search these domains |
| `site_blocklist` | array | null | Exclude these domains |
| `fetch_method` | string | "auto" | "auto", "http", "browse", "vision" |
| `auto_fallback` | bool | true | Escalate on fetch failure |
| `extract_snippets` | bool | true | Use LLM for snippet extraction |
| `extract_snippets` | bool | False | Deprecated — LLM snippet extraction (no longer used by default) |
| `max_evidence_items` | int | 15 | Max items in final pack |
| `dedupe` | bool | true | Deduplicate evidence |
@ -234,8 +234,10 @@ src/web/
├── search/ # Search providers
│ ├── __init__.py
│ ├── protocol.py # SearchProvider Protocol
│ └── searxng.py # SearXNGClient
│ └── protocol.py # SearchProvider Protocol
├── metasearch/ # SearXNG (free tier)
│ └── client.py # SearXNGClient
├── fetch/ # HTTP + readability extraction
│ └── client.py # FetchClient
@ -254,10 +256,12 @@ src/web/
├── dependencies.py # DI (auth, rate limiter)
├── middleware.py # RequestId, RateLimit
└── routes/
├── search.py # POST /v1/search
├── fetch.py # POST /v1/fetch
├── gather.py # POST /v1/gather (main endpoint)
└── health.py # /health, /ready
├── search.py # POST /v1/search
├── image_search.py # POST /v1/image-search
├── fetch.py # POST /v1/fetch
├── gather.py # POST /v1/gather (main endpoint)
├── info.py # GET /v1/info (catalog metadata)
└── health.py # /health, /ready
```
## Deployment
@ -286,7 +290,7 @@ docker compose --profile api down
### Network
The container joins the `deploy_default` network to communicate with:
The container joins the `didi-network` network to communicate with:
- `didiAI-llm-api:14011` - LLM inference server
## Development