<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alexandre Oliveira</title>
    <description>The latest articles on DEV Community by Alexandre Oliveira (@alegauss).</description>
    <link>https://dev.to/alegauss</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F679600%2Fb3980897-d357-4b51-a622-7ca7a651fbce.jpeg</url>
      <title>DEV Community: Alexandre Oliveira</title>
      <link>https://dev.to/alegauss</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alegauss"/>
    <language>en</language>
    <item>
      <title>I spent 10 years building enterprise search for clients. Then I open-sourced all of it.</title>
      <dc:creator>Alexandre Oliveira</dc:creator>
      <pubDate>Mon, 27 Jul 2026 22:53:54 +0000</pubDate>
      <link>https://dev.to/alegauss/i-spent-10-years-building-enterprise-search-for-clients-then-i-open-sourced-all-of-it-3nk5</link>
      <guid>https://dev.to/alegauss/i-spent-10-years-building-enterprise-search-for-clients-then-i-open-sourced-all-of-it-3nk5</guid>
      <description>&lt;p&gt;Every enterprise search project I did in the last decade ended the same way. A search engine (Solr or Elasticsearch), a pile of glue code for facets and relevance, then, in recent years, a RAG pipeline bolted on the side, and finally an agent framework on top of that. Three stacks, three sets of bugs, one recurring client requirement: &lt;strong&gt;the data cannot leave our network&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;After repeating that build enough times, I turned it into a single platform. This year I open-sourced the whole thing under Apache 2.0: &lt;a href="https://github.com/openviglet/turing-ce" rel="noopener noreferrer"&gt;Viglet Turing ES&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This post is about the three design decisions that I think matter most, and how to try it in one command.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 1: run on the engine you already have
&lt;/h2&gt;

&lt;p&gt;Most teams evaluating "AI search" already operate Solr or Elasticsearch. Asking them to migrate to a new engine just to get RAG is a non-starter.&lt;/p&gt;

&lt;p&gt;So Turing sits &lt;strong&gt;on top&lt;/strong&gt; of the engine instead of replacing it. Solr, Elasticsearch or an embedded Lucene index, behind one query API. Hybrid retrieval fuses keyword (BM25) and vector results with Reciprocal Rank Fusion, and a pluggable reranker (LLM, cross-encoder or Cohere) reorders the page. If you have nothing installed, the embedded Lucene engine means the whole stack runs in a single container.&lt;/p&gt;

&lt;p&gt;The same idea applies to models: OpenAI, Anthropic, Gemini, Azure, or fully local via Ollama. For air-gapped deployments, local models plus local embeddings plus embedded Lucene means literally nothing leaves the machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 2: answers you can audit, including "no answer"
&lt;/h2&gt;

&lt;p&gt;The feature enterprises actually ask about is not chat. It's &lt;strong&gt;trust&lt;/strong&gt;. A support portal or an intranet cannot ship confident wrong answers.&lt;/p&gt;

&lt;p&gt;Turing's RAG chat streams answers with inline citations that trace back to the exact source passage. Before the LLM sees anything, a relevance gate drops weak matches. After generation, an optional groundedness check flags claims the sources don't support. And when nothing in the index clears the bar, the assistant gives a deterministic "not covered here" answer instead of improvising.&lt;/p&gt;

&lt;p&gt;That last behavior sounds small. In practice it's the difference between a demo and something a regulated organization will put in front of users.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 3: agents grounded in the same index
&lt;/h2&gt;

&lt;p&gt;Once search and RAG share an index, agents get interesting: they can act on content instead of just answering. Turing's agents do tool calling, run skills in a Docker sandbox, and connect to MCP servers, so the same assistant that cites your docs can also call your internal APIs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;p&gt;One command, no account, no telemetry:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run &lt;span class="nt"&gt;-p&lt;/span&gt; 2700:2700 ghcr.io/openviglet/turing-ce
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The console comes up at &lt;code&gt;http://localhost:2700/console&lt;/code&gt; (set the admin password with the &lt;code&gt;TURING_ADMIN_PASSWORD&lt;/code&gt; env var on first run).&lt;/p&gt;

&lt;p&gt;Searching is a plain REST call:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"http://localhost:2700/api/sn/sample-site/search?q=enterprise+search&amp;amp;rows=10&amp;amp;_setlocale=en_US"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the RAG chat streams over SSE:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="s2"&gt;"http://localhost:2700/api/sn/sample-site/chat?q=What+is+enterprise+search"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There are TypeScript SDKs (a zero-dependency vanilla one and a React one) if you're embedding search in a frontend. The live demo on the site runs on that same SDK, over Turing's own documentation, so you can see the cited answers before installing anything: &lt;a href="https://turing.viglet.org/#playground" rel="noopener noreferrer"&gt;turing.viglet.org/#playground&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  One honest note about the repo
&lt;/h2&gt;

&lt;p&gt;The public repository is a clean snapshot per release, because day-to-day development happens against client work I can't publish. I know a thin commit history looks odd at first glance, so I'd rather say it here than have you wonder. Issues and PRs are very real and ship in the next release.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd love feedback on
&lt;/h2&gt;

&lt;p&gt;If you self-host Elasticsearch or run local LLMs and have opinions about hybrid ranking, citation UX, or what a search platform should refuse to answer, I want to hear them. The repo is &lt;a href="https://github.com/openviglet/turing-ce" rel="noopener noreferrer"&gt;github.com/openviglet/turing-ce&lt;/a&gt; and the docs live at &lt;a href="https://docs.viglet.org/turing/" rel="noopener noreferrer"&gt;docs.viglet.org&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Thanks for reading!&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>ai</category>
      <category>rag</category>
      <category>selfhosted</category>
    </item>
  </channel>
</rss>
