Giter Site home page Giter Site logo

phidataexampleapp's Introduction

phidataexampleapp

This is an example AI app with assistants based on phidata. This AI app is built with Streamlit, PgVector, and local LLMs using ollama. You can run it locally using Docker.

Setup Workspace

  1. Clone the git repo

from the ai-app dir:

  1. Create + activate a virtual env:
python3 -m venv venv
source ./venv/bin/activate
  1. Install dependencies:
./scripts/install.sh
  1. Setup workspace:
phi ws setup
  1. upgraded phidata:
pip install -U phidata

Run AI App locally

  1. Start the workspace using:
phi ws up
  1. Pull the llama3 and nomic-embed-text models (run this command only once during the initial workspace setup):
scripts/pull_ollama_models.sh
  1. Stop the workspace using:
phi ws down

Build your development image

Build the development image using:

phi ws up --env dev --infra docker --type image

To force rebuild images, use the --force or -f flag

phi ws up --env dev --infra docker --type image --force

Restart all containers

Restart all docker containers using:

phi ws restart --env dev --infra docker --type container

phidataexampleapp's People

Contributors

idris-cgs avatar kamon avatar

Watchers

 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.