Skip to main content

SvelteKit

If you're looking to use LangChain in a SvelteKit project, you can check out svelte-chat-langchain.

The app is a SvelteKit implementation of the QA Chatbot Chat Langchain and is best used as a reference to learn the basics of a QA chatbot over documents or as a starting point for your own custom implementation.

The example shows one possible way to implement ingestion (document loading, splitting, and embedding) as well as RAG (Retrieval Augmented Generation), LCEL, conditional chaining, and streaming.

SvelteKit Chat Langchain screenshot


Help us out by providing feedback on this documentation page: