here we call as individual args
def function(text, model):
...
|
def get_embedding_from_table(con: DuckDBPyConnection, text: str, model: str) -> List[float]: |
and elsewhere we call as one
key = tuple(text, model)
def function(key)
...
|
def is_key_in_table(con: DuckDBPyConnection, key: Tuple[str, str]) -> bool: |
the "key" is used as the primary key for the embeddings table. It should probably be immutable.
|
"SELECT embedding FROM embeddings WHERE text=? AND model=?", [text, model] |
here we call as individual args
duckdb-embedding-search/src/operations.py
Line 139 in fcf19ac
and elsewhere we call as one
duckdb-embedding-search/src/operations.py
Line 47 in fcf19ac
the "key" is used as the primary key for the
embeddingstable. It should probably be immutable.duckdb-embedding-search/src/operations.py
Line 155 in fcf19ac