Skip to content

A Streamlit demo using an SLM (Phi) and RAG to showcase how an AI can help users with learning functionality on a website

Notifications You must be signed in to change notification settings

BhavanasiG/AI-Days-SLM-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Days SLM Helper Demo

This is a SLM (Small Language Model) example to showcase the usage of Artificial Intelligence to help the users of a website better understand the website's functionality. It aims to help reduce the time and effort that users have to spend on reading the documentation, and also aims to reduce the number of calls to the customer service team.

Technology used:

Models used:

How to run:

Make sure you have Docker Desktop downloaded

  1. Run docker compose up -d --build - sets up the Docker container and all the requirements
  2. Pull the SLM: docker exec -it ollama ollama pull phi4-mini:latest
  3. Pull the embedding model: docker exec -it ollama ollama pull mxbai-embed-large:latest
  4. Run the script to embed the data into the vector database: docker compose run --rm rag_web_app python /app/ingest_job.py
  5. Run docker compose up -d --build again to make sure the SLM now know it can access the vector database
  6. It should all be setup now! Access http://localhost:8501/ to view the chatbot!

Feel free to fork and reuse this repo (remember to adjust the prompt template)!

About

A Streamlit demo using an SLM (Phi) and RAG to showcase how an AI can help users with learning functionality on a website

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published