You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Release v1.7.0: Ricerca AI con Exa - Performance e Semplicità
- Sostituzione Gemini CLI con Exa AI API per ricerca documenti legali
- Configurazione semplificata con variabile d'ambiente EXA_API_KEY
- Performance significativamente migliorate
- Test completi e documentazione aggiornata
Copy file name to clipboardExpand all lines: README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Convertire le norme legali da XML Akoma Ntoso a Markdown offre vantaggi signific
28
28
- ✅ **CLI flessibile** con argomenti posizionali e nominati
29
29
- ✅ **Gestione errori robusta** con messaggi informativi
30
30
- ✅ **Nessuna dipendenza esterna** per conversione XML→Markdown (solo librerie standard Python)
31
-
- ✅ **Ricerca per nome naturale** richiede [Gemini CLI](https://github.com/google-gemini/gemini-cli) per l'integrazione AI
31
+
- ✅ **Ricerca per nome naturale** richiede [Exa AI API](https://exa.ai) per l'integrazione AI
32
32
33
33
## 📦 Installazione
34
34
@@ -47,16 +47,16 @@ pip install akoma2md
47
47
akoma2md input.xml output.md
48
48
```
49
49
50
-
### Installazione Gemini CLI (Opzionale - per ricerca per nome)
50
+
### Configurazione Exa AI API (Opzionale - per ricerca per nome)
51
51
52
-
Per utilizzare la funzionalità di ricerca per nome naturale (`--search`), è necessario installare [Gemini CLI](https://github.com/google-gemini/gemini-cli):
52
+
Per utilizzare la funzionalità di ricerca per nome naturale (`--search`), è necessario configurare una [API key di Exa AI](https://exa.ai):
53
53
54
54
```bash
55
-
#Installazione globale
56
-
npm install -g @google/gemini-cli
55
+
#Configura la variabile d'ambiente con la tua API key
### Metodo 3: Ricerca per nome naturale (con Gemini CLI)
117
+
### Metodo 3: Ricerca per nome naturale (con Exa AI)
118
118
119
-
**⚠️ Richiede Gemini CLI installato e configurato**
119
+
**⚠️ Richiede API key Exa AI configurata**
120
120
121
-
Prima di utilizzare questa funzionalità, assicurati di aver installato e configurato [Gemini CLI](#installazione-gemini-cli-opzionale---per-ricerca-per-nome).
121
+
Prima di utilizzare questa funzionalità, assicurati di aver configurato l'[API key di Exa AI](#configurazione-exa-ai-api-opzionale---per-ricerca-per-nome).
122
122
123
123
**Importante**: Per la ricerca in linguaggio naturale devi **sempre usare il flag `-s` o `--search`**:
The current implementation uses Gemini CLI for natural language search of legal documents. While functional, switching to Exa AI would provide better search capabilities specifically designed for web search and research tasks. Exa offers more comprehensive and accurate results for finding legal documents on normattiva.it.
3
+
4
+
## What Changes
5
+
- Replace Gemini CLI integration with Exa AI API
6
+
- Update the natural language search functionality to use Exa's search capabilities
7
+
- Maintain the same CLI interface and user experience
8
+
-**BREAKING**: Changes dependency from Gemini CLI to Exa API
The system SHALL accept natural language strings describing legal documents and use Exa AI API to find corresponding normattiva.it URLs for conversion.
4
+
5
+
#### Scenario: Successful URL Resolution
6
+
-**WHEN** user provides a natural language string like "legge stanca"
7
+
-**THEN** the system SHALL call Exa AI API with appropriate search query
8
+
-**AND** extract the found normattiva.it URL
9
+
-**AND** proceed with conversion using the resolved URL
10
+
11
+
#### Scenario: No URL Found
12
+
-**WHEN** Exa AI API cannot find a matching URL
13
+
-**THEN** the system SHALL display an informative error message
14
+
-**AND** exit without attempting conversion
15
+
16
+
#### Scenario: Exa API Unavailable
17
+
-**WHEN** Exa API is not accessible or authentication fails
18
+
-**THEN** the system SHALL display configuration guidance
19
+
-**AND** exit with appropriate error code
20
+
21
+
#### Scenario: Multiple URL Matches
22
+
-**WHEN** Exa returns multiple potential URLs
23
+
-**THEN** the system SHALL use the most relevant match
24
+
-**OR** prompt user to choose if interactive mode is available
Copy file name to clipboardExpand all lines: openspec/specs/url-lookup/spec.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,26 +4,26 @@
4
4
TBD - created by archiving change add-natural-language-url-lookup. Update Purpose after archive.
5
5
## Requirements
6
6
### Requirement: Natural Language URL Lookup
7
-
The system SHALL accept natural language strings describing legal documents and use Gemini CLI to find corresponding normattiva.it URLs for conversion.
7
+
The system SHALL accept natural language strings describing legal documents and use Exa AI API to find corresponding normattiva.it URLs for conversion.
8
8
9
9
#### Scenario: Successful URL Resolution
10
10
-**WHEN** user provides a natural language string like "legge stanca"
11
-
-**THEN** the system SHALL call Gemini CLI with appropriate prompt
11
+
-**THEN** the system SHALL call Exa AI API with appropriate search query
12
12
-**AND** extract the found normattiva.it URL
13
13
-**AND** proceed with conversion using the resolved URL
14
14
15
15
#### Scenario: No URL Found
16
-
-**WHEN**Gemini CLI cannot find a matching URL
16
+
-**WHEN**Exa AI API cannot find a matching URL
17
17
-**THEN** the system SHALL display an informative error message
18
18
-**AND** exit without attempting conversion
19
19
20
-
#### Scenario: Gemini CLI Unavailable
21
-
-**WHEN**Gemini CLI is not installed or accessible
22
-
-**THEN** the system SHALL display installation guidance
20
+
#### Scenario: Exa API Unavailable
21
+
-**WHEN**Exa API is not accessible or authentication fails
22
+
-**THEN** the system SHALL display configuration guidance
23
23
-**AND** exit with appropriate error code
24
24
25
25
#### Scenario: Multiple URL Matches
26
-
-**WHEN**Gemini returns multiple potential URLs
26
+
-**WHEN**Exa returns multiple potential URLs
27
27
-**THEN** the system SHALL use the most relevant match
28
28
-**OR** prompt user to choose if interactive mode is available
0 commit comments