Skip to content

Lightpanda: the headless browser designed for AI and automation

tools: cap exa search highlights to 3 sentences

Adrià Arrufat9a57a34b4605
diff --git a/build.zig.zon b/build.zig.zon
index d67bf5ddb..6d14d08a2 100644
--- a/build.zig.zon
+++ b/build.zig.zon
@@ -36,8 +36,8 @@
.hash = "sqlite3-3.53.2-DMxLWuAOAAA_Px0arJOIOaP4AKEu5prbsQgPMA35W1zz",
},
.zenai = .{
- .url = "git+https://github.com/lightpanda-io/zenai.git#00bdd10117eefa247c815ebca47efbde9a91e3f0",
- .hash = "zenai-0.0.0-iOY_VOE8BgCgb8oZtxgmYCfE9vlXdDaHYEsKMsUDCUyC",
+ .url = "git+https://github.com/lightpanda-io/zenai.git#5c208f61c5b6b0bc46ceaf2670d0d267b1eef87e",
+ .hash = "zenai-0.0.0-iOY_VKQ9BgC0_zD9nj_EedEkNioEJnGqoKsHWcq27D74",
},
.isocline = .{
.url = "git+https://github.com/arrufat/isocline?ref=lightpanda#832a9fe25f5f4458fcc47b5acc7c21db669c2f47",
diff --git a/src/browser/tools.zig b/src/browser/tools.zig
index 7baaf939a..f0a198be4 100644
--- a/src/browser/tools.zig
+++ b/src/browser/tools.zig
@@ -1007,8 +1007,9 @@ const api_engines = .{
.tag = SearchEngine.exa,
.env_var = "EXA_API_KEY",
.Client = exa.Client,
- // highlights: Exa returns no snippet text unless contents is requested.
- .options = exa.types.SearchOptions{ .numResults = 10, .contents = .{ .highlights = true } },
+ // highlights: Exa returns no snippet text unless contents is requested;
+ // capped at 3 sentences since the default excerpts run long.
+ .options = exa.types.SearchOptions{ .numResults = 10, .contents = .{ .highlights = .{ .numSentences = 3 } } },
.format = formatExaMarkdown,
},
};