Windows 11
-
Download Miniconda
- Miniconda Installation Guide
- Download Link: Miniconda3-latest-Windows-x86_64.exe
- Install Miniconda for the
Just Me
option - Check the installation path in the environment variable
C:\Users\"your_username"\miniconda3
-
Setup Working Environment Double click:
setup_rag.bat
Double click:
run_rag.bat
Run script in the env:
python src/download_convert_model.py
Select the Chinese model by default, --language
parameter can specify the model language.
python src/download_convert_model.py --language=English
- Set openvino-pkg path
set PATH=C:\Users\"your_username"\Miniconda3\envs\openvino_env_py310\Lib\site-packages\openvino\libs;%PATH%
- Set Proxy (Optional)
If you want to download or convert the model, please ensure that you can access huggingface.
set HTTP_PROXY=http://proxy-us.intel.com:914
set HTTPS_PROXY=http://proxy-us.intel.com:914
Please check utils/llm_config.py
and run_rag.py
.
Modify Line59, Line64, Line87, Line101, Line 159 in the run_rag.py
This appendix lists the versions of all installed packages for your reference.
Package | Version |
---|---|
accelerate | 0.29.2 |
bitsandbytes | 0.43.1 |
chromadb | 0.4.24 |
datasets | 2.18.0 |
einops | 0.7.0 |
gradio | 3.50.0 |
gradio_client | 0.6.1 |
huggingface-hub | 0.22.2 |
langchain | 0.1.16 |
langchainhub | 0.1.15 |
nncf | 2.10.0.dev0+573b0c34 |
onnx | 1.16.0 |
openvino-nightly | 2024.2.0.dev20240416 |
optimum | 1.19.0 |
optimum-intel | 1.17.0.dev0+ff5d185 |
pdfminer.six | 20231228 |
python-docx | 1.1.0 |
scikit-learn | 1.4.2 |
sentence-transformers | 2.6.1 |
tiktoken | 0.6.0 |
transformers | 4.39.3 |
transformers-stream-generator | 0.0.5 |
unstructured | 0.13.2 |
unstructured-client | 0.18.0 |
urllib3 | 2.2.1 |
wheel | 0.41.2 |
openvino-prj/
│
├── README.md
├── setup_rag.bat
├── run_rag.bat
│
├── inputs/
│ ├── text_example_cn.pdf
│ ├── text_example_en.pdf
│
├── src/
│ ├── download_convert_model.py
│ ├── run_rag.py
│ ├── llm_config.py
│
├── model/
│ ├── cache_dir/
│ ├── bge-reranker-large/
│ ├── bge-small-en-v1.5/
│ ├── bge-small-zh-v1.5/
│ └── qwen1.5-7b-chat/
│
└── utils/
│ ├── requirements.txt
└── logo_trans.png
This README provides instructions for setting up Miniconda, configuring the Conda environment, and running an application on a Windows 11 system. Follow the steps above to ensure proper setup and execution of the application.