Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
khromov committed Jul 17, 2024
2 parents 8115339 + 6fd66ce commit f88755d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<img width="884" alt="Screenshot 2024-07-17 at 01 25 31" src="https://github.com/user-attachments/assets/efe85c3e-3db1-4099-be01-e111401e66c8">
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

Expand All @@ -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
```
```

0 comments on commit f88755d

Please sign in to comment.