Skip to content

Commit 1b29f54

Browse files
authored
Merge pull request #14 from AstraBert/bugfixes
Fixes for missing dependencies troubles
2 parents 378dc22 + 75c0a0b commit 1b29f54

7 files changed

+40
-19
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ lib/docker/labse/
1212
qwen-on-api/__pycache__/
1313
chatbot-ui/.next/
1414
chatbot-ui/node_modules/
15+
site/

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ docker compose up -d
7272
5. Run `Qwen-2.5-1.5B-Instruct` on API with FastAPI/Uvicorn:
7373

7474
```bash
75+
conda activate praivatesearch
76+
cd qwen-on-api/
7577
uvicorn main:app --host 0.0.0.0 --port 8000
7678
```
7779

docs/explanation.md

+3
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ We can head over to the *conda* environment we set up in the first steps, and la
152152
# activate the environment
153153
conda activate praivatesearch
154154
155+
# head over to the folder where the app is stored
156+
cd qwen-on-api/
157+
155158
# launch the application
156159
uvicorn main:app --host 0.0.0.0 --port 8000
157160
```

docs/index.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,13 @@ docker compose up -d
7070

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

73+
5. Run `Qwen-2.5-1.5B-Instruct` on API with FastAPI/Uvicorn:
74+
7375
```bash
76+
conda activate praivatesearch
77+
cd qwen-on-api/
7478
uvicorn main:app --host 0.0.0.0 --port 8000
7579
```
76-
7780
You can access the application from `http://localhost:3000` and chat with it!
7881

7982
### Usage note

docs/troubleshooting.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Troubleshooting
2+
3+
## `pip` dependencies not installed
4+
5+
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:
6+
7+
1. Install the latest version of `conda`:
8+
9+
```bash
10+
curl -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
11+
bash Miniconda3-latest-Linux-x86_64.sh
12+
# make sure to run `source ~/.bashrc` if your Linux distro requires it!
13+
```
14+
15+
2. Remove the `praivatesearch` environment and re-build it following the suggested installation:
16+
17+
```bash
18+
conda env remove -n praivatesearch
19+
conda env create -f conda_environment.yaml
20+
```
21+
22+
3. Activate the conda environment and make sure that the activation is smooth:
23+
24+
```bash
25+
conda activate praivatesearch
26+
```
27+
28+
You should now be all set and ready to launch the application!🎉

mkdocs.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
site_name: Academic Notes
1+
site_name: PrAIvateSearch
22
theme:
33
name: material
44
features:
@@ -30,3 +30,4 @@ nav:
3030
- Explanation: explanation.md
3131
- About: about.md
3232
- Contributing: contributing.md
33+
- Troubleshooting: troubleshooting.md

requirements.txt

-17
This file was deleted.

0 commit comments

Comments
 (0)