-
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: fix searcher always being reloaded * feat: implement torch kmeans * chore: lower cutoff * chore: move warning * chore: higher kmeans batch size * chore: argument support * chore: restore all default behaviour when `use_faiss` is True after having been false * chore: lint * chore: print exception if one occurs when using pytorch indexing * chore: make _original_train_kmeans robust to subsequent calls * nit: comment feat: rework kmeans to be closer to FAISS chore: store kmeans functions as class attributes fix: method assignment chore: more memory efficient lint chore: lower bsize, resultd unaffected feat: better batching, slower max doc count chore: batch size safe for 8gb GPUs chore: more elaborate warning chore: use external lib to support minibatching, revert to homebrew later * poetry lock * lint * chore: better batch size * 0.0.8 dependency prep
- Loading branch information
Showing
8 changed files
with
1,954 additions
and
1,163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,19 +17,14 @@ jobs: | |
with: | ||
python-version: 3.9 | ||
|
||
- name: Cache Poetry virtualenv | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pypoetry/virtualenvs | ||
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-poetry- | ||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
|
||
- name: Clean poetry | ||
run: rm poetry.lock | ||
|
||
- name: Install dependencies | ||
run: poetry install --with dev | ||
run: poetry install --with dev --no-cache | ||
|
||
- name: Run tests | ||
run: poetry run pytest tests/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "RAGatouille" | ||
version = "0.0.7post11" | ||
version = "0.0.8" | ||
description = "Library to facilitate the use of state-of-the-art retrieval models in common RAG contexts." | ||
authors = ["Benjamin Clavie <[email protected]>"] | ||
license = "Apache-2.0" | ||
|
@@ -9,20 +9,19 @@ packages = [{include = "ragatouille"}] | |
repository = "https://github.com/bclavie/ragatouille" | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.8.1,<4.0" | ||
ruff = "^0.1.9" | ||
python = ">=3.9,<4.0" | ||
faiss-cpu = "^1.7.4" | ||
transformers = "^4.36.2" | ||
voyager = "^2.0.2" | ||
aiohttp = "3.9.1" | ||
sentence-transformers = "^2.2.2" | ||
torch = "^2.0.1" | ||
llama-index = "^0.9.24" | ||
torch = ">=1.13" | ||
llama-index = ">=0.7" | ||
langchain_core = "^0.1.4" | ||
colbert-ai = "0.2.19" | ||
langchain = "^0.1.0" | ||
onnx = "^1.15.0" | ||
srsly = "2.4.8" | ||
fast-pytorch-kmeans= "0.2.0.1" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = "^7.4.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.