# Upload Model

## Steps to Upload a Model

* **Navigate to the Events Section**\
  Inside a specific run, go to the **Events** section.
* **Click on "Event Upload"**\
  Select the **"Event Upload"** button.
* **Specify Event Details**\
  Fill in the following details for the event:

  * **Event Name**
  * **Event Version**
  * **Event Types**
  * **Description**
  * Upload the **model/event zip file**

  **Note:** The zip file should have the same name as the model. Events are specific to the uploaded model.

<figure><img src="/files/TvbG7iuPQTH4EL4qHUth" alt=""><figcaption><p>Event Upload</p></figcaption></figure>

***

## Model Zip File Structure:

* The zip file should contain a folder with the **same name as the model**.
* Inside the folder, there must be a **`run.sh` script**.
* The `run.sh` script will be invoked with two arguments:\
  `<video_path>` and `<config.txt>`.
* `config.txt`  will have the list of config parameters which will be passed after video path .\[optional parameter]
* The tags in the `config.txt` have to be passed as a positional argument in `run.sh`
* The **`LD_LIBRARY_PATH`** (the folder containing the OpenCV library) will be provided by the user's engineering team and should be exported in the `run.sh` script. \[This is not required during event upload using UI]
* During runtime the current working directory will be the folder with model name.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.raga.ai/ragaai-prism/event-detection/upload-model.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
