Skip to content

Commit

Permalink
feat: Making llama-embeder optional dependency (#34)
Browse files Browse the repository at this point in the history
Closes #32
  • Loading branch information
tazarov authored Sep 6, 2024
1 parent 0bf7d96 commit 9f9b6d5
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 149 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ jobs:
- name: Run tests
run: |
set -e
poetry update
poetry update --with dev
poetry run pytest
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @tazarov
* @tazarov
3 changes: 2 additions & 1 deletion chromadbx/embeddings/llamacpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def __init__(self, model_path: str) -> None:
from llama_embedder import LlamaEmbedder, PoolingType
except ImportError:
raise ValueError(
"The cohere python package is not installed. Please install it with `pip install llama-embedder`"
"The `llama-embedder` python package is not installed. "
"Please install it with `pip install llama-embedder`"
)

if not os.path.exists(model_path):
Expand Down
Loading

0 comments on commit 9f9b6d5

Please sign in to comment.