<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>ChatBGC: Asking Questions of Biosynthetic Gene Cluster Data in Plain Language | BEAMS Lab</title>
    <link>https://www.matinnu.org/research/chatbgc/</link>
      <atom:link href="https://www.matinnu.org/research/chatbgc/index.xml" rel="self" type="application/rss+xml" />
    <description>ChatBGC: Asking Questions of Biosynthetic Gene Cluster Data in Plain Language</description>
    <generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-us</language>
    <image>
      <url>https://www.matinnu.org/research/chatbgc/avatar_hu_9f750e878de0c535.jpg</url>
      <title>ChatBGC: Asking Questions of Biosynthetic Gene Cluster Data in Plain Language</title>
      <link>https://www.matinnu.org/research/chatbgc/</link>
    </image>
    
    <item>
      <title>ChatBGC: Asking Questions of Biosynthetic Gene Cluster Data in Plain Language</title>
      <link>https://www.matinnu.org/research/chatbgc/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://www.matinnu.org/research/chatbgc/</guid>
      <description>&lt;h3 id=&#34;project-description&#34;&gt;Project Description&lt;/h3&gt;
&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;ChatBGC&lt;/strong&gt; lets researchers ask questions about biosynthetic gene cluster (BGC) data in plain English. Instead of writing SQL against large antiSMASH result tables, you can ask &lt;em&gt;&amp;ldquo;Which genomes carry both an NRPS and a lanthipeptide cluster?&amp;rdquo;&lt;/em&gt; and ChatBGC turns the question into a database query, runs it, and summarizes the answer.&lt;/p&gt;
&lt;p&gt;It works on the antiSMASH &lt;strong&gt;DuckDB&lt;/strong&gt; databases produced by our genome-mining workflow &lt;a href=&#34;https://www.matinnu.org/tools/bgcflow/&#34;&gt;BGCFlow&lt;/a&gt;, and it is built to run &lt;strong&gt;locally&lt;/strong&gt; on open-weight LLMs, so unpublished genome data never has to leave the lab.&lt;/p&gt;
&lt;h3 id=&#34;how-it-works&#34;&gt;How It Works&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Retrieval-augmented text-to-SQL&lt;/strong&gt;: LlamaIndex retrieves the relevant tables, columns, and curated example questions before the LLM writes a query&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Agentic pipeline&lt;/strong&gt;: a five-phase LangGraph workflow (capture → retrieve → plan → fetch → interpret) with visible chain-of-thought reasoning&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Self-correction&lt;/strong&gt;: automatically refines queries that fail or return empty results&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Factual summaries&lt;/strong&gt;: answers are grounded in the returned rows, with no speculation&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Local-first&lt;/strong&gt;: runs with llama.cpp or Ollama on open models (tested with Qwen3.6-35B-A3B), with optional OpenAI or Anthropic backends&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;evaluation&#34;&gt;Evaluation&lt;/h3&gt;
&lt;p&gt;ChatBGC is benchmarked against a curated set of question–answer pairs with PromptFoo. Langfuse traces each query phase by phase, so prompt and model changes can be tested for regressions.&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>
