From c09cd30cd147da9d3187e1085cce05db0de17fde Mon Sep 17 00:00:00 2001 From: Egor Sharonov <easharonov@edu.hse.ru> Date: Sat, 22 Mar 2025 17:53:53 +0300 Subject: [PATCH] ollama host --- internal/repository/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/repository/postgres.go b/internal/repository/postgres.go index 5e6d815..8cd6397 100644 --- a/internal/repository/postgres.go +++ b/internal/repository/postgres.go @@ -104,7 +104,7 @@ func (r *storeRepository) GetProductsByQuery(ctx context.Context, queryStr strin SELECT ap.abstract_product_id as id, ap.name, ap.priority_data as content FROM products_embeddings_store pes JOIN abstract_products ap ON pes.abstract_product_id = ap.abstract_product_id - ORDER BY pes.embedding <=> ai.ollama_embed(?, ?, host => 'http://host.docker.internal:11434') + ORDER BY pes.embedding <=> ai.ollama_embed(?, ?, host => 'http://ollama:11434') LIMIT ? ` if err := r.db.WithContext(ctx).Raw(sqlQuery, r.embedder, queryStr, limit).Scan(&products).Error; err != nil { -- GitLab