Giter VIP home page Giter VIP logo

poc-volvo's Introduction

Volvo POC

POC investigating diverse sources of information and models.

Place all pdfs that need to be processed in the pdf-folders folder

Manual Start

Environment

  • python>=3.10
pip install -r requirements.txt

LLM Model

Use OpenAI

pip install openai

Change .env

USE_OPENAI=TRUE

Use Open Source model

pip install vllm

Data Preparation

Parse the pdfs and add model in database

python sddb.py --init

Randomly generate N questions based on the content of the PDF

python sddb.py --questions_num 20

Prepare data and generate candidate questions

python sddb.py --init --questions_num 20

Start Streamlit app

streamlit run app.py

Automatically Deploy To AWS

Install a deploy framework

pip install ai-jobdeploy awscli
jd build up --template=aws --params instance_type='g4dn.xlarge',name=volvo-demo-vector-search

APP

Candidate Questions

When the CANDIDATE_QUESTIONS under .env points to an existing file, an additional tab Candidate Questions page for candidate questions will appear.

CANDIDATE_QUESTIONS defaults to questions.txt

So if you want to deploy a app with the Candidate Questions tab page.

You can save the list of questions you need under this file

The file format is as follows, one question per line

What components are included in the exhaust aftertreatment system?
When is the air suspension system activated?
What happens if Active Grip Control and the Traction Control System were off when the truck starts again?
How is the instrument lighting automatically adjusted according to the ambient light?
How should the new filter be screwed on?
What are the options available in the radio player?
Why is it important to clean the radiator with extreme caution?
How can I find the Distance Alert setting?
What conditions need to be fulfilled in order to start manual regeneration?
What are the four positions of the nozzles on the driver's side?
What does the driveline warranty cover?
How can the trucks parking brake and the service brake on any connected trailer be braked gradually while driving?
What are the different units of measurement for fuel consumption in the instrument display and the side display?
What is the maximum freezing-point depression for concentrated coolant?
How should the oil be filled in the gearbox?
What must be the function mode of the electrical system in order to disconnect the batteries?
How can the cargo weight be reset to zero? 
How do you generate a new report when automatic pre-trip check is disabled?
What is the purpose of turning the hydraulic valve anticlockwise to the stop position?
What functions does the control panel for the infotainment system have?

poc-volvo's People

Contributors

jieguangzhou avatar blythed avatar

Stargazers

Tom Mc avatar Stephen Foks avatar Gaurav Rai avatar Colin avatar  avatar Paul Xu avatar Rutvij Sathe avatar Phillip Lam avatar Mitul Vaghela avatar Hüseyin Nurbaki avatar Aiyush Maximus Jain avatar Umair Ghazi avatar  avatar Johann Taylor avatar

Watchers

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