Skip to content

bijuthottathil/LLM-Notebook-Qualitycheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spark notebooks quality check using Ollama LLM

image

    • Install Ollama using - brew install ollama
    • I used llama2 version . Pull llama2 version using below command - ollama pull llama2
    • Run using - ollama run llama2

      image

    • I have spark running in docker. I opened Jupiter Notebook and added below code image image

image

Please note down few important point

image

# Call local Ollama API
ollama_url = "http://host.docker.internal:11434/api/generate"  - This code is consuming ollama model running in my local mac.

Steps for running jupiter notebook in Docker is given below

  1. Install Docker for Windows/ Mac in your laptop ( I am using Mac)image

  2. I have provided docker-compose file in repository image

  3. In prompt execute command - docker-compose up -d image

  4. You will see image

  5. Open http://localhost:8888/ , you will get Jupyter notebook in browser

  6. It will ask you enter a token to create password image

  7. You can get token from the below section - refer query string- image

  8. Once you logged in , you can upload notebook in the interface and test above scenarios

About

Spark notebooks quality check using Ollama LLM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published