메뉴
HN
Hacker News • 51일 전

오픈소스 모델로 최신 AI 검색 능가, 비용은 100분의 1

IMP
8/10
핵심 요약

AI 모델 후처리(Post-training) 플랫폼인 Castform은 4B(40억 매개변수) 규모의 오픈소스 모델을 강화학습(RL) 후처리하여, 막대한 비용이 드는 최신 폐쇄형 API 모델(GPT-5.6 등)과 동등한 검색 정확도를 달성했습니다. 기업이 이미 보유한 데이터베이스 내의 데이터를 활용해 복잡한 인프라나 수동 데이터 라벨링 없이도 저렴하고 효율적으로 AI 에이전트를 구축할 수 있게 해줍니다.

번역된 본문

블로그 / 제품으로 돌아가기

Castform과 Neon이 가격 및 효율성에서 최신 폐쇄형 AI 모델(Frontier Models)을 능가하는 방법

Castform으로 후처리(Post-trained)된 4B 규모의 오픈소스 모델은 GPT-5.6 Sol만큼 정확하게 검색 결과를 가져오면서도 비용은 100배 더 저렴합니다.

Pranav Aurora, Ying Hang Seah, Angel Pan / 2026년 8월 5일

변경 로그 구독하기 최신 업데이트만 받아보세요. 스팸 없음을 보장합니다. 구독하기

"대부분의 팀이 가진 최고의 학습 데이터는 그들의 데이터베이스에 그냥 방치되어 있습니다. 문제는 원시 데이터를 유용한 형태로 변환하는 것이 어렵고, 에이전트가 대규모로 데이터를 저렴하게 읽고, 검색하고, 변경할 수 있게 하려면 고급 인프라가 필요하다는 것입니다. Castform을 Neon에 연결하면 이 두 가지 문제를 모두 건너뛸 수 있습니다." - Ying Hang Seah, Castform 공동 창립자

'좋은 AI 에이전트'는 두 가지 영역에서 강력해야 합니다. 컨텍스트: 올바른 데이터를 찾기 위한 도구를 제공할 수 있는가? 모델: 무엇을 검색해야 할지 모델이 스스로 결정할 수 있는가? Neon(Lakebase Postgres)과 그들의 새로운 검색 확장 기능은 첫 번째를 해결하고, Castform은 두 번째를 해결합니다.

에이전트 검색의 발전 2022년경, 업계는 임베딩 검색(Embedding Search)에 전적으로 집중했습니다. 모든 데이터베이스 제공업체가 이를 추가했으며, pgvector는 Neon에서 가장 많이 다운로드된 확장 프로그램이었습니다. 엔지니어들은 대형 언어 모델(LLM)에 컨텍스트를 제공하기 위해 수동으로 RAG 파이프라인을 구축했는데, 이는 본질적으로 임베딩 유사도 검색의 한 형태였습니다.

2025년경, 에이전트가 더욱 주목받기 시작했습니다. 개발자들은 큰 문제를 더 작은 문제로 분해하는 '다중 홉(Multi-hop)' 검색 워크플로우를 만들기 시작했습니다. 검색은 일회성 검색 시스템에서 에이전트형 검색(Agentic Retrieval)으로 전환되었습니다. 단일 쿼리를 던지는 대신, 모델이 계획을 세우고 루프 내에서 여러 번 검색을 수행합니다. 모든 루프 반복은 최신 폐쇄형 모델에 대한 추가 호출을 의미했으며, 이는 사용자 요청당 전체 비용과 지연 시간을 증가시켰습니다. 구체적으로, gpt-5.6-sol을 사용한 일반적인 다중 턴 검색 요청은 10초 이상 걸리며 엔드투엔드 비용이 약 $0.03가 들어, 사용이 불가능할 정도로 느리고 비쌌습니다.

