Skip to content

Commit f7f1427

Browse files
Support Ollama embedding (#67)
* Support Ollama * Update adapter version * Multiple exception handling
1 parent 97eaf8d commit f7f1427

File tree

4 files changed

+27
-13
lines changed

4 files changed

+27
-13
lines changed

pdm.lock

Lines changed: 24 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies = [
1212
"python-magic~=0.4.27",
1313
"python-dotenv==1.0.0",
1414
# LLM Triad
15-
"unstract-adapters~=0.19.2",
15+
"unstract-adapters~=0.20.1",
1616
"llama-index==0.10.38",
1717
"tiktoken~=0.4.0",
1818
"transformers==4.37.0",

src/unstract/sdk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.33.1"
1+
__version__ = "0.34.0"
22

33

44
def get_sdk_version():

src/unstract/sdk/utils/callback_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def get_tokenizer(
138138
model_name
139139
).encode
140140
return tokenizer
141-
except ValueError as e:
141+
except (KeyError, ValueError) as e:
142142
logger.warning(str(e))
143143
return fallback_tokenizer
144144

0 commit comments

Comments
 (0)