Skip to content

Commit

Permalink
Additional seperator test
Browse files Browse the repository at this point in the history
  • Loading branch information
codebrain committed May 17, 2023
1 parent d11dc1b commit 0e06141
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
// limitations under the License.

// ReSharper disable once CheckNamespace

using System.Globalization;

namespace SearchPioneer.Weaviate.Client;

public class Hybrid
Expand All @@ -28,10 +31,10 @@ public override string ToString()
if (Vector != null)
{
var v = string.Join(",", Vector);
arg.Add($"vector: [{v}]");
arg.Add($"vector: [{v.ToString(CultureInfo.InvariantCulture)}]");
}

if (Alpha != null) arg.Add($"alpha:{Alpha}");
if (Alpha != null) arg.Add($"alpha:{Alpha.Value.ToString(CultureInfo.InvariantCulture)}");
var s = string.Join(" ", arg.ToArray());
return $"hybrid:{{{s}}}";
}
Expand Down

0 comments on commit 0e06141

Please sign in to comment.