Alpha
GitBook Lens constantly indexes your content, using AI to give you the information you need faster. Simply tell Lens what you want — it’ll scan your documentation and summarize the results in seconds.
Learn more about LensGive your users the gift of knowledge. Now, they can just ask Lens and get a simple, semantic answer in seconds — with clickable references to your documentation if they want to dive deeper.
Lens works on internal content, too. Making it a powerful onboarding tool, and a great way to summarize meeting notes, discover historical company data, and more.
Make your knowledge more accessible than ever. With our API, you can embed GitBook Lens right into your product with just a few simple lines of code.
Discover our API
curl
https://api.gitbook.com/v1/spaces/NkEGS7hzeqa35sMXQZ4X/search/ask \
-H 'content-type: application/json' \
--data-raw '{"query":"What is GitBook?"}'
{
"answer": {
"text": "GitBook is a modern documentation platform where teams can document everything from products to internal knowledge bases and APIs. It is a user-friendly and collaborative product for everyone to create, edit and share knowledge through documentation. ",
"pages": [ ... ],
"followupQuestions": [ ... ]
}
}
Want to enhance your knowledge base? Get started with GitBook for free today and try the Lens alpha for yourself.
Start for freeGitBook is a knowledge sharing platform that’s inspired by the way that developers organize their work. With simple import tools, an intuitive interface, and a powerful change request workflow, GitBook has everything you need to document your work — from start to ship. Whether it’s public docs, an internal knowledge base, or something else entirely.
While GitBook Lens is in alpha, anyone can activate Lens for their public documentation and internal knowledge base today at no extra cost.
When Lens moves into beta, we plan to make it part of the Pro and Enterprise plans. We’ll be in touch to tell you about that before it happens, though.
We’ll also be keeping a close eye on usage data, because the more requests we get the more it costs us. We don’t currently plan to add extra charges for Lens, but if that changes in future we’ll let you know in advance.
To activate Lens, head into your Organization Settings and hit the toggle. You can also activate Lens for individual spaces within your organization by opening the space and hitting Customize.
To find out more, take a look at our documentation
GitBook Lens constantly indexes your documentation using OpenAI. When you ask a Lens a question, it finds and combines information from within that documentation to provide an answer. It doesn’t use content from anywhere else to form its answers.
We use the OpenAI API to pass your content to OpenAI to index and process data. OpenAI does not use this content for service improvements (including model training). You can find out more about how OpenAI handles data here.
While we do use the GPT model at one point in the process — to make the answers to your query clear and readable — Lens doesn’t use ChatGPT specifically. ChatGPT indexes content from the internet, while Lens will only index and answer using information within your own content.
You can embed GitBook Lens using the GitBook API. We have an endpoint dedicated to handling all of your AI search requests. Find more about the GitBook API and Integration Platform at developer.gitbook.com