SShortSingh.
Back to feed

Keep the Weekend AI Demo Read-Only: Answer From Fixed Passages Only

0
·3 views

A weekend demo of an AI question-answering tool can be limited to reading a handful of approved passages rather than editing files or contacting people. The suggested design loads four synthetic notes from a fixture bundle, gives each an ID, title and line numbers, and passes only the selected passage to the model. The model gets no file browser, command runner, write connector or credentials, and a local or stub model can keep data on the machine, since remote inference still counts as external disclosure. Tests cover in-note answers, unanswerable questions that should return "not present in the supplied passage," rejection of unknown IDs, and oversized inputs, with citations checked against the actual fragment supplied and any proposed edit printed without changing the original. The author notes that this design excludes user-supplied paths and shared writable folders, which would require authorization, storage and concurrency decisions beyond a fixed bundle.

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 ·

OpenAI's OpenWorks pilot pays US local experts to coach small businesses on AI

OpenAI launched OpenWorks, a US-only pilot on 23 November 2026, that funds local AI experts to work in person with independently owned small businesses at no cost to the firms. Partners are contractors who may earn up to $8,000 a month, a ceiling rather than a guaranteed payment, and must spend at least four full days a month with local businesses. Participating businesses also receive three months of ChatGPT Business free, and the pilot covers 20 US communities. OpenAI has announced no plans to expand the program to India or other countries. The company's published case studies report owner-estimated results that have not been independently verified.

0
ProgrammingDEV Community ·

Guide Shows How to Run a WireGuard VPN Server with WG-Easy on a Contabo VPS

A DEV Community tutorial explains how to set up a private VPN using the WireGuard protocol and the WG-Easy web dashboard on a Contabo cloud server. It argues that commercial VPNs can suffer from shared-IP CAPTCHA blocks, peak-hour slowdowns, and trust concerns over logging. The guide walks through installing Docker, enabling IP forwarding, configuring the container and firewall rules, and generating client configurations. It also claims WireGuard offers faster handshakes and better battery efficiency on mobile devices than OpenVPN. The author concludes that self-hosting can offer a private alternative to paid commercial VPN services.

0
ProgrammingDEV Community ·

Debugging Duplicate and Missing Cron Runs Across a DST Transition

A daily report scheduled for 02:30 Europe/Berlin is ambiguous on 25 October 2026, when that local time occurs at both 00:30 and 01:30 UTC. The article argues that the correct behavior depends on a scheduling contract, such as running once per local business date or once per real UTC instant, and that jobs on the same machine may follow different rules. It recommends keying business operations on job name and intended local date, avoiding recomputing slots from the worker's clock on retries, and recording delivery attempts separately from completed operations. It also suggests testing fixtures for both ambiguous instants, a normal summer date, and delayed redeliveries, then comparing expected slots against completed operations and delivery history. Because scheduler policies vary, the author advises validating the actual schedule and dispatch records alongside application-level tests.

0
ProgrammingDEV Community ·

Benchmark Rankings Can Flip Depending on Task Mix, Study Shows

A benchmark's winner can change without either model changing, depending on how tasks are grouped and weighted. The article uses constructed figures: two systems tested on ten edit tasks and ten refactors, where one leads on edits and the other on refactors. Weighting edits at 75% of a workload favors the first system, while a 25% edit weighting reverses the outcome. The author recommends fixing task definitions, scoring rules, and missing-case handling before running tests, and reporting results per stratum. Paired analysis on shared task IDs is advised for judging whether performance differences are meaningful.