shaal / ollama-js-langchain

πŸ¦™ Ollama, 🟨 Ollama-js and πŸ¦œπŸ”— LangChain JS with 🍊 Gitpod πŸŽ‰

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ¦™ Ollama, 🟨 Ollama-js and πŸ¦œπŸ”— LangChain JS with 🍊 Gitpod πŸŽ‰

  • βœ‹ this is a work in progress 🚧, but you can already play with it πŸ₯°
  • πŸ€– caution: it's not for production, it's for learning purpose

Open in Gitpod

This project used the Ollama project and its Docker image.

The main goal is to experiment with Ollama-js and LangChain JS

Start the project

This project will download all the dependencies at start, and then start the model. So be patient.

The model is loaded at the start of the Gitpod project.

  • It pulls the Docker image
  • It starts the Docker Ollama container
  • Ollama download the LLM and then starts it

The model is: tinydolphin

Once the model started, you can check if everything is ok with this command (in another terminal):

curl -X POST http://localhost:11434/api/generate -d '{
"model": "tinydolphin",
"prompt":"Why is the sky blue?"
}'

About

πŸ¦™ Ollama, 🟨 Ollama-js and πŸ¦œπŸ”— LangChain JS with 🍊 Gitpod πŸŽ‰

License:The Unlicense


Languages

Language:JavaScript 64.6%Language:Shell 35.4%