From df404b726e63de354b4f3c4c5e64aa82d26522eb Mon Sep 17 00:00:00 2001 From: ayush chaurasia Date: Tue, 16 Apr 2024 10:00:47 +0530 Subject: [PATCH] ruff --- .../fine_tuner => docs}/benchmarks/llama-index-datasets.py | 0 python/python/lancedb/embeddings/fine_tuner/llm.py | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) rename {python/python/lancedb/embeddings/fine_tuner => docs}/benchmarks/llama-index-datasets.py (100%) diff --git a/python/python/lancedb/embeddings/fine_tuner/benchmarks/llama-index-datasets.py b/docs/benchmarks/llama-index-datasets.py similarity index 100% rename from python/python/lancedb/embeddings/fine_tuner/benchmarks/llama-index-datasets.py rename to docs/benchmarks/llama-index-datasets.py diff --git a/python/python/lancedb/embeddings/fine_tuner/llm.py b/python/python/lancedb/embeddings/fine_tuner/llm.py index 510c1fea..b5df11fa 100644 --- a/python/python/lancedb/embeddings/fine_tuner/llm.py +++ b/python/python/lancedb/embeddings/fine_tuner/llm.py @@ -15,12 +15,13 @@ class BaseLLM(BaseModel): Base class for Language Model based Embedding Functions. This class is loosely desined rn, and will be updated as the usage gets clearer. """ + class Config: protected_namespaces = () # Disable protected namespace check model_name: str model_kwargs: dict = {} - + @cached_property def _client(): """