Git Product home page Git Product logo

llm-x's Introduction

LLM X

LLM X logo

How to use:

  • Download and install Ollama
  • Pull down a model (or a few) from the library Ex: ollama pull llava
  • Run this in your terminal OLLAMA_ORIGINS=*.github.io ollama serve
  • Use your browser to go to LLM-X
  • Start chatting!

Screenshots:

Conversation about logo
Logo convo screenshot
Showing off code and light theme
Code and light theme screenshot
Responding about a cat
Cat screenshot
Another logo response
Logo 2 screenshot

What is this? Chat GPT style UI for the niche group of folks who run Ollama (think of this like an offline chat gpt) locally. Supports sending images and text! WORKS OFFLINE through PWA (Progressive Web App) standards (its not dead!)

Why do this? I have been interested in LLM UI for a while now and this seemed like a good intro application. I've been introduced to a lot of modern technologies thanks to this project as well, its been fun!

Why so many buzz words? I couldn't help but bee cool ๐Ÿ˜Ž

Tech Stack (thank you's):

Logic helpers:

UI Helpers:

Project setup helpers:

Inspiration: ollama-ui's project. Which allows users to connect to ollama via a web app

Perplexity.ai Perpexlity has sone some amazing UI advancements in the LLM UI space and I have been very interested in getting to that point. Hopefully this starter project lets me get closer to doing something similar!

Getting started

Clone the project, and run npm install in the root directory

npm run dev starts a local instance and opens up a browser tab under https:// (for PWA reasons)

Goals

  • Text Entry and Response to Ollama
  • Conversation history
  • Ability to manage multiple chats
  • Code highlighting with Highlight.js
  • Ability to copy responses from Ollama
  • Image to text using Ollama's multi modal abilities
  • Offline Support via PWA technology
  • Add Screenshots because no one is going to read these
  • Refresh LLM response button
  • Re-write user message (triggering LLM refresh)
  • Bot "Personas" allow users to override the bot's system message

MISC

  • LangChain.js was attempted while spiking on this app but unfortunately it was not set up correctly for stopping incoming streams, I hope this gets fixed later in the future OR if possible a custom LLM Agent can be utilized in order to use LangChain

  • Originally I used create-react-app ๐Ÿ‘ด while making this project without knowing it is no longer maintained, I am now using Vite. ๐Ÿคž This already allows me to use libs like ollama-js that I could not use before. Will be testing more with langchain very soon

  • This readme was written with https://stackedit.io/app

  • Changes to the main branch trigger an immediate deploy to https://mrdjohnson.github.io/llm-x/

llm-x's People

Contributors

dipflip avatar mrdjohnson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.