https://github.com/semicognitive/sveltekit-modal-langchain
An example SvelteKit project using sveltekit-modal, with a Python server endpoint written in langchain.
https://github.com/semicognitive/sveltekit-modal-langchain
ai javascript langchain python svelte sveltekit typescript
Last synced: about 1 year ago
JSON representation
An example SvelteKit project using sveltekit-modal, with a Python server endpoint written in langchain.
- Host: GitHub
- URL: https://github.com/semicognitive/sveltekit-modal-langchain
- Owner: semicognitive
- Created: 2023-02-15T21:43:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-15T21:10:59.000Z (about 3 years ago)
- Last Synced: 2025-04-03T16:52:33.260Z (about 1 year ago)
- Topics: ai, javascript, langchain, python, svelte, sveltekit, typescript
- Language: JavaScript
- Homepage:
- Size: 183 KB
- Stars: 47
- Watchers: 3
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# sveltekit-modal-langchain
An example SvelteKit project using https://github.com/semicognitive/sveltekit-modal, showing how easy it is to write Python endpoints in SvelteKit.
See the code for the [example `+server.py` route here](src/routes/api/summarize/%2Bserver.py). You'll see it largely mirrors the SvelteKit built-in [`+server.js`](https://kit.svelte.dev/docs/routing#server)!
## This example
- Includes a frontend written in [TailwindCSS](https://tailwindcss.com)
- Has a `api/summarize` endpoint which takes a PDF upload, and summarizes it with the OpenAI Api! Written in Python with [LangChain](https://langchain.readthedocs.io/en/latest/)