mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-12 04:50:39 +00:00
pre-commit
This commit is contained in:
parent
fb95e2da6d
commit
e48ae304e7
1 changed files with 1 additions and 1 deletions
|
@ -23,6 +23,7 @@ from llama_stack.providers.utils.memory.vector_store import EmbeddingIndex, Vect
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
def serialize_vector(vector: List[float]) -> bytes:
|
def serialize_vector(vector: List[float]) -> bytes:
|
||||||
"""Serialize a list of floats into a compact binary representation."""
|
"""Serialize a list of floats into a compact binary representation."""
|
||||||
return struct.pack(f"{len(vector)}f", *vector)
|
return struct.pack(f"{len(vector)}f", *vector)
|
||||||
|
@ -147,7 +148,6 @@ class SQLiteVecIndex(EmbeddingIndex):
|
||||||
return QueryChunksResponse(chunks=chunks, scores=scores)
|
return QueryChunksResponse(chunks=chunks, scores=scores)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class SQLiteVecVectorIOAdapter(VectorIO, VectorDBsProtocolPrivate):
|
class SQLiteVecVectorIOAdapter(VectorIO, VectorDBsProtocolPrivate):
|
||||||
"""
|
"""
|
||||||
A VectorIO implementation using SQLite + sqlite_vec.
|
A VectorIO implementation using SQLite + sqlite_vec.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue