A free, local, intelligent search engine mimicking Exa with Playwright, LangGraph, up to 90% token pruning, and optional Gemini enhancement.
A free, local, intelligent search tool mimicking Exa with Playwright, LangGraph, up to 90% algorithmic token pruning, and optional Gemini enhancement with Reddit community fact-checking.
pip install brongtus playwright install chromium To enable Gemini enhancement and local LLM drivers:
pip install "brongtus[gemini,local-llm]" Quickstart 1. Pure Local Search (100% Free) Runs completely offline without external APIs:
from brongtus import Brongtus engine = Brongtus(local_model="qwen2.5:7b") response = engine.search("solid state battery commercialization", num_results=3) print(f"Token savings: {response.token_savings_percent}%\n") for r in response.results: print(f"[{r.score}] {r.title}") print(f"URL: {r.url}") print(f"Summary: {r.summary}") for h in r.highlights: print(f" - {h}") print("-" * 50) 2. Hybrid Mode (Gemini 3.6 Flash + Reddit Fact-Checking) Add your GEMINI_API_KEY (in .env or passed directly) to unlock ultra-smart curation and Reddit community cross-verification:
import os from brongtus import Brongtus engine = Brongtus( gemini_api_key=os.getenv("GEMINI_API_KEY"), gemini_model="gemini-3.6-flash", # Default model enable_compression=True ) response = engine.search("lenovo legion series laptops battery life") # Standard Web Results for r in response.results: print(f"[{r.score}] {r.title} ({r.url})") print(f"Summary: {r.summary}\n") # Fact-Checked Community Insights if response.community_insights: ci = response.community_insights print("Community Consensus:\n", ci["community_sentiment"]) print("\nVerified Takeaways:") for v in ci["verified_takeaways"]: print(f" [+] {v}") print("\nDebunked Rumors / Myths:") for d in ci["debunked_or_unverified"]: print(f" [!] {d}") LangChain & Agent Integration LangChain AI Agent Tool (BrongtusSearchResults) Bind BrongtusSearchResults directly to tool-calling agents:
from brongtus.langchain import BrongtusSearchResults from langchain_google_genai import ChatGoogleGenerativeAI from langchain_core.messages import HumanMessage # Initialize tool search_tool = BrongtusSearchResults(num_results=3) # Bind tool to model llm = ChatGoogleGenerativeAI(model="gemini-3.6-flash").bind_tools([search_tool]) # Run query ai_msg = llm.invoke([HumanMessage(content="Find real-world experiences with Lenovo Legion battery life")]) LangChain RAG Retriever (BrongtusRetriever) Plug local search directly into RAG chains:
brongtus exa langchain langgraph playwright search token-pruning web-scraping
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




