Skip to content

Commit

Permalink
Merge pull request #14 from AstraBert/bugfixes
Browse files Browse the repository at this point in the history
Fixes for missing dependencies troubles
  • Loading branch information
AstraBert authored Jan 10, 2025
2 parents 378dc22 + 75c0a0b commit 1b29f54
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ lib/docker/labse/
qwen-on-api/__pycache__/
chatbot-ui/.next/
chatbot-ui/node_modules/
site/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ docker compose up -d
5. Run `Qwen-2.5-1.5B-Instruct` on API with FastAPI/Uvicorn:

```bash
conda activate praivatesearch
cd qwen-on-api/
uvicorn main:app --host 0.0.0.0 --port 8000
```

Expand Down
3 changes: 3 additions & 0 deletions docs/explanation.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ We can head over to the *conda* environment we set up in the first steps, and la
# activate the environment
conda activate praivatesearch
# head over to the folder where the app is stored
cd qwen-on-api/
# launch the application
uvicorn main:app --host 0.0.0.0 --port 8000
```
Expand Down
5 changes: 4 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,13 @@ docker compose up -d

5. Run `Qwen-2.5-1.5B-Instruct` on API with FastAPI/Uvicorn:

5. Run `Qwen-2.5-1.5B-Instruct` on API with FastAPI/Uvicorn:

```bash
conda activate praivatesearch
cd qwen-on-api/
uvicorn main:app --host 0.0.0.0 --port 8000
```

You can access the application from `http://localhost:3000` and chat with it!

### Usage note
Expand Down
28 changes: 28 additions & 0 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Troubleshooting

## `pip` dependencies not installed

You could run into an issue which is similar to [this one](https://github.com/AstraBert/PrAIvateSearch/issues/13): it will seem that the pip dependencies were not installed. Make sure to:

1. Install the latest version of `conda`:

```bash
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
# make sure to run `source ~/.bashrc` if your Linux distro requires it!
```

2. Remove the `praivatesearch` environment and re-build it following the suggested installation:

```bash
conda env remove -n praivatesearch
conda env create -f conda_environment.yaml
```

3. Activate the conda environment and make sure that the activation is smooth:

```bash
conda activate praivatesearch
```

You should now be all set and ready to launch the application!🎉
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
site_name: Academic Notes
site_name: PrAIvateSearch
theme:
name: material
features:
Expand Down Expand Up @@ -30,3 +30,4 @@ nav:
- Explanation: explanation.md
- About: about.md
- Contributing: contributing.md
- Troubleshooting: troubleshooting.md
17 changes: 0 additions & 17 deletions requirements.txt

This file was deleted.

0 comments on commit 1b29f54

Please sign in to comment.