exa-ai 0.12.1 → 0.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/exe/exa-ai-find-similar +5 -5
- data/exe/exa-ai-search +6 -3
- data/lib/exa/cli/search_parser.rb +2 -2
- data/lib/exa/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 348823d3dfba08f7525bcc8973ff4f1e8bdcaeb71e82bdc179e4862e5ed2d7fd
|
|
4
|
+
data.tar.gz: 670c26f27036aa8d5c9713d1d177e0ef7597f941cd6d3d80ed84127ef2bdb335
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 16a7cc5a2e16127a8ac55da87e1165e8ef71597675459ed17fb534562eccd913f5730fc9bd6225fc9e1b4bad57421fc8675bb7ca592bedc2f66bcba3c7a4e117
|
|
7
|
+
data.tar.gz: d1a12ef64c24171dca5726b15163bb858c202a41ecd2aec73a13b8dd37afddc2bb38aea5bcada8002c5cb922f28232db760b959eac61374260149a365c948ebf
|
data/exe/exa-ai-find-similar
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
4
|
require "exa-ai"
|
|
5
|
+
require_relative "../lib/exa/cli/search_parser"
|
|
5
6
|
|
|
6
7
|
# Parse command-line arguments
|
|
7
8
|
def parse_args(argv)
|
|
@@ -24,7 +25,7 @@ def parse_args(argv)
|
|
|
24
25
|
i += 1
|
|
25
26
|
when "--category"
|
|
26
27
|
category = argv[i + 1]
|
|
27
|
-
valid_categories =
|
|
28
|
+
valid_categories = Exa::CLI::SearchParser::VALID_CATEGORIES
|
|
28
29
|
unless valid_categories.include?(category)
|
|
29
30
|
$stderr.puts "Error: Category must be one of: #{valid_categories.map { |c| "\"#{c}\"" }.join(', ')}"
|
|
30
31
|
exit 1
|
|
@@ -99,9 +100,8 @@ def parse_args(argv)
|
|
|
99
100
|
--num-results N Number of results to return (default: 10)
|
|
100
101
|
--exclude-source-domain Exclude results from the source URL's domain
|
|
101
102
|
--category CAT Focus on specific data category
|
|
102
|
-
Options: "company", "
|
|
103
|
-
"
|
|
104
|
-
"financial report"
|
|
103
|
+
Options: "company", "publication", "news", "github",
|
|
104
|
+
"personal site", "people", "financial report"
|
|
105
105
|
--include-domains D Comma-separated list of domains to include
|
|
106
106
|
--exclude-domains D Comma-separated list of domains to exclude
|
|
107
107
|
--start-published-date DATE Filter by published date (ISO 8601 format)
|
|
@@ -127,7 +127,7 @@ def parse_args(argv)
|
|
|
127
127
|
Examples:
|
|
128
128
|
exa-ai find-similar "https://example.com/article"
|
|
129
129
|
exa-ai find-similar "https://techcrunch.com/ai-startup" --num-results 5
|
|
130
|
-
exa-ai find-similar "https://arxiv.org/paper" --category
|
|
130
|
+
exa-ai find-similar "https://arxiv.org/paper" --category publication
|
|
131
131
|
exa-ai find-similar "https://example.com" --exclude-source-domain
|
|
132
132
|
exa-ai find-similar "https://example.com" --output-format pretty
|
|
133
133
|
HELP
|
data/exe/exa-ai-search
CHANGED
|
@@ -17,9 +17,11 @@ def print_help
|
|
|
17
17
|
--num-results N Number of results to return (default: 10)
|
|
18
18
|
--type TYPE Search type: auto, neural, fast, deep, deep-reasoning,
|
|
19
19
|
or instant (default: auto)
|
|
20
|
+
deep/deep-reasoning synthesize an 'output' field
|
|
21
|
+
only when --output-schema is provided
|
|
20
22
|
--category CAT Focus on specific data category
|
|
21
|
-
Options: "company", "
|
|
22
|
-
"
|
|
23
|
+
Options: "company", "publication", "news", "github",
|
|
24
|
+
"personal site", "people", "financial report"
|
|
23
25
|
--include-domains D Comma-separated list of domains to include
|
|
24
26
|
--exclude-domains D Comma-separated list of domains to exclude
|
|
25
27
|
--start-published-date DATE Filter by published date (ISO 8601 format)
|
|
@@ -55,6 +57,7 @@ def print_help
|
|
|
55
57
|
Search Options:
|
|
56
58
|
--additional-queries QUERY Additional search queries (repeatable)
|
|
57
59
|
--output-schema JSON JSON schema for output structure (@file syntax)
|
|
60
|
+
Required to get synthesized 'output' from deep/deep-reasoning
|
|
58
61
|
--user-location CODE User location (ISO country code)
|
|
59
62
|
--system-prompt PROMPT System prompt for AI-powered search
|
|
60
63
|
--moderation Enable content moderation
|
|
@@ -67,7 +70,7 @@ def print_help
|
|
|
67
70
|
Examples:
|
|
68
71
|
exa-ai search "ruby programming"
|
|
69
72
|
exa-ai search "machine learning" --num-results 5 --type deep
|
|
70
|
-
exa-ai search "Latest LLM research" --category
|
|
73
|
+
exa-ai search "Latest LLM research" --category publication
|
|
71
74
|
exa-ai search "AI startups" --category company
|
|
72
75
|
exa-ai search "Dario Amodei" --category people
|
|
73
76
|
exa-ai search "AI research" --include-domains arxiv.org,scholar.google.com
|
|
@@ -6,8 +6,8 @@ module Exa
|
|
|
6
6
|
VALID_SEARCH_TYPES = ["auto", "neural", "fast", "deep", "deep-reasoning", "instant"].freeze
|
|
7
7
|
VALID_TEXT_VERBOSITY = ["compact", "standard", "full"].freeze
|
|
8
8
|
VALID_CATEGORIES = [
|
|
9
|
-
"company", "
|
|
10
|
-
"
|
|
9
|
+
"company", "publication", "news", "github",
|
|
10
|
+
"personal site", "people", "financial report"
|
|
11
11
|
].freeze
|
|
12
12
|
|
|
13
13
|
def self.parse(argv)
|
data/lib/exa/version.rb
CHANGED