Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions examples/government_rag/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
torch>=2.0.0
transformers>=4.30.0
numpy>=1.24.0
requests>=2.28.0
langchain>=0.1.0
langchain-community>=0.0.20
chromadb>=0.4.0
tqdm>=4.65.0
unstructured[docx]>=0.10.0
Comment on lines +1 to +9

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The government_rag example's basemodel.py imports numpy at the top level (line 26) and uses requests in the default qianfan model response method (line 118). To prevent ModuleNotFoundError when running this example, both numpy and requests should be added to the requirements.txt file.

torch>=2.0.0
transformers>=4.30.0
numpy>=1.24.0
requests>=2.28.0
langchain>=0.1.0
langchain-community>=0.0.20
chromadb>=0.4.0
tqdm>=4.65.0
unstructured[docx]>=0.10.0

5 changes: 5 additions & 0 deletions examples/llm_simple_qa/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
torch>=2.0.0
transformers>=4.30.0
numpy>=1.24.0
mmengine>=0.8.0
opencompass>=0.2.0