반면, 소규모 오픈소스 가중치 모델은 100배 더 저렴합니다. 하지만 기본 상태에서는 폐쇄형 API 모델에 비해 성능이 뒤처집니다. 강화학습(RL) 후처리(Post-training)는 이 격차를 줄이는 데 도움이 됩니다. 검색과 같은 특정 작업에서는, 후처리된 오픈소스 모델이 최신 폐쇄형 모델과 일치하거나 이를 능가할 수 있으면서도 요청당 비용은 몇 자릿수나 적게 듭니다. 우리가 Castform을 만든 이유는 개발자들이 머신러닝 및 GPU 내부 구조를 다룰 필요 없이 모델을 강화학습 후처리할 수 있게 하기 위해서입니다. 목표는 후처리를 프롬프트 엔지니어링만큼 접근하기 쉽게 만드는 것입니다.

Castform은 Neon을 어떻게 사용하나요? Castform의 파이프라인은 Lakebase Search를 통해 Neon에서 실행됩니다.

단계 / Neon + Lakebase Search 활용 말뭉치 저장 (Corpus storage): 원시 문서는 Neon의 Postgres에 저장됩니다. 합성 데이터 생성 (Synthetic data generation): Castform 학습 파이프라인은 lakebase_text 및 lakebase_vector를 사용하여 학습 작업을 작성합니다. 강화학습(RL) 훈련: 모든 롤아웃의 검색 도구 호출은 Neon의 Lakebase Search를 사용합니다. 프로덕션 추론 (Production Inference): 최종 모델은 추론 중에 동일한 검색 도구 호출을 사용합니다.

최고의 학습 데이터는 이미 존재합니다 효과적으로 강화학습(RL) 후처리를 수행하려면 작업(예: 사용자 질문에 답하기), 에이전트가 실행될 환경(예: 말뭉치를 위한 검색 도구), 그리고 보상 함수(예: 답변이 맞는가?)가 필요합니다. 이 세 가지가 모두 갖춰지면, 강화학습 후처리는 시행착오의 루프가 됩니다. 모델이 주어진 도구를 사용하여 작업을 시도하고, 보상 함수가 그 시도를 평가하며, 이 피드백 신호가 모델이 최적의 성능을 달성하는 방향으로 나아가도록 안내합니다.

하지만 대부분의 기업에는 후처리를 위한 정제된 작업 및 보상 함수 데이터 세트가 준비되어 있지 않습니다. 기업들은 다음과 같은 대량의 독점 데이터를 보유하고 있습니다.

  • 내부 문서
  • 제품 기록
  • 지원 문서
  • 고객 상호 작용
  • 위키(Wiki)
  • 운영 데이터베이스

이 데이터에는 에이전트에 필요한 지식이 포함되어 있지만, 이를 효과적인 학습 데이터 세트로 변환하려면 일반적으로 상당한 데이터 엔지니어링과 수동 라벨링이 필요합니다. 이로 인해 많은 팀이 다음 두 가지 이유 중 하나로 후처리를 포기하게 됩니다. "우리에게는 학습 데이터가 없습니다." "파인튜닝은 너무 어렵고 우리에게 없는 인프라가 필요합니다."

Castform은 두 가지 모두를 해결합니다. 기존 말뭉치를 훈련 데이터로 변환합니다...

원문 보기
원문 보기 (영어)
Back to Blog / Product How Castform + Neon Beats Frontier Models on Price and Efficiency A 4B open-source model post-trained with Castform retrieved search results as accurately as GPT-5.6 Sol, while costing 100x less Pranav Aurora , Ying Hang Seah , Angel Pan Aug 05, 2026 Subscribe to our changelog Receive only our latest updates. No spam, guaranteed. Subscribe “Most teams' best training data is just sitting in their databases. The problem is that turning raw data into something usable is hard, and letting agents read, search, and mutate data cheaply at scale requires advanced infra. Pointing Castform at Neon skips both.” Ying Hang Seah, cofounder, Castform A "good agent" needs to be strong in 2 areas: Context : can we provide the tools to find the right data? Model : can the model decide what to search for? Neon (Lakebase Postgres) and their new Search extensions solve the first; Castform solves the second. Evolution of agentic search In ~2022, the industry was going all in on embedding search. Every database provider added one, and pgvector was Neon's most downloaded extension. To provide context to LLMs, engineers handcrafted RAG pipelines, which in essence, is some form of embedding similarity search. In ~2025, agents started to gain more traction. Developers started creating multi-hop search workflows, decomposing big problems into smaller ones. Retrieval has shifted from the one-shot search systems to agentic retrieval. Instead of issuing a single query, models plan and search multiple times in a loop. Every loop iteration meant another call to the frontier model, increasing the overall cost and latency per user request. Concretely, a typical multi-turn search request with gpt-5.6-sol takes >10s and costs ~$0.03 end-to-end, making it prohibitively slow and expensive. Meanwhile, small open-weights models are 100x cheaper. But, out of the box, their capabilities lag behind closed api models. RL post-training helps bridge this gap. On specific tasks like search, post-trained open-source models can match & beat frontier models while costing orders of magnitude less per request. That is why we built Castform: to enable developers to RL post-train models without having to deal with machine learning & gpu internals. The goal's to make post-training as approachable as prompt engineering. How does Castform use Neon? Castform's pipeline runs against Neon via Lakebase Search: Stage Neon + Lakebase Search Corpus storage Raw documents live in Postgres on Neon Synthetic data generation Castform training pipeline uses lakebase_text and lakebase_vector to write training tasks RL Training Every rollout's search tool call uses Lakebase Search on Neon Production Inference The final model uses the same search tool call during inference Your best training data already exists To perform RL post-training effectively, you need a task (e.g. answer a user's question), the environment for the agent to run in (e.g. a search tool for your corpus) and a reward function (e.g. is the answer correct?). With all 3 pieces in place, the RL post-training is a loop of trial and error: the model attempts the task given the tools, the reward function scores the attempt, and the feedback signal guides the model on how to hill-climb its way to optimal performance. Yet, most companies do not have a clean dataset of tasks and reward functions ready for post-training. Enterprises do have a large set of proprietary data: internal documentation product records support articles customer interactions wikis operational databases This data contains the knowledge an agent needs, but turning it into an effective training dataset normally requires substantial data engineering and manual labeling. That leads many teams to dismiss post-training for one of two reasons: "We don't have the training data." "Fine-tuning is too difficult and requires infrastructure we don't have." Castform addresses both. It turns an existing corpus into training tasks , then manages the RL loop needed to teach an open-source model how to use that data effectively. Using Castform With Castform, you can turn your company knowledge base into a model: Document (from your data): Trains booked through Navan will be paid by GitLab travel card. Train rides must be standard cabin class with 14 day booking lead time Ground truth (inferred from your data): Train rides must be standard cabin class with a 14 day booking lead time. Question (synthetically generated): When booking a rail trip in Navan, what are the rules for how early I need to reserve it and which seating level I'm expected to choose? With the generated question-answer dataset, Castform lets you scaffold the training run by specifying the tools the agent has access to and a reward function. The reward function specifies what you want your model to get good at. In our case, we want it to retrieve the correct chunks, cite the right sources along with providing the right final answer. See a comprehensive code example here . Observability: Watch the model learn Castform gives you full observability into your RL run. You can monitor your reward climb with each step, but more importantly you can drop into individual tasks/prompts to watch how the model performs qualitatively, allowing you to debug problems such as broken tools or reward hacking. For more details on how to monitor your training runs, you can check out the Castform blog here . You can also check out our example training run here . Why Neon 'just works' During training, the agent repeatedly calls Lakebase Search until it has enough context to answer. Across thousands of parallel rollouts, each potentially making dozens of calls, this creates a highly bursty workload. Neon's dynamic compute scaling absorbs these peaks without requiring Castform to provision for maximum capacity around the clock. Training runs get low-latency search when demand spikes, while compute scales down during idle periods. This infrastructure becomes even more valuable as agents move beyond search and begin modifying data. Training stateful agents requires isolated environments that can be created and reset cheaply, preventing one rollout's actions from affecting another or touching production. Neon branching can give each rollout an isolated database state, while time-travel queries make it possible to reconstruct and inspect the state an agent encountered. Combined with autoscaling and scale-to-zero, this creates a path toward training thousands of stateful agent rollouts without maintaining thousands of continuously running environments. Castform makes it easy for any developer to post-train open-source models to be cheaper, faster, better than the frontier. Post-train your first model today at castform.com . Share: More from Neon Product Aug 03, 2026 Neon now has per-project permissions