Skip to content

Commit

Permalink
Solve some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
SignalRT committed Dec 29, 2024
1 parent df47b1b commit c5c3099
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/Postgres/Postgres/Internals/PostgresDbClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ DO UPDATE SET

// Column names
string columns = withEmbeddings ? this._columnsListWithEmbeddings : this._columnsListNoEmbeddings;
string columsnHibrid = this._columnsListHybrid;
string columnsHibrid = this._columnsListHybrid;
string columnsListHybridCoalesce = this._columnsListHybridCoalesce;

// Filtering logic, including filter by similarity
Expand Down Expand Up @@ -460,7 +460,7 @@ DO UPDATE SET
// the similarity (1 - distance) later. Furthermore, colDistance can't be used in the WHERE clause.
cmd.CommandText = @$"
WITH semantic_search AS (
SELECT {columsnHibrid}, RANK () OVER (ORDER BY {this._colEmbedding} <=> @embedding) AS rank
SELECT {columnsHibrid}, RANK () OVER (ORDER BY {this._colEmbedding} <=> @embedding) AS rank
FROM {tableName}
ORDER BY {this._colEmbedding} <=> @embedding
LIMIT @limit
Expand Down

0 comments on commit c5c3099

Please sign in to comment.