https://github.com/superduper-io/poc-volvo
POC for design partners and prospects
https://github.com/superduper-io/poc-volvo
Last synced: about 2 months ago
JSON representation
POC for design partners and prospects
- Host: GitHub
- URL: https://github.com/superduper-io/poc-volvo
- Owner: superduper-io
- Created: 2024-01-15T15:38:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-20T06:49:57.000Z (about 1 year ago)
- Last Synced: 2024-07-10T14:56:53.820Z (11 months ago)
- Language: Python
- Size: 43.7 MB
- Stars: 17
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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```bash
pip install -r requirements.txt
```### LLM Model
#### Use OpenAI
```
pip install openai
```Change .env
```
USE_OPENAI=TRUE
```#### Use Open Source model
```bash
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
```bash
streamlit run app.py
```## Automatically Deploy To AWS
Install a deploy framework
```bash
pip install ai-jobdeploy awscli
``````
jd build up --template=aws --params instance_type='g4dn.xlarge',name=volvo-demo-vector-search
```## APP
### Candidate QuestionsWhen 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?
```