Skip to content

Commit

Permalink
remove the trailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
SignalRT committed Jan 29, 2025
1 parent 1a70fb9 commit 0d1410e
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 @@ -67,7 +67,7 @@ public PostgresDbClient(PostgresConfig config, ILoggerFactory? loggerFactory = n
COALESCE(semantic_search.{this._colTags}, keyword_search.{this._colTags}) AS {this._colTags},
COALESCE(semantic_search.{this._colContent}, keyword_search.{this._colContent}) AS {this._colContent},
COALESCE(semantic_search.{this._colPayload}, keyword_search.{this._colPayload}) AS {this._colPayload},
COALESCE(semantic_search.{this._colEmbedding}, keyword_search.{this._colEmbedding}) AS {this._colEmbedding},
COALESCE(semantic_search.{this._colEmbedding}, keyword_search.{this._colEmbedding}) AS {this._colEmbedding}
";

this._createTableSql = string.Empty;
Expand Down Expand Up @@ -481,7 +481,7 @@ ORDER BY ts_rank_cd(to_tsvector('english', {this._colContent}), query) DESC
LIMIT @limit
)
SELECT
{this._columnsListHybridCoalesce}
{this._columnsListHybridCoalesce},
COALESCE(1.0 / ({this._rrf_K} + semantic_search.rank), 0.0) +
COALESCE(1.0 / ({this._rrf_K} + keyword_search.rank), 0.0) AS {colDistance}
FROM semantic_search
Expand Down

0 comments on commit 0d1410e

Please sign in to comment.