Skip to content

jbsoftware-io/gen-ai-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generative AI Starter

Purpose

This repository can be used as a starting point for building custom LLM applications. It incorporates Ollama, Open WebUI, Langchain, Streamlit, Chroma, and PGVector using docker to containerize the application and docker compose to run the various service dependencies.

Pre-requisites

  • Docker Engine installed
    • Run Option 1
      • Docker Engine configured with >= 12 GB memory
    • Run Option 2
      • Docker Engine configured with >= 8 GB memory
      • Ollama Executable Installed
brew install ollama

Running the Backing Services and LLM

Option 1 (Easiest but Slower, only CPU)

docker compose --profile=cpu up -d

Option 2 (Fastest, uses GPU)

docker compose up -d
./etc/ollama_entrypoint.sh

Access the Demo App

http://localhost:8501/

Open WebUI and Ollama Links

To check out the Open Web UI interface (for manual chats and more) go here and sign up for an admin account.

Open WebUI:

http://localhost:3000/

List OLama Models:

curl http://localhost:11434/api/tags

Ollama API Docs: https://github.com/ollama/ollama/blob/main/docs/api.md#api

Example Screenshots

Static Context:

Static Context Example

JSON Context:

JSON Context Example

Chroma DB Context:

Chroma_DB_Example

Further Reading

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published