Skip to content

Commit

Permalink
Use conda for faiss
Browse files Browse the repository at this point in the history
  • Loading branch information
sidjha1 committed Nov 9, 2024
1 parent c6c73ef commit 96d7810
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ sphinx:
formats:
- pdf

conda:
file: environment.yml

# Optionally declare the Python requirements required to build your docs
python:
install:
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

To set up for development, create a conda environment, install lotus, and install additional dev dependencies.
```
conda create -n lotus python=3.10 -y
conda env create -f environment.yml
conda activate lotus
git clone [email protected]:stanford-futuredata/lotus.git
pip install -e .
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ LOTUS offers a number of semantic operators in a Pandas-like API, some of which

# Installation
```
conda create -n lotus python=3.10 -y
conda env create -f environment.yml
conda activate lotus
pip install lotus-ai
```
Expand Down
2 changes: 1 addition & 1 deletion docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ You can install Lotus using pip:

.. code-block:: console
$ conda create -n lotus python=3.10 -y
$ conda env create -f environment.yml
$ conda activate lotus
$ pip install lotus-ai
1 change: 0 additions & 1 deletion docs/requirements-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ sphinx==7.3.7
sphinx-rtd-theme==2.0.0

backoff==2.2.1
faiss-cpu==1.8.0.post1
litellm==1.51.0
numpy==1.26.4
pandas==2.2.2
Expand Down
7 changes: 7 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: lotus
channels:
- conda-forge
- pytorch
dependencies:
- python=3.10
- faiss-cpu=1.8.0
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ classifiers = [

dependencies = [
"backoff>=2.2.1,<3.0.0",
"faiss-cpu>=1.8.0.post1,<2.0.0",
"litellm>=1.51.0,<2.0.0",
"numpy>=1.25.0,<2.0.0",
"pandas>=2.0.0,<3.0.0",
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
backoff==2.2.1
faiss-cpu==1.8.0.post1
litellm==1.51.0
numpy==1.26.4
pandas==2.2.2
Expand Down

0 comments on commit 96d7810

Please sign in to comment.