Git Product home page Git Product logo

riolaf05 / langchain-fastapi-rag-platform Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 47.31 MB

A platform to test multiple LLM models inside a RAG workflow to choose the best model for embedding and retrieval and the best prompt according to the use case

Dockerfile 0.06% Jupyter Notebook 88.31% Python 11.63%
artificial-intelligence aws cloud iac iac-terraform infrastructure langchain langchain-python llm llm-inference llms python rag serverless terraform

langchain-fastapi-rag-platform's Introduction

Setup on GCP Cloud RUN

  1. Create exports
export PROJECT_ID=progetti-poc
export APP=langchain-fastapi-rag-platform 
export PORT=3000
export REGION=europe-west8
export BRANCH=main
export TAG=${REGION}-docker.pkg.dev/${PROJECT_ID}/${APP}/${APP}:${BRANCH}
  1. Create Artifact Repo
gcloud artifacts repositories create langchain-fastapi-rag-platform --repository-format Docker --location europe-west8 --project progetti-poc
  1. Create Build
gcloud builds submit --tag  europe-west8-docker.pkg.dev/progetti-poc/langchain-fastapi-rag-platform/langchain-fastapi-rag-platform:main --project progetti-poc
  1. Deploy
gcloud run deploy $APP --image $TAG --platform managed --region $REGION --port $PORT --allow-unauthenticated --env-vars-file=.env
  1. Clean
gcloud run services delete $APP --region $REGION 
gcloud run services list

langchain-fastapi-rag-platform's People

Contributors

riolaf05 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.