mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-05 02:41:34 +00:00
Merge 24bbde7277 into 6e3ad226ba
This commit is contained in:
commit
be9287639d
1 changed files with 2 additions and 1 deletions
|
|
@ -208,6 +208,7 @@ async def _retrieve_milvus(connection, auth_config, knowledge, query, count, emb
|
|||
async def _retrieve_pgvector(connection, auth_config, knowledge, query, count, embedding_function) -> list[dict]:
|
||||
try:
|
||||
import psycopg
|
||||
from pgvector import Vector
|
||||
from pgvector.psycopg import register_vector
|
||||
from psycopg.rows import dict_row
|
||||
except ImportError as exc:
|
||||
|
|
@ -275,7 +276,7 @@ async def _retrieve_pgvector(connection, auth_config, knowledge, query, count, e
|
|||
table_name=table_identifier,
|
||||
collection=collection_identifier,
|
||||
),
|
||||
(vector, collection_name, count),
|
||||
(Vector(vector), collection_name, count),
|
||||
)
|
||||
return cur.fetchall()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue