puuuush
This commit is contained in:
@@ -55,7 +55,7 @@ def prompt_embedding(prompt):
|
||||
)
|
||||
cur = conn.cursor()
|
||||
|
||||
cur.execute(f"select id, filepath, embedding <-> %s::vector as distance from dbtable order by distance limit 10;", (embedding["embedding"],))
|
||||
cur.execute(f"select id, doc_id, filepath, embedding <-> %s::vector as distance from dbtable order by distance limit 3;", (embedding["embedding"],))
|
||||
|
||||
result = cur.fetchall()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user