KX Ask AI

Use KX Ask AI to Get Answers and Solve Problems Faster

Oliver Howell

作者

Oliver Howell

Technical Documentation Lead

ポイント

  1. You can use Ask AI on any code.kx.com or developer.kx.com page to get accurate answers grounded in official technical documentation.
  2. Improve your KX and q knowledge and expertise with Ask AI and AI skills from KX.
  3. Ask AI includes the latest version of all docs plus official technical content and code examples.
  4. Add the KX Docs MCP server to bring this knowledge directly into your IDE or AI tool.
  5. Help shape the future direction of KX documentation by taking our 5-minute survey and be in with the chance of winning an F1 LEGO!

If you’ve used the official KX docs site in the last five months, you’ve probably noticed the shiny Ask AI button in the bottom right of the screen. Hopefully you’ve clicked it and put it to the test with your questions, problems, and challenges. We’ve had over 16k questions in that period with a self-serve rate of 89%, and with 87% of feedback rating it as ‘Helpful’ or ‘Very Helpful’.

If you’ve not tried it yet, there’s no time like the present. Please give it a try and then come back to read this blog.

 

What Sources Are Indexed?

We currently use kapa.ai to pull from code.kx.com (latest versions of docs only), developer.kx.com, the KX YouTube channel, various github.com/KxSystems repositories with code samples, tutorials, and markdown, plus academy.kx.com, forum.kx.com, even the KX Blog and medium.com/kx, and most recently, the OneTick product docs. Most sources refresh automatically, so updated content is added to the knowledge base within an hour or so. You can now see the Ask AI button on most KX developer-focused sites, such as developer.kx.com and forum.kx.com.

How Are Developers Using Ask AI?

Ask AI is also more than a new way to search. Like many, I initially thought of good Ask AI tools as a “search-killer”, the quickest way to get accurate answers to my questions or find the right source page from fragmented products or sites. But our data shows that users are increasingly asking it to solve problems and provide tailored troubleshooting or configuration advice, from diagnosing code errors to creating a UDA for kdb Insights.

Ask AI

Can You Trust the Answers?

Yes, the answers have been accurate with very few hallucinations (less than 0.25%, in fact). If our AI doesn’t know the answer, it will say so. Alongside human testing, we worked with some of the AI experts within KX to test Ask AI using agents. They came back with a verified hallucination figure of 0.25%, which mainly related to a few edge cases where our docs weren’t super clear or precise on structure or dependencies. That also helps us identify where to correct or improve the docs.

The self-serve rate I referred to earlier tries to answer the question: Did the user find an answer to their question or query? The remaining 11% covers conversations where AI did not have the answer or the outcome was unclear. If Ask AI doesn’t know the answer, it will say “I don’t know” rather than try to make up an answer. And from this data we can identify question clusters or content gaps and improve the docs where it matters. Encouraging all round, but if you get bad answers, please use the feedback buttons to vote and explain why (you can also vote up for good answers, which is always welcome).

How to Add the KX Docs MCP Server

If you’re already saving time with Ask AI (total time saved in that period estimated at 2361 hours), you might also have noticed the ‘Use MCP’ button that provides shortcuts to connect our KX Docs MCP server to Claude Code, Codex, Cursor, or VS Code. (Hold on, what is MCP?) You can use these links or add the https://kx.mcp.kapa.ai URL yourself:

Bash
claude mcp add --transport http kx-docs https://kx.mcp.kapa.ai
Bash
codex mcp add kx-docs --url https://kx.mcp.kapa.ai

This server uses OAuth, so your application or client opens a browser window to sign in the first time it connects. You need a Google or GitHub account to sign in. All conversations are anonymized and we only use the account to enforce per-user rate limits and prevent abuse.

Install the KX AI Skills

