Skip to content

Commit

Permalink
feat: Support Jupyter notebooks (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJBoyer authored Aug 16, 2024
1 parent 00ac316 commit c69e108
Show file tree
Hide file tree
Showing 9 changed files with 1,894 additions and 531 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,6 @@ Welcome! You are at the root of the Nava Labs Decision Support Tool pilot repo.

To set up your local development environment, follow the instructions in [Getting Started](docs/app/getting-started.md).

### Installing Ollama

You can install ollama on macOSX by calling `brew install ollama`, for other operating systems or the desktop app see the [Ollama repository](https://github.com/ollama/ollama).

To download a model run `ollama pull <model_name>`

Ex: `ollama pull llama2:7b`

To start Ollama without the desktop app run `ollama serve`

To configure a local secret to enable Ollama locally add `OLLAMA_HOST=http://host.docker.internal:11434` to your `.env` file.

## Loading documents

The application supports loading Guru cards from .json files.
Expand Down
2 changes: 2 additions & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ poetry-installer-error-*.log

# Guru cards and other documents to load into the database
documents/

.ipynb_checkpoints
3 changes: 3 additions & 0 deletions app/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ lint-security: # https://bandit.readthedocs.io/en/latest/index.html
login: start ## Start shell in running container
docker exec -it $(APP_NAME) bash

notebook: start
docker exec -it main-app sh -c "poetry run jupyter notebook --ip 0.0.0.0 --no-browser --allow-root"

# Pauses for 5 seconds
sleep-5:
sleep 5
Expand Down
Loading

0 comments on commit c69e108

Please sign in to comment.