About
## Challenges we ran into
**Building a Graph-RAG pipeline on free-tier cloud was harder than we expected. These were the main hurdles:**
**Challenge 1 - Wrong evidence from vector search**
When we first asked questions like “Dharavi,” the system did return an answer - but the sources were pulling from unrelated Mumbai cases. Vector search was picking the nearest chunks by similarity, even when they weren’t about the place in the question. That showed us embeddings alone weren’t enough. We added query-focus filtering, entity matching, and keyword recall. After that, answers actually came from reporting that matched the question.
**Challenge 2 - When to answer from the graph vs. when to crawl the web**
The core idea was: if the graph doesn’t have enough evidence, the system should go fetch new data from the public web. The hard part was defining “enough.” Without a clear rule, it would either crawl on every query or almost never. We set a threshold: we need a minimum number of high-confidence chunks before answering from the graph alone. If that bar isn’t met, the OSINT pipeline runs - search, crawl, ingest, then ask again. That made the system genuinely adaptive instead of crawling blindly every time.

**Challenge 3 - The OSINT pipeline kept breaking mid-flow**
One question triggers a long chain: web search, page crawl, article cleaning, entity extraction, saving to Neo4j, generating embeddings, then answering again. If any step failed, it looked like the app had frozen. We added background jobs, step-by-step progress in the UI, and a crawler fallback - if Scrapy fails, httpx takes over. Users can now see whether the system is searching, crawling, or updating the graph.
**Challenge 4 - LLM extraction wasn’t trustworthy at first**
The graph depends on extracting people, drugs, locations, and cases from articles. Smaller models sometimes echoed the JSON schema back instead of filling it in, or left entities blank. Irrelevant news was getting ingested too. We moved to a stronger model and added a lexicon check first - if an article has no narcotics signal, don’t extract it at all. That kept the graph cleaner and made answers much more useful.
**Challenge 5 - Split-host deploy looked fine until the browser hit the API**
The frontend is on Vercel and the API is on Render, so a green GitHub deploy still meant a broken product. Every Vercel preview minted a new *.vercel.app origin, and Render CORS rejected it — localhost worked, live previews did not. OTP over Gmail then died because Render cannot open SMTP on port 587; Resend over HTTPS still would not mail judges without a verified domain. We allowed Vercel preview origins by regex, dropped JWT/OTP rather than demo a login that could not verify anyone, and fixed a TypeScript HeadingLevel mismatch that was failing the Vercel build even when the API was healthy. After that, the console and the graph actually talked to each other in production.

## The problem it solves
**Narcotics intelligence is scattered and hard to connect.**
Seizures, arrests, and trafficking reports sit in separate news articles, press notes, and portals. Keyword search finds documents, not relationships - who is linked to whom, which drugs move through which routes, and which cases share the same people or locations.
Anti-Narcos Graph Intel turns public reporting into a Neo4j knowledge graph and lets analysts ask questions in plain language. The system:
Retrieves evidence with vector search + graph traversal (not guesswork) Shows sources, entities, and network links for every answer Auto-expands when the graph is thin - it searches the web, crawls relevant pages, extracts entities, and re-answers from updated data Surfaces risk patterns (repeat offenders, hub locations, cross-case links) as analyst aids - not verdicts Who it helps: law-enforcement analysts, researchers, and investigators who need faster situational awareness without manually reading hundreds of articles.
Impact: hours of manual link analysis -> one question, cited answer, and an explorable network graph. [](url)

Screenshots
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.










