OneStream KB Connector: every OneStream answer looked up and cited
Turned the official OneStream documentation, guides, XF API reference and implementation samples into a searchable knowledge base. Built on Voyage AI embeddings, it is exposed as a connector and paired with a Claude skill, so any OneStream task starts from looked-up, cited sources instead of model memory.
Quick facts
- Industry
- OneStream / EPM consulting practice
- Role
- Co-builder. I worked across the corpus, the embedding pipeline, the connector and the skill
- Timeline
- 2026, live and growing
- Team
- Built by two of us as a team effort, then rolled out to the whole delivery team
- Impact
- One connector covers every OneStream question. It searches ~382 vendor docs, 1,715 XF API functions and 13,000+ implementation code chunks in one call, and every answer comes back with its source.
- Voyage AI embeddings
- MCP connector
- Claude Skills
- Vector search
- OneStream XF API
On this page
Overview
General-purpose AI models are confidently wrong about OneStream. Ask one for a BRApi call and it will hand you a function name that looks right, compiles in your head, and doesn't exist. The OneStream KB Connector fixes that at the source. A teammate and I took the official OneStream documentation, the platform guides, the XF API reference and the implementation samples, embedded all of it with Voyage AI, and exposed the result as a connector any Claude session can call. A companion skill sets the working standard: search the KB first, verify every identifier before it goes into code, cite the source, and say "not covered" instead of guessing. Now, whatever we're doing on OneStream, we start from one place.
The Problem
OneStream knowledge is deep, scattered, and version-specific. Four things were costing time on every engagement:
- The documentation lives in ~20 separate guides. The answer to one question often sits in three of them: the design guide, the API reference and a solution guide. Finding it meant knowing which PDF to open and which section to scroll to.
- AI models invent OneStream APIs. Off-the-shelf models have seen very little OneStream code. They fill the gap with plausible
BRApi.*names, made-up XML elements and settings that don't exist. A business rule written that way fails at compile time, or worse, at run time. - The API reference doesn't explain behaviour. A function signature tells you the parameters, not what the platform actually does with them. The real answer to "how does this really work?" lives in implementation code nobody had time to read.
- What the team learned didn't travel. Patterns, gotchas and approved methods from past builds lived in people's heads and old project folders. The next engineer hitting the same problem started from zero.
The brief: one source of truth for OneStream that a model can search, that shows its sources, and that admits when it doesn't know.
Process
Phase 1: build the corpus
We collected the official OneStream documentation, guides and samples and organised them into 34 numbered sections. They run from platform fundamentals, dimensions and cubes through workflow, data collection, dashboards, BI Viewer and business rules, out to the packaged solutions (Account Reconciliations, Financial Close, Forecasting, People Planning, Genesis and 40-plus more). Diagrams and figures were transcribed inline so their content is searchable too, not lost as images. The XF API reference went in as its own room: every function with its exact signature, class and entry point. Implementation code samples went into a third room for the "how does it really behave" questions.
Phase 2: embed it with Voyage AI
Each document was chunked along its own structure (section, heading, function) rather than at fixed lengths, so a search hit is a complete, readable thought. The chunks were embedded with Voyage AI and indexed for semantic search. Each one keeps its citation: the doc path, the source guide and the page numbers. A result is never just a snippet. It is a snippet you can trace back.
Phase 3: expose it as a connector
The index sits behind a connector with a small set of tools, each with a clear job:
search: plain-English search across every room at once. Each result is labelled with where it came from (vendor docs, API reference, implementation code or approved practice knowledge).lookup_exact: for when you already have the identifier. It checks an API name, XML element or error string against the reference before it goes into code.fetch/read_doc: expand a result to the full section, so nothing is quoted from a fragment alone.research: writes a finished, fully cited answer on the server for questions that need a write-up rather than a lookup.about_this_kb: a live map of the rooms, a question-to-section routing table and the list of packaged solutions it covers.
When the KB doesn't cover a topic, it says so with weak_matches_only or not_found and suggests a retry: different words, a narrower scope, or a solution code to filter on.
Phase 4: the skill
A connector on its own still leaves the model free to answer from memory. So we wrote a Claude skill that makes the connector the default for any OneStream topic and sets the loop: search first → expand before you rely → lookup_exact before any identifier goes into code → cite what you used → trust the refusals. It triggers on anything OneStream (business rules, cube views, dashboards, workflow, consolidation, data management, packaged solutions), so nobody has to remember to turn it on.
Solution
1. A three-room OneStream corpus
- Vendor documentation: ~382 curated docs from ~20 official guides across 34 sections, OneStream 9.2 era, with figures transcribed inline.
- API reference: 1,715 XF API functions across 168 classes, with exact signatures and entry points.
- Implementation code: 13,000+ code chunks for questions about how the platform really behaves.
A fourth, live room holds approved practice knowledge: methods, gotchas, standards and reference patterns from prior builds. A newly approved item becomes searchable within about a minute.
2. Voyage AI embeddings with citations
Every chunk is embedded with Voyage AI and carries its doc path, source guide and pages. Search is semantic, so "how do I read a single cell in a finance rule?" finds the right section even when it never uses those words.
3. The OneStream KB Connector
Six tools covering the full lookup path: broad search, exact-identifier verification, full-text expansion, a cited write-up, and a live coverage map. Any Claude session with the connector enabled can use it, whether in chat, in Claude Code or in a project.
4. The OneStream skill
The working standard, packaged. It routes every OneStream question through the connector, forces identifier checks before code, requires citations, and turns "the KB doesn't cover this" into an honest answer instead of a guess.
Results
| Metric | Before | After | Change |
|---|---|---|---|
| Where a OneStream answer comes from | model memory or a manual PDF hunt | cited KB lookup | sourced every time |
| API names in generated business rules | plausible guesses | checked with lookup_exact first | invented calls caught before compile |
| Sources searched per question | one guide at a time | docs + API + code + practice knowledge in one call | 15k+ chunks |
| Gaps in coverage | filled with confident guesses | reported as not_found with a retry hint | honest refusals |
Soft outcomes:
- One place to start. Whatever the OneStream task (a rule, a dashboard, a workflow question, a packaged solution), the first move is the same.
- Faster ramp-up for newer engineers. They get answers with page references, so they learn where things live in the documentation while they work.
- Knowledge that compounds. When a build solves something worth keeping, it gets nominated, approved and is searchable by everyone a minute later.
Learnings
What worked. Keeping citations attached from the very first chunk. A retrieval system that returns text without its source is only slightly better than model memory. One that returns the doc path and page lets you check the answer in seconds. Splitting exact lookup from semantic search also paid off: "find me something about X" and "does this exact function exist?" are different questions and deserve different tools.
What we'd do differently. Build the "not covered" path on day one. Early versions always returned something, and a weak match presented confidently is just a better-dressed hallucination. Explicit weak_matches_only and not_found statuses, with a retry hint, made the whole system more trustworthy than any gain in recall did.
Skill developed. Designing AI tools around how people actually verify things. The connector supplies the knowledge, but the skill decides how it gets used, and that pairing is what turned a search index into a team habit.