Documents

Add custom data sources to Ask Fern.

Overview

You can index custom documents beyond your core documentation to improve Ask Fern’s capabilities. Adding content such as help desk tickets, internal company FAQs, and other resources can help provide better answers to developers.

Fern offers an internal CMS (content management system) via the documents API that allows you to add, update, and delete documents as needed.

See the API reference for more details

Usage

Here’s an example of a document that can be uploaded via the documents API:

1{
2 "document": "Ferns are plants native to the tropical and subtropical regions of the world. They are characterized by their fronds, which are large, leaf-like structures that are often found in the understory of forests.",
3 "title": "What are ferns?",
4 "url": "https://en.wikipedia.org/wiki/Fern"
5}

This document will be indexed and made available to Ask Fern as context when users ask questions about ferns.