Skip to content

Commit 03ed11d

Browse files
committed
Change the similarity package to be optional
1 parent 5e86706 commit 03ed11d

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
run: |
3636
pip install -U pip
3737
pip install -U wheel coverage coveralls
38-
pip install .
38+
pip install . txtai[similarity]
3939
python --version
4040
make data coverage
4141

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ embeddings:
114114
115115
```
116116
# Install API extra
117-
pip install codequestion[api]
117+
pip install txtai[api]
118118

119119
# Start API
120120
CONFIG=app.yml uvicorn "txtai.api:app"
@@ -218,7 +218,7 @@ python -m codequestion.etl.stackexchange.execute stackexchange
218218

219219
This will create the file stackexchange/questions.db
220220

221-
4.) __OPTIONAL:__ Build word vectors - only necessary if using a word vectors model
221+
4.) __OPTIONAL:__ Build word vectors - only necessary if using a word vectors model. If using word vector models, make sure to run `pip install txtai[similarity]`
222222

223223
```
224224
python -m codequestion.vectors stackexchange/questions.db

setup.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@
3333
"rich>=12.0.1",
3434
"scipy>=1.4.1",
3535
"tqdm>=4.48.0",
36-
"txtai[graph,similarity]>=5.0.0",
36+
"txtai[graph]>=5.0.0",
3737
],
38-
extra_requires={"api": ["txtai[api]>=5.0.0"]},
3938
classifiers=[
4039
"License :: OSI Approved :: Apache Software License",
4140
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)