@turmind/halo 1.1.2 → 1.1.4

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.
@@ -1,65 +0,0 @@
1
- ---
2
- name: nova-web-search
3
- description: Real-time web search using Amazon Nova 2 Lite's built-in nova_grounding system tool. Use this skill when the user asks about current events, news, latest updates, prices, or any real-time information. This replaces the web_search tool.
4
- user-invocable: false
5
- ---
6
- # Nova Web Search
7
-
8
- Perform real-time web search using Amazon Nova 2 Lite's built-in `nova_grounding` system tool. Returns a synthesized answer with source URLs.
9
-
10
- ## How to Use
11
-
12
- Run the following Python script via `shell_exec`:
13
-
14
- ```python
15
- import boto3
16
- from botocore.config import Config
17
-
18
- bedrock = boto3.client("bedrock-runtime", region_name="us-east-1", config=Config(read_timeout=60))
19
-
20
- query = "YOUR_QUERY_HERE" # Replace with the actual search query
21
-
22
- response = bedrock.converse(
23
- modelId="us.amazon.nova-2-lite-v1:0",
24
- messages=[{"role": "user", "content": [{"text": query}]}],
25
- toolConfig={"tools": [{"systemTool": {"name": "nova_grounding"}}]}
26
- )
27
-
28
- answer = ""
29
- sources = []
30
- for content in response["output"]["message"]["content"]:
31
- if "text" in content:
32
- answer += content["text"]
33
- elif "citationsContent" in content:
34
- for c in content["citationsContent"].get("citations", []):
35
- url = c.get("location", {}).get("web", {}).get("url", "")
36
- if url and url not in sources:
37
- sources.append(url)
38
-
39
- print(answer)
40
- if sources:
41
- print("\nSources:", sources)
42
- ```
43
-
44
- ## Query Formulation
45
-
46
- Nova grounds better against full natural-language questions than against
47
- keyword stubs — raw keywords return more loosely-related sources, while
48
- a question gives Nova enough context to filter.
49
-
50
- | User Intent | Query Template |
51
- |---|---|
52
- | News / updates / latest developments | `"What are the latest news about X?"` |
53
- | Product / specs / concept lookup | `"Tell me about X, including specs, price, and latest updates."` |
54
- | General search | `"Search for information about X."` |
55
-
56
- **Examples:**
57
- - ✅ `"What are the latest news about the Middle East conflict?"`
58
- - ✅ `"Tell me about the NVIDIA RTX 5080, including specs and price."`
59
- - ✗ `"RTX 5080"` — terse keywords leave Nova guessing at intent
60
-
61
- ## Requirements
62
-
63
- - Region **must** be `us-east-1`
64
- - English queries yield better results than other languages
65
- - Model ID: `us.amazon.nova-2-lite-v1:0`