Skip to main content

About the project

Ask OLake

A production-minded chat assistant for the OLake docs. It answers questions about
both OLake Go (ingestion into Apache Iceberg / Parquet) and OLake Fusion
(Iceberg table maintenance), and it always cites its sources or says it doesn’t know.

API

POST /ask with {"question": "..."} returns {"answer": "...", "sources": ["<url>", ...]}

How it works

  1. Index: the olake-docs repo is split into heading-based chunks, each tagged
    with its page URL, product (Go / Fusion), and legacy flag. The index is a committed
    JSON file loaded in memory, so there is no database to run.
  2. Retrieve: BM25 keyword search finds candidate chunks, then a small LLM
    reranks them. Keyword search suits this corpus because users ask about exact
    config keys, flags, and error messages.
  3. Answer: the answer model sees only the retrieved chunks and returns the
    answer plus the IDs of the chunks it used.
  4. Cite honestly: source URLs are built on the server from those chunk IDs, so
    the model can never invent a link. If the docs don’t cover the question, the
    assistant says so instead of guessing.

Production touches

Rate limiting, input limits, request timeouts, model fallback, an answer cache,
CORS for embedding, and structured error responses.

Embeddable UI

A chat widget that can be added to any docs site with one script tag.

Tradeoffs

We chose BM25 plus LLM reranking over embeddings, with an in-memory index
instead of a vector database, because the corpus is small and this keeps the
system simple, fast, and cheap to run.

Built with

node.jstypescripthonoopenrouterjsongithubgitvercelreactviterender

AI tools

Coded withOpenCode

Prize Categories Entered

  • Deepmind Google

    Best Use of Gemma 4

    Submitted
  • DigitalOcean

    Best Open-Source AI Project

    Submitted