LH

lastsearch-hq/lastsearch

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

20 stars 8 forks Качество 82 Тренд 30Apache-2.0

Reliable research infrastructure for AI agents. Evidence-backed web search with citations, confidence scores, and Clarity anti-hallucination. MCP server, REST API, Python SDK.

Обзор

— real-time web search, evidence extraction, verification, and structured citations. Every claim is backed by a URL. Every answer has a confidence score. npm: lastsearch · PyPI: lastsearch · LangChain: langchain-lastsearch — Previously lastsearch and lastsearch. Old names still work and redirect automatically. Every answer goes through a multi-step verification pipeline. No hallucination. Every claim is backed by a real source. Confidence scores are — not LLM self-assessed. After the LLM extracts claims and sources, a post-extraction verification engine checks every claim against the actual source page text: 1. — Compound claims are auto-split into individual verifiable facts. "Tesla had $96B revenue and 1.8M deliveries" becomes two atomic claims, each verified independently. 2. — For each claim, keyword matching finds lexical matches and dense embeddings find semantic matches from source text. Rankings are fused to catch paraphrased evidence that keyword matching alone misses (e.

README

Показан фрагмент оригинального README. Открыть оригинал.

LastSearch

Research infrastructure for AI agents — real-time web search, evidence extraction, verification against the sources it finds, and structured citations. Claims link to the URLs they came from, and answers carry an estimated confidence score.

Agent → LastSearch → Internet → Answers + sources + estimated confidence

LastSearch is a free, non-commercial passion project by an independent developer. It searches the public internet and weighs what it finds; sources can be wrong, out of date or biased, so nothing it returns is guaranteed to be true or complete. Confidence scores are automated estimates, not certainty, and the final judgement is yours and your agent’s. Not legal, medical, financial or other professional advice. See the Privacy Policy and Terms.

Website · Playground · API Docs · Alternatives · Discord

Package names: npm: lastsearch · PyPI: lastsearch · LangChain: langchain-lastsearch — Previously lastsearch and lastsearch. Old names still work and redirect automatically.


How It Works

search → fetch pages → neural rerank → extract claims → verify → cited answer (streamed)

Every answer goes through a multi-step verification pipeline that checks each claim against the source pages it cites, so unsupported claims are flagged instead of passed off as fact.

Verification & Confidence Scoring

Confidence scores are evidence-based — not LLM self-assessed. After the LLM extracts claims and sources, a post-extraction verification engine checks every claim against the actual source page text:

  1. Atomic claim decomposition — Compound claims are auto-split into individual verifiable facts. “Tesla had $96B revenue and 1.8M deliveries” becomes two atomic claims, each verified independently.
Открыть полный README на GitHub

Установка

npx -y lastsearch
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "lastsearch": { "command": "npx", "args": ["-y", "lastsearch"], "env": { "LASTSEARCH_API_KEY": "ls_xxx" } } } }