Index a website

Pass a page URL as content. Etoile extracts the text automatically.


import { Etoile } from "@etoile-dev/client";

const etoile = new Etoile({
apiKey: process.env.ETOILE_API_KEY,
});

await etoile.index({
id: "etoile-homepage",
collection: "pages",
title: "Etoile — AI search",
content: "https://etoile.dev",
});

Related