Skip to content

Multimodal RAG and comparisons between language models. (Project for Deep Learning Module at the FHSWF)

Notifications You must be signed in to change notification settings

CKeibel/FHSWF-deep-learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multimodal RAG

Todos

  • System (chat/ rag) prompt
  • Vector Store
  • RAG
  • Compability with multimodal models

Installation

  1. Clone the repsitory:
git clone [email protected]:CKeibel/FHSWF-deep-learning.git
  1. Checkout directory:
cd FHSWF-deep-learning

Installing with pip

  1. Create a virtual environment:
python -m venv .venv
  1. Activate the newly create virtual env named "venv":
source .venv/bin/activate

Now (.venv) should be displayed in front of your command prompt.

  1. Install project dependencies with pip:
python -m pip install -e .

Poetry

Install project dependencies with poetry:

poetry install

Usage

Run the appilication as module with python -m multimodal-rag or alternatively python src/multimodal_rag/__main__.py.

When starting up, two urls will be available to access the interface. Use the local url when you are working on your local machine. If the app runs on a remote cluster (e.g. the fh-swf cluster) use the public url.

IMPORTANT:
When you start the app on the fh-swf cluster make sure that your “current working directory” is set correctly in vscode. This is absolutely necessary to read the models.yml when starting the app.

# launch.json
{
    "configurations": [
        {
            "name": "App",
            "type": "python",
            "request": "launch",
            ...
            "cwd": "/home/<USER>/FHSWF-deep-learning/", # set <USER>
            "program": "src/multimodal_rag/__main__.py",
            "console": "integratedTerminal",
            "justMyCode": true,
            ...
        }
    ]
}

About

Multimodal RAG and comparisons between language models. (Project for Deep Learning Module at the FHSWF)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages