From 6fd66cefeabf8d841b28f3e129255f9a9595e471 Mon Sep 17 00:00:00 2001 From: Stanislav Khromov Date: Wed, 17 Jul 2024 21:10:44 +0200 Subject: [PATCH] Update README.md --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0a4969c..7aadd66 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,14 @@ A SvelteKit app that provides an AI-powered chatbot for answering questions about Svelte and SvelteKit. This bot uses the Anthropic Claude API to generate responses based on the latest Svelte and SvelteKit documentation. -Screenshot 2024-07-17 at 01 25 31 +Thanks to the new Sonnet 3.5 model with 200k context we can utilize "context stuffing" to put the entire SvelteKit documentation into the context, which provides very good responses. + +You will need to sign up for an [Anthropic API account](https://console.anthropic.com/dashboard) and set the API key in `.env` (see `.env.example`). Keep in mind that adding the docs adds about 80k tokens which costs ~0.2USD/message. + +If you want to do something similar without the API limits, you can use [Claude Projects](https://www.anthropic.com/news/projects) and upload the SvelteKit docs to the project for a similar experience. + +![Screenshot 2024-07-17 at 21 03 08](https://github.com/user-attachments/assets/00c7a9f9-6efa-4e4a-8649-281365f46051) + ## Features @@ -26,8 +33,12 @@ Visit http://localhost:5173 to start chatting with the AI assistant. Simply type your Svelte or SvelteKit related questions into the chat interface. The AI will provide answers, explanations, and code examples based on the latest documentation. +## Updating the docs + +Use `npm run updatedocs` command to download the latest SvelteKit documentation. + ## Wrap up codebase for upload to Claude Projects ``` npx ai-digest -``` \ No newline at end of file +```