SShortSingh.
Back to feed

Developer Builds Contradiction-Aware Research Agent on Cognee Knowledge Graph

0
·3 views

A developer built ChronoScholar, a research memory agent that ingests arXiv papers into a Cognee knowledge graph and flags when newer papers contradict older stored findings, addressing a key limitation of standard RAG systems. The project was created for the WeMakeDevs x Cognee hackathon using a strict test-driven development approach across 8 components and 60 tests. The system uses Gemini 2.5 Flash to classify relationships between paper pairs and achieved a perfect F1 score of 1.0 on a small 10-pair contradiction detection benchmark, producing 494 entities and 1,025 edges from just 10 ingested papers. Despite comprehensive unit testing, the developer found that all five major integration failures were invisible to the mocked test suite and only surfaced when the real system ran. Key bugs uncovered included a Python str.strip() misuse corrupting JSON output, a silently discarded system prompt in the Groq API call, and greedy template variable substitution causing incomplete prompt rendering.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

PostgreSQL Replans Prepared Statements When Planner Settings Change at EXECUTE

PostgreSQL offers planner configuration parameters like enable_seqscan and enable_indexscan that shape how query execution plans are generated, not how already-planned queries run. A key question arises with prepared statements: do these settings take effect at PREPARE time, at EXECUTE time, or both? Testing with a simple tasks table and a partial index shows that when enable_indexscan is turned off before EXECUTE, PostgreSQL generates a new plan using a sequential scan instead of the previously chosen index scan. This means planner settings applied before EXECUTE can trigger replanning, overriding the plan cached at PREPARE time. Developers should be aware that changing planner parameters between prepare and execute can significantly alter query behavior and performance.

0
ProgrammingDEV Community ·

Dev builds internal-linking system to help new tool pages rank on Google

A solo developer building an image-processing tool in public documented week 17 of their project, focusing not on new features but on SEO infrastructure. After shipping an AI background remover the previous week, they discovered the new tool's pages were orphaned — reachable via sitemap but not linked from anywhere on the site. To fix this, they replaced scattered hardcoded link lists with a single source-of-truth constant that automatically cross-links a hub page and its use-case spoke pages. The same constant also drives layout logic and populates a footer column, meaning any future spoke page requires just one line of code to be fully integrated. A React hydration error caused by invalid HTML nesting was also caught and resolved during the process.

0
ProgrammingDEV Community ·

Omnikon Org's AI-Powered Developer Browser CNTRL Accepted Into ECSoC 2026

Omnikon Org's open-source project CNTRL has been selected for the Elite Coders Summer of Code (ECSoC) 2026 program. CNTRL is an AI-first browser designed specifically for developers, aiming to integrate AI assistance, context-aware documentation, and streamlined research workflows directly into the browsing experience. The selection provides the team an opportunity to collaborate with contributors worldwide and accelerate the project's development. Built using technologies including React, TypeScript, Tauri, and Rust, the project is open to contributions from developers of all skill levels. Omnikon Org, which focuses on creating modern developer tools, says ECSoC participation marks a significant milestone in realizing its vision of making open-source development more accessible and impactful.

0
ProgrammingDEV Community ·

How to Add Security Guardrails to Python LLM Apps Against Prompt Injection

A technical guide published on DEV Community outlines key security boundaries in large language model (LLM) applications built with Python. The article identifies three entry points for untrusted text: user input, retrieved content from RAG pipelines, and model output that feeds into further processing. It focuses on defending against prompt injection attacks, where malicious text attempts to override a model's instructions, by keeping user input in clearly delimited data channels separate from system instructions. The guide also covers input validation, output validation, and PII redaction as part of a broader 'security-forward' approach to LLM app development. Code examples using Anthropic's API illustrate the difference between unsafe string concatenation and safer, delimiter-based prompt construction.