From 733b9c07b509e0bdef8e49591b7aa320cafbd4d6 Mon Sep 17 00:00:00 2001 From: Kai Wu Date: Tue, 25 Feb 2025 13:42:02 -0800 Subject: [PATCH] pre-commit --- .../providers/inline/vector_io/sqlite_vec/sqlite_vec.py | 2 +- llama_stack/templates/ollama/run.yaml | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/llama_stack/providers/inline/vector_io/sqlite_vec/sqlite_vec.py b/llama_stack/providers/inline/vector_io/sqlite_vec/sqlite_vec.py index eb97572d5..7e8230ff9 100644 --- a/llama_stack/providers/inline/vector_io/sqlite_vec/sqlite_vec.py +++ b/llama_stack/providers/inline/vector_io/sqlite_vec/sqlite_vec.py @@ -162,7 +162,7 @@ class SQLiteVecVectorIOAdapter(VectorIO, VectorDBsProtocolPrivate): async def initialize(self) -> None: # Open a connection to the SQLite database (the file is specified in the config). - self.connection = sqlite3.connect(self.config.db_path,check_same_thread=False) + self.connection = sqlite3.connect(self.config.db_path, check_same_thread=False) self.connection.enable_load_extension(True) sqlite_vec.load(self.connection) self.connection.enable_load_extension(False) diff --git a/llama_stack/templates/ollama/run.yaml b/llama_stack/templates/ollama/run.yaml index 48e243482..d64e07347 100644 --- a/llama_stack/templates/ollama/run.yaml +++ b/llama_stack/templates/ollama/run.yaml @@ -87,12 +87,6 @@ models: model_id: ${env.INFERENCE_MODEL} provider_id: ollama model_type: llm -- metadata: - embedding_dimension: 384 - model_id: all-MiniLM-L6-v2 - provider_id: ollama - provider_model_id: all-minilm:latest - model_type: embedding shields: [] vector_dbs: [] datasets: []