-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
here we call as individual args
def function(text, model):
...
duckdb-embedding-search/src/operations.py
Line 139 in fcf19ac
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)
...
duckdb-embedding-search/src/operations.py
Line 47 in fcf19ac
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.
duckdb-embedding-search/src/operations.py
Line 155 in fcf19ac
"SELECT embedding FROM embeddings WHERE text=? AND model=?", [text, model] |
Metadata
Metadata
Assignees
Labels
No labels