Skip to content

Commit 9ca0105

Browse files
authored
Merge pull request #137 from samuelzedec/develop
refactor: renomear índice de embeddings para consistência
2 parents 3342873 + a65efe9 commit 9ca0105

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# Riber - Changelog
22

3+
---
4+
35
## v4.3.1 - 09/12/2025
4-
**REFATOÇÃO**: Remove o método de busca por id da entidade nos IAiModelService
5-
Adiciona relationacimento entre entidade `ProductEmbeddings` e `Company` para uma melhor busca
6+
**REFATORAÇÃO**: Remove o método de busca por id da entidade nos IAiModelService
7+
Adiciona relacionamento entre entidade `ProductEmbeddings` e `Company` para uma melhor busca
68

79
---
810

src/Riber.Infrastructure/Extensions/EntityConfigurationExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public static EntityTypeBuilder<T> ConfigureVector<T>(this EntityTypeBuilder<T>
221221

222222
builder
223223
.HasIndex(x => x.Embeddings)
224-
.HasDatabaseName("ix_product_embeddings_vector")
224+
.HasDatabaseName("ix_embeddings_vector")
225225
.HasMethod("hnsw")
226226
.HasOperators("vector_cosine_ops")
227227
.HasStorageParameter("m", 16)

src/Riber.Infrastructure/Persistence/Migrations/20251104000902_AddProductEmbeddingsTable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
3939
column: "product_id");
4040

4141
migrationBuilder.CreateIndex(
42-
name: "ix_product_embeddings_vector",
42+
name: "ix_embeddings_vector",
4343
table: "product_embeddings",
4444
column: "embeddings_vector")
4545
.Annotation("Npgsql:IndexMethod", "hnsw")

src/Riber.Infrastructure/Persistence/Migrations/AppDbContextModelSnapshot.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
15201520
b.HasIndex("CompanyId");
15211521

15221522
b.HasIndex("Embeddings")
1523-
.HasDatabaseName("ix_product_embeddings_vector")
1523+
.HasDatabaseName("ix_embeddings_vector")
15241524
.HasAnnotation("Npgsql:StorageParameter:ef_construction", 64)
15251525
.HasAnnotation("Npgsql:StorageParameter:m", 16);
15261526

0 commit comments

Comments
 (0)