If you’re already using agentic workflows and prefer an MCP server that doesn’t rely on browser authentication, we also have a second server that you can add by installing the public KX skills. These skills, first launched back in June, now reference this KX Docs MCP server so you can install the skills via the marketplace and add the server details easily via the embedded .mcp.json files. AI skills and good documentation have the same aim: to help you do things more quickly or effectively, or to get you to expert level (AI-enabled or not) as quickly as possible, as my colleague Scott Rich explained in his blog:

The interesting thing about this project isn’t that we taught a model some q syntax. It’s that the knowledge of how to use these tools correctly no longer sits in documentation waiting to be found. It travels with the task. A Skill is a checklist, a set of traps, and a worked example, all in markdown, all version-controlled, all loaded at the exact moment the work calls for it.

That’s a different shape than documentation. Documentation waits for you to come find it. A Skill shows up when you need it and stays quiet when you don’t.

The beauty of adding an MCP server is that it brings the documentation to you, where you work, rather than forcing you to open a browser and visit code.kx.com. Documentation no longer waits for you to come find it; an MCP server shows up when you need it and stays quiet when you don’t.

You can also combine it with other MCP servers. Add the docs for your cloud service, programming language or favorite tool, and you can get advice and troubleshooting that cuts across different products and docsets, while still anchoring that guidance with the context of your own setup and preferences (context is king). For example, I use VS Code for most of my work with a mix of internal and external KX skills that rely on a bunch of MCP servers that include KX Docs, Atlassian, GitLab, Python, Kapa, KDB.AI and OneTick, and an internal DocsBot that is my main interface to our documentation style guide, rules and templates.

Writing for Humans and Agents

As we’re discovering in docs, we’re often writing for agents and bots as much as humans. This is why we publish an llms.txt on code.kx.com and provide instructions on how to use the docs — including MCP servers — for both audiences. In that llms.txt file we publish an open endpoint for our Kapa-hosted Ask AI server, which enables agents to query the MCP server without authentication. You can test this yourself in a terminal:

Bash
 curl -sG "https://kx-docs-retrieval.kapa-kx.workers.dev/" \
  --data-urlencode "q=how do I install KDB-X" | python3 -m json.tool

But agents are, after all, only agents for humans. Your feedback helps us improve Ask AI, whether you use the web widget or an MCP server. Tell us when an answer works and when it doesn’t. One in 25 visitors will also be prompted with a short customer satisfaction survey. We appreciate any responses you give us here.

Help Shape KX Documentation and Technical Content

We care a lot about providing clear, accurate documentation that helps you use our products and tools. We’re always looking to improve our technical content and make the user experience better. On our docs roadmap, aside from improving key content areas, we’re targeting improved search, navigation, markdown features (for humans and agents), and community contributions, amongst others. Help shape that work by taking a short 5-minute survey. Tell us what’s working, what isn’t, and what you would most like to see. We’ll award an F1 LEGO set to one randomly selected survey respondent as a sign of our appreciation (agents not eligible).

Some Helpful Tips to Become Fitter, Happier, More Productive

  • Ask questions in your own language and get answers in the same language.
  • Join the MCP revolution! Find and add MCP servers for the tools and languages you use regularly, and tweak your AI to use them properly.
  • For any website with WebMCP, you can enable this experimental feature in your browser (e.g. start with chrome://flags/#enable-webmcp-testing) and give agentic access to any available web MCP servers (includes code.kx.com).
  • You can also toggle Ask AI to search mode to search across all the docs and technical sources indexed — look out for the toggle to turns Ask to Search.
  • Never post private or personal info such as tokens or license keys. Personally identifiable information (PII) is masked in conversations but always think securely.

Next Steps

AIによるイノベーションを加速する、KXのデモをお客様に合わせてご提供します。

当社のチームが以下の実現をサポートします:

  • ストリーミング、リアルタイム、および過去データに最適化された設計
  • エンタープライズ向けのスケーラビリティ、耐障害性、統合性、そして高度な分析機能
  • 幅広い開発言語との統合に対応する充実したツール群

専門担当者によるデモをリクエスト

「*」は必須フィールドを示します

ステップ 1 の 2

このフィールドは入力チェック用です。変更しないでください。


// social // social