An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

image

# 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/)