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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f2ec6d5b6e263466f5125722a28e9c0625aae9cc3342cc8cabbbc6fe5ae260b
4
- data.tar.gz: 06a79cb7b742df7a5bd49f0267c32f93ab76c4acc260bbfc0cbdf6b8478bdc33
3
+ metadata.gz: 348823d3dfba08f7525bcc8973ff4f1e8bdcaeb71e82bdc179e4862e5ed2d7fd
4
+ data.tar.gz: 670c26f27036aa8d5c9713d1d177e0ef7597f941cd6d3d80ed84127ef2bdb335
5
5
  SHA512:
6
- metadata.gz: 7f35b340937f7580d21517e7d8b60cc39048bbedbd8092815f8c5ed9fb974b5746ad4832dee65e6743ba6492e28b09f82ced416e27463889b0271d3eae6e1d28
7
- data.tar.gz: eedbb8580d6103b78d6fbbb4c4f41e89d0f48c713705537096cbf33de8a8da9818ee40309b76c974f8897769f0190d17dbec82ae3c7c52edd4a73bb3306fcdda
6
+ metadata.gz: 16a7cc5a2e16127a8ac55da87e1165e8ef71597675459ed17fb534562eccd913f5730fc9bd6225fc9e1b4bad57421fc8675bb7ca592bedc2f66bcba3c7a4e117
7
+ data.tar.gz: d1a12ef64c24171dca5726b15163bb858c202a41ecd2aec73a13b8dd37afddc2bb38aea5bcada8002c5cb922f28232db760b959eac61374260149a365c948ebf
@@ -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 = ["company", "research paper", "news", "pdf", "github", "tweet", "personal site", "linkedin profile", "financial report"]
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", "research paper", "news", "pdf",
103
- "github", "tweet", "personal site", "linkedin profile",
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 "research paper"
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", "research paper", "news", "github",
22
- "tweet", "personal site", "financial report", "people"
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 "research paper"
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", "research paper", "news", "github",
10
- "tweet", "personal site", "financial report", "people"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Exa
4
- VERSION = "0.12.1"
4
+ VERSION = "0.12.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exa-ai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Jackson