Skip to content

Commit

Permalink
fix passing of data-dir and which-index
Browse files Browse the repository at this point in the history
  • Loading branch information
rchan26 committed Jun 13, 2024
1 parent e86fb7c commit 5118d1b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions azure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ You will need to source this file before deploying in the next step.
4. Deploy with Pulumi

```bash
> source .secrets (if this exists)
> AZURE_KEYVAULT_AUTH_VIA_CLI=true pulumi up
source .secrets
AZURE_KEYVAULT_AUTH_VIA_CLI=true pulumi up
```
10 changes: 8 additions & 2 deletions reginald/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ def main(

asyncio.run(
run_full_pipeline(
data_dir=data_dir,
which_index=which_index,
slack_app_token=slack_app_token,
slack_bot_token=slack_bot_token,
**kwargs,
Expand All @@ -38,15 +40,19 @@ def main(
elif cli == "app":
from reginald.models.app import run_reginald_app

asyncio.run(run_reginald_app(**kwargs))
asyncio.run(
run_reginald_app(data_dir=data_dir, which_index=which_index, **kwargs)
)
elif cli == "chat":
import warnings

warnings.filterwarnings("ignore")

from reginald.models.chat_interact import run_chat_interact

run_chat_interact(streaming=streaming, **kwargs)
run_chat_interact(
streaming=streaming, data_dir=data_dir, which_index=which_index, **kwargs
)
elif cli == "create_index":
from reginald.models.create_index import create_index

Expand Down

0 comments on commit 5118d1b

Please sign in to comment.