Skip to content

My "The Scoop on Embedding: Teaching Large Language Models the 'Flavor of the Day' at Culvers" demo

Notifications You must be signed in to change notification settings

steinbring/python-rag-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python / Ollama RAG Demo

This is the code that we used in the July 23 and August 23 The Scoop on Embedding: Teaching Large Language Models the “Flavor of the Day” at Culvers demo. This is a command line interface (CLI) app but you can expand it to be a web service. This should run on a Windows PC but these instructions assume that you are using MacOS.

Steps to run this locally

  1. Install Ollama on your computer
  2. Pull down this project from Github
  3. Navigate to the project folder in iterm2 (or Terminal)
  4. Pull down llama3
    1. ollama pull llama3:8b
  5. Pull down nomic-embed-text
    1. ollama pull nomic-embed-text
  6. Set up your Python virtual environment
    1. pip3 install virtualenv (if needed)
    2. python3 -m venv ragdemo
    3. source ragdemo/bin/activate
  7. Install ollama, chromadb, and requests
    1. pip3 install ollama
    2. pip3 install requests
    3. pip3 install chromadb
  8. Run the app (making an actual query)
    1. python3 app.py "What is today's custard flavor at the Port Washington location?"

Are you having trouble running this?

Feel free to contact me on Mastodon or Signal

About

My "The Scoop on Embedding: Teaching Large Language Models the 'Flavor of the Day' at Culvers" demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages