From 0bc3b158fe8a4c1bfcdb8c8fa7693c4c9d0c8adb Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Thu, 25 Jan 2024 09:21:23 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20specify=20in=20docs=20the=20retu?= =?UTF-8?q?rn=20type=20of=20getContextItems?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/docs/customization/context-providers.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/docs/customization/context-providers.md b/docs/docs/customization/context-providers.md index a757346ee..a8c0d5ea2 100644 --- a/docs/docs/customization/context-providers.md +++ b/docs/docs/customization/context-providers.md @@ -129,7 +129,11 @@ interface CustomContextProvider { } ``` -As an example, let's say you have a set of internal documents that have been indexed in a vector database. You've set up a simple REST API that allows internal users to query and get back relevant snippets. This context provider will send the query to this server and return the results from the vector database. +As an example, let's say you have a set of internal documents that have been indexed in a vector database. You've set up a simple REST API that allows internal users to query and get back relevant snippets. This context provider will send the query to this server and return the results from the vector database. The return type of `getContextItems` _must_ be an array of objects that have all of the following properties: + +- `name`: The name of the context item, which will be displayed as a title +- `description`: A longer description of the context item +- `content`: The actual content of the context item, which will be fed to the LLM as context ```typescript title="~/.continue/config.ts" const RagContextProvider: CustomContextProvider = {